Home| superdarn |src.bin|tk|tool| trim_grid Index

trim_grid

Syntax
trim_grid --help
trim_grid [-vb] [-sd yyyymmdd] [-st hr:mn] [-ed yyyymmdd] [-et hr:mn] [-ex hr:mn] [-cn channel] [-exc stid...] [-i intt] name
trim_grid -old [-vb] [-sd yyyymmdd] [-st hr:mn] [-ed yyyymmdd] [-et hr:mn] [-ex hr:mn] [-cn channel] [-exc stid...] [-i intt] name
Synopsis

Extracts a section from a grd or grdmap format file.

Options
--helpprint the help message and exit.
--versionprint the RST version number and exit.
-vbverbose. Log information to the console.
-sd yyyymmddextract starting from the date yyyymmdd.
-st hr:mnextract starting from the time hr:mn.
-ed yyyymmddstop extracting at the date yyyymmdd.
-et hr:mnstop extracting at the time hr:mn.
-ex hr:mnextract an interval whose extent is hr:mn.
-cn channelextract only those records from channel channel.
-exc stid...exclude data from the stations listed in stid which is a comma separated list of station identifier codes or numbers.
-i inttre-integrate the data so that each record is intt seconds in length.
namefilename of the grdmap format file to trim. If this is omitted, the file is read from standard input.
-oldthe input file is a grd format file.
Description

Extracts a section from a grd or grdmap format file.

The extracted section is written to standard output.

Examples
trim_grid -old -vb -st 11:00 -et 14:00 19981020.grd > 19981020.1100.grd

Extracts a 3 hour period starting at 11:00UT from the file called "19981020.grd" to produce a file called "19981020.1100.grd". The status is logged to standard error.

trim_grid -sd 19991121 -st 22:00 -ex 4:00 -i 240 199911.grdmap > 199911.2100.grdmap

Extracts a 4 hour period starting at 22:00UT on November 21, 1999 from the file "199911.grdmap" to produce the output file "199911.2100.grdmap". The records are re-integrated to produce records at 4-minute intervals.

trim_grid -old -exc gbr,kap 20001120.grd > 20001120.2.grd

Removes vectors from the Goose Bay and Kapuskasing Radars from the file "20001120.grd" to produce the file "20001120.2.grd"