logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

msr_parse - Parse, validate and print details of a SEED data record

Author

       Chad Trabant
       IRIS Data Management Center

Libmseed API                                       2010/12/30                                       MSR_PARSE(3)

Description

ms_parse_raw  is  a  simple  validating SEED data record header parser.  The data in record is assumed to
       contain a SEED data record with a maximum length of maxreclen.  In addition to validating  header  fields
       where  possible,  raw  header  fields can be printed.  This routine is primarily intended for identifying
       invalid data record headers and printing record header contents.

       The details flag is interpreted as follows:
         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 interpreted as follows:
         1 = swap multibyte quantities
         0 = do no swapping
        -1 = autodetect byte order using year test, swap if needed

Name

       msr_parse - Parse, validate and print details of a SEED data record

Return Values

ms_parse_raw returns 0 when no errors were detected or a positive count of errors detected.

See Also

msr_parse(3) and ms_detect(3)

Synopsis

#include<libmseed.h>intms_parse_raw(char*record,intmaxreclen,flagdetails,flagswapflag);

See Also