radar

Contents

Type Size Name Notes
makefile 2kB Makefile
text 2kB README
C source code 11kB getblock.c Get a block of parameters from an Eldora or Dorade file. Getblock is handed an open file pointer, a maximum block size, and the block buffer. It returns the block size if everything is ok, -1 on error, and 0 on end of file.
C source code 7kB getrp7.c This subroutine reads a record (1 ray) of NCAR RP-7 data from the standard input and puts the header into a structure. A pointer to a data buffer is returned. A return of NULL indicates an end of file. If the expected number of bytes is set to 0, an rtape-type record header is expected, i. e., an 8 byte ascii decimal integer. If it is a positive number, that number of bytes is assumed to be the size of the record, including the header. If the input parameter swap is 1, bytes are swapped in the incoming header, if 0, not.
C source code 18kB radcart.c This program interpolates data from a single radar onto a Cartesian grid. The data are expected in the form of a file with a single variable slice containing fields as a function of range and raycnt. The usual way to generate this file is by running raduf on a universal format file, and then running cdfcat on the sequence variable raycnt. Finally run cdfuniq to reduce the dimension of unvarying variables.
C source code 16kB radcart2.c Radcart2 is the second try at a ray-to-cartesian format radar data converter. This one takes the alternate approach of reading rays one at a time and assigning weighted values to surrounding grid points. First order corrections for the curvature of the earth are made.
C source code 22kB radcart4.c interpolate radar data to a cartesian grid. Each data point is assumed to affect all eight grid points that surround it. All data points that affect a particular grid point are weighted according to the grid spacing minus the distance between the grid point and the data point.
C source code 31kB radcart5.c This is based on Carlos Lopez-Carrillo's modifications to Lucio Lopez's Cartesianization program, which is based on the Cartesianization program of Sharon Lewis, which is based on the original program by Dave Raymond. It does only dual Doppler. Modifications made by Dave Raymond.
C source code 10kB radcedric.c This program accepts a cedric file in rtape format from the standard input and writes a corresponding common data format file in float format to the standard output. The cedric file specification is taken from "Cedric -- Cartesian Space Data Processor (Batch Version), 2/1/85" by Carl Mohr of the National Center for Atmospheric Research. Radcedric assumes that data are organized in horizontal planes on input. On output, one 3-D variable slice is created. In regions with non-existent data, the data points are given the value 1000. A scalar variable field called time is created, with value equal to the time after midnight in units of 1000 sec. This program is inherently dependent on computer architecture because short integer byte order (the form in which cedric stores most, but not all data) differs between machines. Set the "swap bytes" flag if files from machines with the opposite byte order are being processed.
22kB radedit.l edit radar ray file for folding and bad data
C source code 19kB radeldora.c convert an Eldora file (stdin) to a series of Candis files
C source code 21kB radfill.c the idea is to run over the grid and substitute every value on the grid of the mentioned fields by a weighted average. The points to make the interpolation must be in the same z-plane and inside or over the radius of influence. Also there must be a minimun number of points into that radius to make a sensible average. the value for the radius of influenc(radius),the minimun value of good points into that radius(minp) and the list of fields to be interpolated must be provided as an input parameters.
C source code 5kB radfudge.c This program fixes offset errors in uf/cdf/cat radar data. Potential offsets fixed are in range, azimuth and reflectivity. Constant values, specified on the command line, are added to each of these things. If the cluttersup argument is specified, radial velocities less than the value in magnitude are set to bad. This is a primitive attempt to suppress ground clutter.
C source code 7kB radice.c This program computes various cloud physical parameters based on the assumption that the radar return is from graupel or small hail. Data used from the input file are radar reflectivity in dB, terminal fall velocity in m/s (assumed negative), and air density as a function of height (kg/m^3). Default values for drag coefficient and terminal velocity radius relationship are assumed unless six rather than three command line arguments are typed.
C source code 8kB radmflux.c This program accepts a cdf radar file processed by radvert on the standard input and computes various horizontally integrated quantities. Mflux -- horizontally integrated vertical velocity times density rho. Mfluxu -- updraft part of mflux. Mfluxd -- downdraft part of mflux. Dflux -- horizontally integrated divergence. Dflux2 -- minus the z derivative of mflux divided by the density rho. Uflux -- the u-component momentum flux. Vflux -- the v-component momentum flux. The density field is assumed to occur in the static slice. The names of the divergence and vertical velocity are respectively the first and second command line arguments.
C source code 10kB radray.c This program extracts rays of radar data from CEDRIC-synthesized data. The radial velocity along the ray is computed.
C source code 10kB radrp7.c This program reads NCAR RP-7 field format tapes and converts them to Candis format. It is assumed that the tape was read to disk using the Candis utility rtape. The output is in the form of one ray per variable slice.
C source code 11kB radsource.c accepts radar data in a common data file format and creates a file (called source) that contains the figured data
C source code 24kB radsynth.c synthesizes cartesian velocity components from radial velocity components associated with two or more radars
C source code 7kB radtop.c This program creates 6 2-D fields from radar data files: 1) Top level of reflectivity, topz; 2) Top level of vertical velocity, topw; 3) Vertical velocity at that top level, topwval; 4) Reflectivity at that top level, topzval; 5) Uppermost level at which divergence is defined, topd; 6) Value of divergence at that level, topdval. Input arguments are the field names of the reflectivity, the divergence, and the vertical velocity. The new fields are output into an new common data format file. The index fields x, y, and z are assumed to exist.
C source code 14kB raduf.c raduf reads a file from stdin written (from a universal format radar tape) by rtape, and makes a cdf file for the data. Bad data are converted to our bad value and written if possible. But if the value is a pointer to the beginning of the data section or some other value used by this program, we die with an error
C source code 8kB raduffix.c this program attempts to fix problems in data that "follows" the universal format data. at the current time it only fixes errors types known to occur. the routines are general enough to allow the for the addition of part to account for new errors uffix works on files that do or don't contain the file structure
C source code 17kB radvert.c This filter computes various quantities having to do with vertical motion on radar data, namely, horizontal divergence, continuity-generated vertical velocity, and particle terminal velocity. Also computed are vertical profiles of density (rho), as well as the pressure (pres) and the scale height (zs).
C source code 29kB radvert2.c This program computes various quantities having to do with vertical motion for dual doppler radar data, namely, horizontal divergence, continuity-generated vertical velocity, particle terminal velocity (wtZ, from Jorgensen's approach), and vertical particle velocity (wpart). Also computed are vertical profiles of density (rho), as well as pressure (pres), and scale height (zs). These are computed on a constant lapse rate hypothesis.
C source code 29kB radvert3.c This program computes various quantities having to do with vertical motion for dual doppler radar data, namely, horizontal divergence, continuity-generated vertical velocity, particle terminal velocity (wtZ, from Jorgensen's approach), and vertical particle velocity (wpart). Also computed are vertical profiles of density (rho), as well as pressure (pres), and scale height (zs). These are computed on a constant lapse rate hypothesis.
C source code 23kB radvert4.c This program computes the vertical particle velocity, the horizontal divergence, the vertical wind, the particle terminal velocity, and the horizontal wind components. The command line arguments are the desired names of these fields. A column divergence correction is always done.
C source code 10kB radvort.c compute absolute vorticity and vort flux from radar data
C source code 2kB rp7.h This contains information about data from the rp7 radar processor.
29B system
C source code 29kB testvert.c