📄 mst_addmsr.3
字号:
.TH MST_ADDMSR 3 2006/02/27 "Libmseed API".SH DESCRIPTIONAdd time coverage and data samples to MSTrace structures.SH SYNOPSIS.nf.B #include <libmseed.h>.BI "int *\fBmst_addmsr\fP ( MSTrace *" mst ", MSRecord *" msr ", flag " whence " );.BI "int \fBmst_addspan\fP ( MSTrace *" mst ", hptime_t " starttime ", hptime_t " endtime ",.BI " void *" datasamples ", int " numsamples ",.BI " char " sampletype ", flag " whence " );.BI "MSTrace *\fBmst_addmsrtogroup\fP ( MSTraceGroup *" mstg ", MSRecord *" msr ",.BI " flag " dataquality ", double " timetol ",.BI " double " sampratetol " );.BI "MSTrace *\fBmst_addtracetogroup\fP ( MSTraceGroup *" mstg ", MSTrace *" mst " );".fi.SH DESCRIPTIONThese routines provides different ways of adding time coverage toMSTrace objects. A common way to organize MSTrace objects is with aMSTraceGroup. The \fBmst_addmsrtogroup\fP provides a convenient way to addMSRecord data to a MSTraceGroup, hiding many of the details of MSTracematching and bookkeeping.\fBmst_addmsr\fP will add the time coverage from a MSRecord to aMSTrace. The start or end time will be updated and data samples copiedif they exist. No checking is done to verify that the record matchesthe trace in any way. If \fIwhence\fP is 1 the MSRecord coverage willbe added at the end of the MSTrace. If \fIwhence\fP is 2 the MSRecordcoverage will be added at the beginning of the MSTrace.\fBmst_addspan\fP does the same thing as \fBmsr_addmsr\fP except thattime coverage and data samples are explicitly provided. See\fBms_time(3)\fP for a description of the high precision epoch timeformat needed for \fIstarttime\fP and \fIendtime\fP. See the\fBWaveform Data\fP section of \fBms_intro(3)\fP for a description ofdata sample representation.\fBmst_addmsrtogroup\fP adds time coverage from the specified MSRecordto the first adjacent MSTrace found in the specified MSTraceGroup. Ifthe \fIdataquality\fP flag is true traces will be grouped by qualityin addition to the source name identifiers. \fBmst_findadjacent(3)\fPis used with the specified sample rate and time tolerances to find anadjacent trace, see \fBmst_findadjacent(3)\fP for further details. Ifno adjacent MSTrace is found a new MSTrace will be added to theMSTraceGroup.\fBmst_addtracetogroup\fP adds a MSTrace structure to a MSTraceGroupstructure. The MSTrace is added at the end of the MSTrace chain..SH RETURN VALUES\fBmst_addmsr\fP and \fBmst_addspan\fP return 0 on success and -1 onerror.\fBmst_addmsrtogroup\fP returns a pointer to the MSTrace updated or 0 onerror.\fBmst_addtracetogroup\fP returns a pointer to the MSTrace added or 0 onerror..SH SEE ALSO\fBms_intro(3)\fP, \fBmst_init(3)\fP, \fBmst_findadjacent(3)\fP and\fBms_time(3)\fP..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -