snip - copy an excerpt of a WFDB record
snip -i input-record -n
new-record [ options ]
snip copies the signal files (and, optionally,
annotation files) of the specified input-record, and generates a header
file, thereby creating the specified new-record. snip is usually used to
extract an excerpt of its input-record, using the -f and -t options (see below)
to specify the segment to be copied.
The program xform(1)
can also perform
this task, but offers additional flexibility (it can scale the signals,
resample them at a different frequency, rearrange them, select subsets
of them, or reformat them); snip is faster than xform, however.
Options
are:
- -a annotator
- Copy the specified annotator as well as the signal files.
Two or more annotator arguments, separated by spaces, can follow -a. An
annotator supplied via the standard input may be specified using ‘-’, but
only immediately after -a; in this case only, annotations are copied to
the standard output.
- -f time
- Begin at the specified time in the input record
(default: the beginning of the record).
- -h
- Print a usage summary.
- -l duration
- Snip a segment of the specified duration (hh:mm:ss or snnnn; overrides
-t if given).
- -m
- Preserve segments of multi-segment input, if possible.
- -s
- Suppress
output of info strings in the output header file.
- -t time
- Process until the
specified time in the input record (default: continue to the end of the
record).
It may be necessary to set and export the shell variable
WFDB (see setwfdb(1)
).
- new-record.annotator
- output annotation file
- new-record.dat
- output signal file
- new-record.hea
- output header file
setwfdb(1)
,
xform(1)
George B. Moody (george@mit.edu)
http://www.physionet.org/physiotools/wfdb/app/snip.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 17 December 2010