MST_ADDMSR - Online Linux Manual PageSection : 3
Updated : 2013/05/17
Source : Libmseed API

NAMEmst_addmsr - Add time coverage and data samples to MSTrace structures

SYNOPSIS#include <libmseed.h> int *mst_addmsr ( MSTrace *mst, MSRecord *msr, flag whence"); int mst_addspan ( MSTrace *mst, hptime_t starttime, hptime_t endtime", void *datasamples, int64_t numsamples", char sampletype, flag whence"); MSTrace *mst_addmsrtogroup ( MSTraceGroup *mstg, MSRecord *msr", flag dataquality, double timetol", double sampratetol"); MSTrace *mst_addtracetogroup ( MSTraceGroup *mstg, MSTrace *mst );

DESCRIPTIONThese routines provides different ways of adding time coverage to MSTrace objects. A common way to organize MSTrace objects is with a MSTraceGroup. The mst_addmsrtogroup provides a convenient way to add MSRecord data to a MSTraceGroup, hiding many of the details of MSTrace matching and bookkeeping. mst_addmsr will add the time coverage from a MSRecord to a MSTrace. The start or end time will be updated and data samples copied if they exist. No checking is done to verify that the record matches the trace in any way. If whence is 1 the MSRecord coverage will be added at the end of the MSTrace. If whence is 2 the MSRecord coverage will be added at the beginning of the MSTrace. mst_addspan does the same thing as msr_addmsr except that time coverage and data samples are explicitly provided. See ms_time(3) for a description of the high precision epoch time format needed for starttime and endtime. See the Waveform Data section of ms_intro(3) for a description of data sample representation. mst_addmsrtogroup adds time coverage from the specified MSRecord to the first adjacent MSTrace found in the specified MSTraceGroup. If the dataquality flag is true traces will be grouped by quality in addition to the source name identifiers. mst_findadjacent(3) is used with the specified sample rate and time tolerances to find an adjacent trace, see mst_findadjacent(3) for further details. If no adjacent MSTrace is found a new MSTrace will be added to the MSTraceGroup. mst_addtracetogroup adds a MSTrace structure to a MSTraceGroup structure. The MSTrace is added at the end of the MSTrace chain.

RETURN VALUESmst_addmsr and mst_addspan return 0 on success and -1 on error. mst_addmsrtogroup returns a pointer to the MSTrace updated or 0 on error. mst_addtracetogroup returns a pointer to the MSTrace added or 0 on error.

SEE ALSOms_intro(3), mst_init(3), mst_findadjacent(3) and ms_time(3).

AUTHORChad Trabant IRIS Data Management Center
0
Johanes Gumabo
Data Size   :   8,698 byte
man-mst_addmsr.3Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 204,372
Visitor ID   :     :  
Visitor IP   :   3.144.91.130   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.