MST_GROUPSORT(3)
π MST_GROUPSORT(3) π
okay bestie, welcome to mst_groupsort(3) β it lives in the Library Functions Manual and it's literally here to wrangle your MSTrace segments inside a MSTraceGroup. yes, the whole group chat. let's get into it π«Ά
β¨ NAME β¨
mst_groupsort β Manipulate MSTrace segments in a MSTraceGroup. she sorts, she heals, she's the group mom fr fr π
πΈ SYNOPSIS πΈ
#include <libmseed.h>
MSTrace *mst_groupsort ( MSTraceGroup *mstg, flag quality );
MSTrace *mst_groupheal ( MSTraceGroup *mstg, double timetol,
double sampratetol );
π¦ DESCRIPTION π¦
the sort one π
mst_groupsort will sort the MSTrace segments in a MSTraceGroup, and the way it does it is so extra, I'm obsessed. the order is:
- first on the source name (as returned by
mst_srcname) - then on start time
- then on descending end time
- and finally on sample rate
and the quality flag? it's passed directly to mst_srcname, so it controls the addition of the quality indicator to the source name β which means it also controls the addition of sorting on the quality indicator. but lowkey only if the MSTrace has an associated quality, okay? see mst_srcname(3) for more details. iykyk β¨
the heal one π§
mst_groupheal will attempt to heal MSTrace segments in a MSTraceGroup if they fit within the specified time and sample rate tolerance (timetol and sampratetol respectively). it's giving group therapy for your traces π
this is useful when, for whatever reason, the MSTraceGroup has separate MSTrace segments which belong together. and ngl, this usually only happens when data is added to a MSTraceGroup in random data time order β chaos behavior, truly π
before attempting to heal the MSTraces, the MSTraceGroup will be sorted using mst_groupsort. so it sorts first, heals second. main character sequence fr.
okay so the defaults, listen up: - ifsampratetolis-1.0, the default tolerance ofabs(1-sr1/sr2)is used. - iftimetolis-1.0, the default time tolerance of 1/2 the sample period will be used.
π RETURN VALUES π
mst_groupsortreturns0on success and-1on error. iconic, zero drama.mst_grouphealreturns the number of MSTrace segments merged on success and-1on error. periodt. π
π SEE ALSO π
ms_intro(3) and mst_srcname(3). go read them bestie, they're right there π«Ά
β AUTHOR β
Chad Trabant IRIS Data Management Center
and that's the whole page, no cap. this little baddie comes to you from the Libmseed API, dated 2007/04/12 β so she's vintage but she still ate πβ¨
π¦ 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