Next: RXR(1) Up: WFDB Applications Guide Previous: RDANN(1)On This Page

Name

rdsamp - read WFDB signal files

Synopsis

rdsamp -r record [ options ... ]

Description

rdsamp reads signal files for the specified record and writes the samples as decimal numbers on the standard output. If no options are provided, rdsamp starts at the beginning of the record and prints all samples. Each line of output contains the sample number and samples from each signal, beginning with channel 0, separated by tabs.

Options include:

-f time
Begin at the specified time. By default, rdsamp starts at the beginning of the record.
-h
Print a usage summary.
-H
Read the signal files in high-resolution mode (default: standard mode). These modes are identical for ordinary records. For multifrequency records, the standard decimation of oversampled signals to the frame rate is suppressed in high-resolution mode (rather, all other signals are resampled at the highest sampling frequency).
-l interval
Limit the amount of output to the specified time interval (in standard time format; default: no limit). If both -l and -t are used, rdsamp stops at the earlier of the two limits.
-p
Print times in seconds and milliseconds, and values in physical units. By default, rdsamp prints times in sample intervals and values in A/D units. Use -p -p to obtain higher precision in the sample values (8 decimal places rather than 3).
-s signal-list
Print only the signals named in the signal-list (one or more input signal numbers, separated by spaces; default: print all signals). This option may be used to re-order or duplicate signals.
-t time
Stop at the specified time. By default, rdsamp stops at the end of the record.
-v
Print column headings.

Environment

It may be necessary to set and export the shell variable WFDB (see setwfdb(1) ).

CD-ROM Versions

The first edition of the MIT-BIH Arrhythmia Database CD-ROM, the first and second editions of the European ST-T Database CD-ROM, and the first edition of the MIT-BIH Polysomnographic Database CD-ROM contain versions of rdsamp that use an older command syntax (still supported by the current version but not described here). Refer to bin.doc in the CD-ROM directory that contains rdsamp for further information.

See Also

rdann(1) , setwfdb(1) , wrsamp(1)

Author

George B. Moody (george@mit.edu)

Source

http://www.physionet.org/physiotools/wfdb/app/rdsamp.c


Table of Contents

Up: WFDB Applications Guide


Please e-mail your comments and suggestions to webmaster@physionet.org, or post them to:

PhysioNet
MIT Room E25-505A
77 Massachusetts Avenue
Cambridge, MA 02139 USA

Updated 24 February 2003