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

extract_grid

Syntax
extract_grid --help
extract_grid [-mid] [gridname]
extract_grid -old [-mid] [gridname]
Synopsis

Extract statistics from a grid file.

Options
--helpprint the help message and exit.
--versionprint the RST version number and exit.
-midrecord the time in the middle of the grid data, not the start and end times.
gridnamefilename of the grdmap format file. If this is omitted, the file will be read from standard input.
-oldthe input file is a grd format file.
Description

Extracts the scatter statistics from a grid file.

The number of stations, their identifier codes and the number of vectors that they contribute to each record is extracted and written to standard output. Each record in the grid file produces a single line of output containing the full start and end times of the record:

syear smonth sday shour sminute sseconds eyear emonth eday ehour eminute seconds...

If the "-mid" option is specified the line will contain the time at the middle of the record:

myear mmonth mday mhour mminute mseconds...

The remainder of the line lists the total number of vectors and stations in the record followed by the number of vectors associated with each station and each station's identifier number:

nvec nid vecA vecB vecC...vecn idA idB idC...idn
Examples
extract_grid -old 19981020.grd

Extracts the scatter statistics from the file "19981020.grd" and display them on the console.

extract_grid -mid 19991120.grdmap > 19991120.sct

Extract the scatter statistics from the grid file "19991120.grdmap" to produce the output file "19991120.sct". The middle time of each record is recorded in the file.