MSR_PARSE(3)

πŸ’– MSR_PARSE(3) β€” the libmseed era πŸ’–

ok bestie, welcome to MSR_PARSE(3), a page from the Library Functions Manual πŸŽ€. It's a Library Functions situation, so grab a strawberry drink πŸ“ and let's get into it.


✨ NAME ✨

msr_parse β€” parse, validate, and print details of a SEED data record πŸ‘‘


🌸 SYNOPSIS 🌸

#include <libmseed.h>

int  ms_parse_raw ( char *record, int maxreclen,
                    flag details, flag swapflag );

πŸ¦‹ DESCRIPTION πŸ¦‹

so ms_parse_raw is literally a simple validating SEED data record header parser. That's the whole vibe. πŸ’…

The data in record is assumed to contain a SEED data record, and it can be at most maxreclen long. Not only does it validate header fields where possible, it can also print the raw header fields for you. Its main character energy is: identifying invalid data record headers and printing record header contents. That's the job. 🫢

The details flag is read like this:

  • 0 = only print error messages for invalid header fields 😭
  • 1 = print basic fields, in addition to invalid field errors ✨
  • 2 = print all fields, in addition to invalid field errors πŸ”₯

The swapflag flag is read like this:

  • 1 = swap multibyte quantities πŸ”„
  • 0 = do no swapping 🚫
  • -1 = autodetect byte order using year test, swap if needed πŸ”

πŸ’œ RETURN VALUES πŸ’œ

ms_parse_raw returns 0 when no errors were detected, or a positive count of errors detected. slay, now you know what you're looking at. πŸ’―


🌈 SEE ALSO 🌈

msr_parse(3) and ms_detect(3) β€” go read those too, iykyk πŸ“š


πŸ‘‘ AUTHOR πŸ‘‘

Chad Trabant IRIS Data Management Center


and that's the whole page, bestie 🧚 β€” this was Libmseed API, dated 2010/12/30, and you ate it fr fr πŸ’–βœ¨