MSTL_INIT(3)
π MSTL_INIT(3) β Library Functions Manual π
okay bestie, welcome to MSTL_INIT(3), the page where we talk about mstl_addmsr and how it slides MSRecord data coverage into an MSTraceList. it's giving library internals, it's giving main character, let's go π¦
β¨ NAME β¨
mstl_init β adding MSRecord data coverage to and MSTraceList structure
(yes the name says mstl_init and the function below is mstl_addmsr, we don't make the rules, we just document them π
)
πΈ SYNOPSIS πΈ
#include <libmseed.h>
MSTraceSeg *mstl_addmsr ( MSTraceList *mstl, MSRecord *msr,
flag dataquality, flag autoheal,
double timetol, double sampratetol );
look at her. six arguments. a whole MSTraceSeg * return. iconic π
π« DESCRIPTION π«
so mstl_addmsr takes the data coverage living inside an MSRecord structure and adds it to the MSTraceList structure you point it at. that's the whole vibe. no cap. π«Ά
and if data samples are actually hanging out with that MSRecord? they get added to the MSTraceList too. like they're coming along, obviously. π§
new MSTraceID and MSTraceSeg sub-structures get created and added into the MSTraceList as needed β it just spawns them when it needs them, very self-sufficient of her β
now for the structure tea β every MSTraceList holds a list of trace IDs as MSTraceID structures, and each of those holds a list of time segments as MSTraceSeg structures. this routine keeps the trace ID list in alphanumeric sort order and the time segments that follow in time order. organized. pristine. we love to see it β¨
about that dataquality flag: if it's true, traces get grouped by quality on top of the source name identifiers β basically, differentiate using quality or don't, that's the switch π
about that autoheal flag: if it's true, any two trace segments that would fit together because of the new MSRecord coverage getting added will be merged. π©Ή
β οΈ the only reason to setautohealto false (0) is if theprvtptrpointer member of theMSTraceSegstructures is being used β because libmseed has zero knowledge of how that data should be merged. so like, don't do it unless you're usingprvtptr, fr fr. π
π₯ RETURN VALUES π₯
mstl_addmsrreturnsNULLon error π- on success it returns a pointer to the
MSTraceSegstructure that the data coverage was added to π
π SEE ALSO π
mstl_init(3) and mstl_free(3) β go read those too, bestie, they're the rest of the friend group π
π AUTHOR π
Chad Trabant IRIS Data Management Center
and that's the page!! this one's from the <b>Libmseed API</b>, dated <b>2008/11/21</b> β vintage but still slaying π β¨
π¦ where this page comes from
- debian bookworm: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- debian trixie: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libmseed-doc 2.19.6-3 Β· LGPL-3.0-or-later
- ubuntu noble: libmseed-doc 2.19.8-1ubuntu2 Β· LGPL-3.0-or-later
- ubuntu questing: libmseed-doc 2.19.8-1ubuntu2
- ubuntu resolute: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- ubuntu stonking: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms