📄 msr_normalize_header.3
字号:
.TH MSR_NORMALIZE_HEADER 3 2007/04/28 "Libmseed API".SH DESCRIPTIONNormalize or synchronize the header fields of an MSRecord structure..SH SYNOPSIS.nf.B #include <libmseed.h>.BI "int \fBmsr_normalize_header\fP ( MSRecord *" msr ", flag " verbose );.fi.SH DESCRIPTION\fBmsr_normalize_header\fP updates the SEED structures associated withan MSRecord structure (MSRecord.fsdh and the blockette chain atMSRecord.blkts) with primary values stored at the MSRecord level(e.g. MSRecord.starttime, MSRecord.samprate, etc.).The long explanation is that certain key values (start time, samplerate, etc.) are duplicated in a given MSRecord structure. For examplethe start time is stored at both MSRecord.starttime and in the BTIMEstructure in the FSDH at MSRecord.fsdh. The base values at theMSRecord level (e.g. MSRecord.starttime) are always the primaryvalues. But before the data record can be packed these values must betranslated back into the SEED structures. For these duplicated valuesthe \fBmsr_normalize_header\fP routine peforms this translation.Normally this routine will be called via internal functions when\fBmsr_pack\fP is called, it could also be used to synchronize theheader values when they are directly modified..SH RETURN VALUE\fBmsr_normalize_header\fP returns the header length in bytes onsuccess and -1 on error..SH SEE ALSO\fBms_intro(3)\fP, \fBmsr_pack(3)\fP and \fBmsr_pack_header(3)\fP..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -