1MSR_PARSE(3) Library Functions Manual MSR_PARSE(3)
2
3
4
6 msr_parse - Parse, validate and print details of a SEED data record
7
8
10 #include <libmseed.h>
11
12 int ms_parse_raw ( char *record, int maxreclen,
13 flag details, flag swapflag );
14
15
17 ms_parse_raw is a simple validating SEED data record header parser.
18 The data in record is assumed to contain a SEED data record with a max‐
19 imum length of maxreclen. In addition to validating header fields
20 where possible, raw header fields can be printed. This routine is pri‐
21 marily intended for identifying invalid data record headers and print‐
22 ing record header contents.
23
24 The details flag is interpreted as follows:
25 0 = only print error messages for invalid header fields
26 1 = print basic fields in addition to invalid field errors
27 2 = print all fields in addition to invalid field errors
28
29 The swapflag flag is interpreted as follows:
30 1 = swap multibyte quantities
31 0 = do no swapping
32 -1 = autodetect byte order using year test, swap if needed
33
34
36 ms_parse_raw returns 0 when no errors were detected or a positive count
37 of errors detected.
38
39
41 msr_parse(3) and ms_detect(3)
42
43
45 Chad Trabant
46 IRIS Data Management Center
47
48
49
50Libmseed API 2010/12/30 MSR_PARSE(3)