HRDRAD

NAME
NAME
SYNOPSIS
DESCRIPTION
BUGS
SEE ALSO
CONTRIBUTORS

NAME

hrdrad, hrdrad2 -- convert HRD format radar data to Candis format

NAME

rertape, rifex -- insert rtape block headers

SYNOPSIS

hrdrad -[t|l] [-nfba] -r maxgate -x airfile -c corrections -s times -h headlims

hrdrad2 -[t|l] [-fbau] [-x airfile] [-s times] [-c corrections]

rertape

rifex

DESCRIPTION

Hrdrad converts NOAA/AOL aircraft radar data from AOL native format to Candis format. AOL data are expected on the standard input and the Candis data appear, one variable slice per ray, on the standard output. The AOL data must have been read using the "rtape" utility with record headers enabled, which preserves the record structure of the file when read to disk.

Rertape is a filter which inserts the record headers into an AOL radar file on disk which are normally inserted when rtape converts a tape file to a disk file. This is done by assuming a particular structure for the blocks in the radar file. Rifex does the same thing but is somewhat more robust in that it determines the block structure from the file itself.

The options for hrdrad are as follows:

-t or -l -- one and only one of these two options must be selected, the first to write only data from the tail radar, the second to write data from the lower fuselage radar.

-n -- Normally velocity data from the tail radar have the aircraft velocity removed and are then unfolded. This option suppresses both of these corrections. The option has no effect when the lower fuselage radar is selected.

-f, -b -- Specification of one or both of these options selects either forward looking data or rearward looking data from the tail radar, or both if both are employed. At least one should be selected, or no data will appear. These options have no effect when the lower fuselage radar is selected.

-r maxgate -- This option forces only the first "maxgate" radar gates to be retained in the output. All gates are retained if this option is not selected.

-a -- This option causes gates to be selected for the tail radar on a uniform 300 m interval. Normally, the first 256 gates have 75 m spacing, the next 128 have 150 m spacing, and the final 128 gates have 300 m spacing.

-x airfile -- If invoked, housekeeping data from the file "airfile" is substituted for that appearing on the radar tape. "Airfile" must have been created by "hrdair" from AOL in situ data, and must be converted to a single variable slice using "cdfcat".

-c corrections -- If invoked, additive corrections are made to various angles and distances in the radar data. The "corrections" argument takes the following format: d_rot:d_tilt:d_heading:d_pitch:d_firstgate. The additive corrections are to the rotation (or raw azimuth), tilt (or raw elevation), aircraft heading, and aircraft pitch angles, and to the distance to the first radar gate in kilometers.

-s times -- If invoked, only times (in kiloseconds after midnight) within the specified range will be written. The "times" argument has the form time1:time2, where the two subarguments specify the time range.

-h headlims -- If invoked, only rays with aircraft headings within the specified range will be written. The "headlims" argument has the form requested_heading:tolerance:roll_tolerance, where headings in [requested_heading - tolerance, requested_heading + tolerance], and with the aircraft roll less than roll_tolerance in magnitude are accepted.

The options for hrdrad2 are the same as for hrdrad except that -n, -r, and -h are omitted and the following are added or modified:

-u -- Unfolding is normally turned off. This turns it on. The default on unfolding is thus the opposite of hrdrad.

-c corrections -- The format is different from hrdrad, taking the form "c_raz:c_rel:c_heading:c_pitch:c_fgate". (Needs to be detailed.)

For both the lower fuselage and tail radars, the reflectivity is stored in the field "dbz" with units of decibels. The velocity data from the tail radar is stored in "vr" with units of meters per second. Both these fields are one-dimensional functions of range, which is specified in kilometers. The spectral width data from the tail radar are discarded. Housekeeping data for each ray are stored in scalar fields as follows:

raycnt -- Ray count for this file, starting at 0 and incrementing by 0.001 for each ray. (Unity is not used as the increment because it would be reasonably possible to then put "raycnt" into the bad data range.) If subsequently converting to a single variable slice with "cdfcat", raycnt can be used as the new index field.

az -- Radar beam azimuth clockwise from north in degrees.

el -- Radar beam elevation positive upward from horizontal in degrees.

BUGS

This program assumes that all header records after the first are redundant and doesn’t bother to decode them. (However, it does complain about their existence.) This situation generally only arises when the -f flag is used with rtape, so that multiple files on P-3 radar tapes are merged into a single file.

It is not clear that the -a option selects gates exactly correctly to get uniform 300 m spacing. Small problems may occur at the breaks in the gate spacing of the original data. These possible errors can probably be neglected for most purposes.

When midnight is crossed, the time variable resets to zero. However the monotime variable continues to be incremented. However, monotime may not be truly monotonic if noise creeps in.

The programs hrdrad and rertape are obsolete, applying to AOL radar data from the TOGA COARE era and before. The newer versions hrdrad2 and rifex should work with data from EPIC (2001) through at least IFEX (2005), and are alleged to work on the earlier data as well.

SEE ALSO

RTAPE(1), HRDAIR(1), RADCART5(1), CDFCAT(1).

CONTRIBUTORS

David Raymond wrote the original version. Lucio Lopez Cavazos made many improvements. Carlos Lopez Carrillo added the monotime fix. David Raymond made some later fixes as well.