ANSI-C program: map_section.c
NAME
map_section - Generate
the DEM parameter file of a specified region and optionally
extract this region from a geocoding lookup table. The program
also can calculate the bounding box in range-doppler coordinates
that covers the specified region. The lookup table values can be
offset to represent the bounding region.
SYNOPSIS
usage: map_section <DEM_par> <n1> <e1>
<n2> <e2> <post_north> <post_east>
<DEM_par2> [lt] [MLI_par] [cflg] [lt2]
[MLI_coord]
<DEM_par> | (input) DEM parameter file describing the map projection and geometry of the input lookup table |
<n1> | northing map coordinate of the upper-left corner of the map segment (enter - for value in DEM_par) |
<e1> | easting map coordinate of the upper-left corner
of the map segment (enter - for value in DEM_par) |
<n2> | northing map coordinate of the lower-right corner of
the map segment (enter - for value in DEM_par) |
<e2> | easting map coordinate of the lower-right corner
of the map segment (enter - for value in DEM_par) NOTE: units for the corner coordinates depend on the projection specified in the DEM_par |
<post_north> | posting of the output lookup table for map samples in
northing (enter - to keep the posting in the DEM_par) NOTE: post_north must be a negative number to prevent the DEM from flipping north/south when displayed |
<post_east> | posting of the output lookup table in map coordinates
in easting (enter - to keep the posting in the
DEM_par) NOTE: post_east must be a positive number to prevent the DEM from flipping east/west when displayed\ |
<DEM_par2> |
(output) DEM parameter
file describing the geometry of the output lookup
table |
[lt] | (input) lookup table for the
transformation from map geometry to radar Range-Doppler
Coordinates (RDC) (enter - for none) NOTE: The lookup table has the dimensions described by the input DEM_par |
[MLI_par1] | (input) MLI image parameter file with the geometry used for the lookup table values (enter - for none) |
[MLI_par2] | (input) MLI image parameter file with the geometry for the image that will be terrain geocoded (enter - to be the same as MLI_par1) |
[cflg] | lookup table coordinate shift flag (enter - for
default) 0: do not subtract range and azimuth offsets from the lookup table values (default) 1: subtract range and azimuth offsets from the lookup table values |
[lt2] | (output) lookup table segment with the specified posting: post_north and post_east (enter - for none) |
[MLI_coord] | (output) Rectangular region specified in MLI and SLC
coordinates covering the region of the lookup table (text
format) range_offset range samples azimuth_offset azimuth_lines |
EXAMPLES
map_section geo/wise.dem_par 40.28 -107.84 40.21 -107.78
-8.e-5 8.e-5 streeter.dem_par geo/wise_1.map_to_rdc
rmli_1_3/20100102_HH.rmli.par - 0 streeter_0.map_to_rdc
streeter.offsets
Calculates a new DEM parameter file based on the input DEM par and the rectangular region defined by the parameters n1, e1, n2, and e2. The map samples spacing is defined by the post_north and post east parameters. These are set her to -8.e-5 and 8.e-5 respectively. The optional lookup table wise_1.map_to_rdc is resampled to match the specified region and posting. An MLI parameter file is provided to permit bounds checking of the lookup table values. In the where case (cflg : 0), no offset is applied to the lookup table values. The input lookup table values are interpolated to match the values of north/lat and east/lon posting provided on the command line
map_section
geo/wise.dem_par 40.28 -107.84 40.21 -107.78 -8.e-5 8.e-5
streeter.dem_par geo/wise_1.map_to_rdc
rmli_1_3/20100102_HH.rmli.par - 1 streeter_0.map_to_rdc
streeter.offsets
map_section geo_30/ca.dem_par - - - - -12.5
12.5 geo_30_12_5/ca.dem_par geo_30/ca_1.map_to_rdc
mli_4_10/20070221.mli.par mli_2_5/20070221.mli.par 0
geo_30_12_5/ca.map_to_rdc geo_30_12_5/MLI_coord
DESCRIPTION
map_section is a program that supports selection of a region of a data set in map geometry such as a DEM or lookup table. The bounding box in map coordinates is specified by the upper right and lower left map coordinates. A new DEM parameter file is calculated using the corner coordinates and the north and east posting values. The units for the posting depend on the map projection being either degrees for geographic coordinates (EQA) or meters of the standard map projections or the radar specific SCH map coordinate system.
If the user enters an existing lookup table in the geometry described by the input lookup table. The values in the input lookup table will be resampled to cover the region specified in the new DEM parameter file with the specified posting. Bi-cubic spline interpolation is used to resample the lookup table values if this is required.
The user also has the option to provide a second MLI parameter file to define the geometry of the data that will be resampled in Range-Doppler coordinates. The bounding box of the data covered in the map projection is calculated in Range Doppler coordinates. This permits extraction of a section of the radar data to match the associated region in the map geometry. The bounding box in range doppler coordinates can be written to a text file. These corner coordinates can then be used to extract the associated region for the data in radar geometry. A new program cpd makes it easier to extract a region from fcomplex or float images that do not have an associated MLI parameter file.
SEE ALSO
map_trans, dem_trans, geocode, geocode_back, cpd.