CDFTSEL

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
BUGS

NAME

cdftsel −− select variable slices on the basis of time or other monotonically increasing scalar field

SYNOPSIS

cdftsel time_var beginning_time ending_time

DESCRIPTION

This program accepts a common data format file on the standard input and writes a file to standard output with the same field definitions and static slice. However, only the variable slices with the time_var field within the range [beginning_time, ending_time] inclusive are written. If no value within the file is found in the specified interval, the routine fails with an error message. A record of the routine’s action is appended to the comment subsection of the output header.

EXAMPLE

kestrel%cdftsel time 10 40 < infile > outfile

This causes outfile to be generated with four variable slices, those slices in infile with the scalar variable field "time" between 10 and 40 inclusive. (assuming "time" is in multiples of 10)

BUGS

Because of rounding problems in converting to float, it is best to choose boundary values just under and just over those wanted. The example given above would be hardier as:

kestrel%cdftsel time 9.5 40.5 <infile >outfile