chilinfo

This is a simple program that returns information on the first raster found in a radar file. It is intended for use in shell scripts where for instance one might wish to use a different calibration figure depending on the file (or tape) number.

Usage

chilinfo file.[dat|raw] [options]

With no options the program will print a list of file and raster properties on standard error. Alternatively, one or more options can be specified which will result in a line of standard output containing the requested values in the order they were specified. The available options are:

-file, -tape
The file (or tape) number, with leading zeros.
-raster
The raster number.
-date
The date in the form YYYYMMDD.
-system
A string describing the radar system. Currently defined are `CAMRa', `Rabelais', `Galileo' and `Singapore'. Any other system will return `Unknown'.
-system_id
A number identifying the radar system. CAMRa is 1, Rabelais is 2, Galileo is 3 and Singapore is 4.
-experiment
The two-letter experiment code as used in summary files. If the experiment is not recognised, `??' will be returned.
-experiment_ir
The numerical experiment identifier.
-cloud_data
Returns 1 if cloud data, 0 otherwise.
-ir
In addition to any information reported on standard output, display the value of each byte in the Information Record (the first 64 bytes of a scan) on standard error.