1MSR_SAMPRATE(3)            Library Functions Manual            MSR_SAMPRATE(3)
2
3
4

NAME

6       msr_samprate - Determine sample rate from an MSRecord structure
7
8

SYNOPSIS

10       #include <libmseed.h>
11
12       double  msr_samprate ( MSRecord *msr );
13
14       double  msr_nomsamprate ( MSRecord *msr );
15
16

DESCRIPTION

18       msr_samprate  will  calculate a double precision sample rate in samples
19       per second using the header values in the  specified  MSRecord.   If  a
20       Blockette  100  is included, the "Actual sample rate" (field 3) will be
21       returned, otherwise a nominal sample rate will be calculated  from  the
22       sample rate factor and multiplier in the fixed section data header.
23
24       NOTE: The sample rate for a MSRecord structure is available directly at
25       MSRecord.samplerate.  libmseed based programs should  use  that  sample
26       rate   whenever   possible   (msr_unpack   uses   msr_samprate  to  set
27       MSRecord.samplerate).
28
29       msr_nomsamprate will calculate a double precision sample rate  in  sam‐
30       ples  per  second  using  the  sample rate factor and multiplier in the
31       fixed section data header.
32
33

RETURN VALUES

35       msr_samprate returns a double precision sample rate on success and -1.0
36       on error.
37
38       msr_nomsamprate  returns  a double precision sample rate on success and
39       -1.0 on error.
40
41

SEE ALSO

43       ms_intro(3) and msr_unpack(3).
44
45

AUTHOR

47       Chad Trabant
48       IRIS Data Management Center
49
50
51
52Libmseed API                      2006/02/27                   MSR_SAMPRATE(3)
Impressum