📄 mst_findmatch.3
字号:
.TH MST_FINDMATCH 3 2006/02/27 "Libmseed API".SH DESCRIPTIONSearching a MSTraceGroup for specific MSTrace structures..SH SYNOPSIS.nf.B #include <libmseed.h>.BI "MSTrace *\fBmst_findmatch\fP ( MSTrace *" startmst ", char " dataquality ",.BI " char *" network ", char *" station ",.BI " char *" location ", char *" channel " );.BI "MSTrace *\fBmst_findadjacent\fP ( MSTraceGroup *" mstg ",.BI " flag *" whence ", char " dataquality ",.BI " char *" network ", char *" station ",.BI " char *" location ", char *" channel ",.BI " double " samprate ", double " sampleratetol ", .BI " hptime_t " starttime ", hptime_t " endtime ",.BI " double " timetol ");".SH DESCRIPTION\fBmst_findmatch\fP traverses a MSTrace chain starting at\fIstartmst\fP and returns the first entry that matches the sourcename identifiers. If \fIdataquality\fP is not zero it must also matchthe found entry. A calling program commonly calls this routine in aloop in order to find all matching MSTraces in a MSTraceGroup.\fBmst_findadjacent\fP finds the first entry in the MSTraceGrouppointed to by \fImstg\fP that matches the given source nameidentifiers and is time adjacent to the time coverage described by the\fIsamprate\fP, \fIstarttime\fP and \fIendtime\fP. If\fIdataquality\fP is not zero it must also match the found entry. See\fBms_time(3)\fP for a description of the high precision epoch timeformat needed for \fIstarttime\fP and \fIendtime\fP.The tolerance for sample rate and time matching can also be specified.If \fIsampratetol\fP is -1.0 the default tolerance of abs(1-sr1/sr2) <0.0001 is used. If \fItimetol\fP is -1.0 the default time toleranceof 1/2 the sample period will be used. If \fIsampratetol\fP or\fItimetol\fP is -2.0 the respective tolerance check will not beperformed. If time tolerance is not checked \fIwhence\fP will be setto whichever end fits best. The time tolerance is specified inseconds.When an adjacent MSTrace is found the \fIwhence\fP flag will be set toindicate where the indicated time span is adjacent in the followingway:.sp.nf1: time span fits at the end of the MSTrace2: time span fits at the beginning of the MSTrace.fi.SH RETURN VALUES\fBmst_findmatch\fP returns a pointer to the matching MSTrace structure or 0 if no match found or error.\fBmst_findadjacent\fP returns a pointer to the adjacent MSTracestructure and the \fIwhence\fP flag is set when an adjacent MSTrace isfound or 0 when no adjacent MSTrace is found..SH SEE ALSO\fBms_intro(3)\fP, \fBmst_init(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 + -