NAME

umsd, msdnxt, msdrec - uncompress miniseed records

SYNOPSIS

#include "tr.h"

int msdnxt ( Msd *msd );
int msdrec ( Msd *msd, int rec );

int umsd ( Msd *msd, int **data, int *npts );

DESCRIPTION

The routines msdnxt and msdrec read the header of the next record or the specified record (only when the records are of fixed size). msdnxt generally advances the record pointer to the next record, except at its first call, or following a call to msdput to set MSD_OFFSET.

umsd unpacks the data record described by the input msd, returning a pointer to the integer data and the number of data points. (The data buffer is part of the Msd structure, and is managed by umsd and freed by msdfree()).

The msd pointer must be properly filled out with the miniseed header information for umsd to work.

RETURN VALUES

msdnxt returns 1 when another record was found, 0 when there are no more records.

msdrec returns 0 when the specified record is found and its headers unpacked, non-zero if some error occurs.

umsd returns 0 for success, a non-zero bit flag if some error occurs. Possible errors include MSD_NO_1000_BLOCKETTE for no 1000 blockette, or MSD_UNSUPPORTED_DATATYPE for unsupported or unrecognized datatype, or a variety of possible errors in steim compressed miniseed, described in ustc(3).

LIBRARY

$(TRLIBS)

ATTRIBUTES

MT-Safe

SEE ALSO

cmsd(3)
msd(3)

AUTHOR

Daniel Quinlan

Table of Contents
Antelope Release 4.9 Darwin 8.10.0 2007-10-19
Boulder Real Time Technologies, Inc For more information, contact support@brtt.com