📄 mst_groupsort.3
字号:
.TH MST_GROUPSORT 3 2007/04/12 "Libmseed API".SH DESCRIPTIONManipulate MSTrace segments in a MSTraceGroup.SH SYNOPSIS.nf.B #include <libmseed.h>.BI "MSTrace *\fBmst_groupsort\fP ( MSTraceGroup *" mstg ", flag " quality " );.BI "MSTrace *\fBmst_groupheal\fP ( MSTraceGroup *" mstg ", double " timetol ",.BI " double " sampratetol " );".fi.SH DESCRIPTION\fBmst_groupsort\fP will sort the MSTrace segments in a MSTraceGroupfirst on the source name (as returned by \fBmst_srcname\fP), then onstart time, then on descending end time, and finally on sample rate.The \fIquality\fP flag, passed directly to \fBmst_srcname\fP, controlsthe addition of the quality indicator to the source name and thus theaddition of sorting on the quality indicator (but only if the MSTracehas an associated quality, see \fBmst_srcname(3)\fP for more details).\fBmst_groupheal\fP will attempt to heal MSTrace segments in aMSTraceGroup if they fit within the specified time and sample ratetolerance (\fItimetol\fP and \fIsampratetol\fP respectively). This isuseful when, for whatever reason, the MSTraceGroup has separateMSTrace segments which belong together. This usually only happenswhen data is added to a MSTraceGroup in random data time order.Before attempting to heal the MSTraces the MSTraceGroup will be sortedusing \fBmst_groupsort\fP.If \fIsampratetol\fP is -1.0 the default tolerance of abs(1-sr1/sr2)is used. If \fItimetol\fP is -1.0 the default time tolerance of 1/2the sample period will be used..SH RETURN VALUES\fBmst_groupsort\fP returns 0 on success and -1 on error.\fBmst_groupheal\fP returns the number of MSTrace segments merged onsuccess and -1 on error..SH SEE ALSO\fBms_intro(3)\fP and \fBmst_srcname(3)\fP..SH AUTHOR.nfChad TrabantIRIS Data Management Center.fi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -