|
tclradar − commands to help manipulate radar data |
|
2 |
package require tclradar 2
::radar::grnd_rng ray_dist height tilt
::radar::ray_rng gc_dist height tilt
::radar::bilin_interp az r {az_0 az_1} {r_0 r_1} {{z_00 z_01} {z_10 z_11}}
::radar::arr_search ?-angles? {x0 x1 ...} x
::radar::polar_grid polarGridName azimuths ranges
polarGridName azimuths
polarGridName ranges
polarDataName center
polarDataName num_azimuth
polarDataName num_range
polarDataName azimuths
polarDataName ranges
polarDataName data ?index?
polarDataName copy destName
polarDataName bintvl min max outline_set_name
polarDataName bintvls bounds outline_set_names
polarDataName add polarDataNameORscalar
polarDataName subtract polarDataNameORscalar
polarDataName multiply polarDataNameORscalar
polarDataName divide polarDataNameORscalar
polarDataName d_dr
polarDataName d_daz
polarDataName minimum
polarDataName maximum
polarDataName rms
|
|
The tclradar package provides commands for calculations often encountered in the manipulation of radar data. It also provides internal functions and data used by some other radar packages. When loaded, the package creates a namespace named ::radar to store variables and commands related to radar data. |
|
::radar::grnd_rng ray_dist height tilt |
|
This command computes the distance along the ground from the radar to the point below a cell ray_dist meters along the ray. Antenna is at height meters above ground. The ray is tilted tilt degrees. Distance is returned in meters. |
|
::radar::ray_rng gc_dist height tilt |
|
This command computes the distance along a ray to the cell above a point gc_dist meters away from the radar. Antenna is at height meters above ground. The ray is tilted tilt degrees. Distance is returned in meters. |
|
::radar::bilin_interp |
|
Returns the value of a field z at polar coordinates (az, r), given bounding azimuths az_0 and az_1, bounding ranges r_0 and r_1, and corner values z_00, z_01, z_10, and z_11 for inner left, outer left, inner right, and outer right, respectively. It uses bilinear interpolation. |
|
::radar::arr_search ?-angles? {x0 x1 ...} x |
|
Returns the lower index from {x0 x1 ...} of the interval that bounds x. With the -angles option, the values in the list are assumed to be angles, and zero crossings are interpreted correctly (e.g., 355 is "between" 350 and 0). The command returns -1 if x is out of bounds to the left. It returns the number of elements in {x0 x1 ...} if x is out of bounds to the right. |
|
::radar::polar_grid creates a new Tcl command named polarGridName |
|
that stores and accesses a polar grid. See the radar (3) man page for information on accessing the resulting command and structures in C. The grid azimuths will be set to azimuths, which must be a list of floating point angles, and the grid ranges will be set to ranges, which must be a list of floating point values. |
|
When a polar grid is created, Tcl creates a new command named polarGridName with the following subcommands: |
|
polarGridName azimuths |
|
Returns a list containing the grid azimuths. |
|
polarGridName ranges |
|
Returns a list containing the grid ranges. |
|
The Tclradar_AddPolarData function adds a command to Tcl that accesses a polar data structure. See radar (3) and tclradar (3). The resulting command accepts the following subcommands: |
|
polarDataName center |
|
Returns the origin of the polar data set, a {latitude longitude} value. |
|
polarDataName num_azimuth |
|
Returns the number of azimuths. |
|
polarDataName num_range |
|
Returns the number of range gates (cells). |
|
polarDataName azimuths |
|
Returns the azimuths as a list. |
|
polarDataName ranges |
|
Returns the range gates as a list. |
|
polarDataName data ?i? |
|
If i is present, returns a list with data values for ray with index i. The first ray has index 0. If no index is specified, the command returns all data as a two dimensional list (list of lists). |
|
polarDataName copy destName |
|
Copies the contents of polarDataName to destName. If there is already a Tcl command named destName, it’s previous contents are deleted. |
|
polarDataName bintvl min max outline_set_name |
|
polarDataName bintvls bounds outline_set_names |
|
polarDataName add polarDataNameORscalar |
|
polarDataName subtract polarDataNameORscalar |
|
polarDataName multiply polarDataNameORscalar |
|
polarDataName divide polarDataNameORscalar |
|
polarDataName d_dr |
|
polarDataName d_daz |
|
polarDataName minimum |
|
polarDataName maximum |
|
polarDataName rms |
|
libtclradar2.6.9.so |
|
radar |