ANSI-C programs: gc_map.c, gc_map_grd.c
NAME
gc_map - Geocoding lookup
table derivation based on DEM in MAP coordinates and SAR imaging
geometry.
gc_map_grd - Geocoding lookup table derivation based on DEM in MAP coordinates and SAR imaging geometry for SAR image in ground-range / azimuth coordinates.
SYNOPSIS
gc_map <MLI_par> <ISP_par> <DEM_par>
<DEM> <DEM_gc_par> <DEM_gc> <gc_map>
[lat_ovr] [lon_ovr] [sim_sar] [u] [v] [inc] [psi] [pix] [ls_map]
[frame] [ls_mode] [r_ovr]
<MLI_par> | (input) ISP MLI or SLC image parameter file (slant range geometry) |
<OFF_par> | (input) ISP offset/interferogram parameter file (enter - if geocoding SLC or MLI data) |
<DEM_par> | (input) DEM parameter file |
<DEM> | (input) DEM data file (or constant height value) |
<DEM_seg_par> | DEM segment parameters used for geocoding If this file exists, then the bounds of the DEM segment used for geocoding are read from the parameter file, otherwise the bounds are estimated using the SLC parameters and state vectors, and written to the new parameter file |
<DEM_seg> | (output) segment of DEM used for geocoding interpolated if lat_ovr > 1 or lon_ovr > 1 |
<lookup_table> | (output) geocoding lookup table (containing range Doppler coordinates of DEM segment for geocoding |
[lat_ovr] | latitude DEM oversampling factor (default = 2.0) |
[lon_ovr] | longitude DEM oversampling factor (default = 2.0) |
[sim_sar] | (output) simulated SAR backscatter image (in DEM geometry) |
[u] | (output) zenith angle of surface normal vector n (angle between z and n) |
[v] | (output) orientation angle of n (between x and projection of n in xy plane) |
[inc] | (output) local incidence angle (between surface normal and look vector) |
[psi] | (output) projection angle (between surface normal and image plane normal) |
[pix] | (output) pixel area normalization factor |
[ls_map] | (output) layover and shadow map (in map projection) |
[frame] | number of DEM pixels to add around area covered by SAR image (default: 8) |
[ls_mode] | output lookup table values in regions of layover,
shadow, or DEM gaps (enter - for default) 0: set to (0.,0.) 1: linear interpolation across these regions (default) 2: actual value 3: nn-thinned |
[r_ovr] | range oversampling factor for nn-thinned layover/shadow mode (ls_mode=3) (default=2.0) |
EXAMPLE
gc_map 8560.par 8560_8059.off dv_utm.par dv_utm.dem
8560_8059.utm.par 8560_8059.utm.dem 8560_8059.utm_to_rdc 2 2
8560_8059.utm.sim_sar u v linc psi pix ls_map
Creates geocoding lookup table based on DEM in MAP coordinates and SAR imaging geometry (oversampling factors in latitude and longitude 2.0, all DEM derived products are calculated and written out to files).
gc_map 8560.par 8560_8059.off dv_utm.par dv_utm.dem 8560_8059.utm.par 8560_8059.utm.dem 8560_8059.utm_to_rdc 2. 2. 8560_8059.utm.sim_sar - - - - pix
Creates geocoding lookup table based on DEM in MAP coordinates and SAR imaging geometry (oversampling factors in latitude and longitude 2., of the DEM derived products only the simulated SAR intensity image and the pixel normalization factors are written out to a file).
gc_map 8560.par 8560_8059.off dv_utm.par 100.0 8560_8059.utm.par 8560_8059.utm.dem 8560_8059.utm_to_rdc 1. 1. 8560_8059.utm.sim_sar u v linc psi pix ls_map
Creates geocoding lookup table for ellipsoid corrected geocoding (i.e. instead of a DEM a constant height value of 100.0m is used. (all DEM derived products are calculated and written out to files).
gc_map 8560.grd.par dv_utm.par dv_utm.dem 8560.utm.par 8560.utm.dem 8560.utm_to_grd 2 2 8560_8059.utm.sim_sar u v linc psi pix ls_map
Creates geocoding lookup table and all DEM derived products for a PRI SAR image in ground-range azimuth coordinates.
DESCRIPTION
gc_map calculates complex valued geocoding lookup table
based on DEM in MAP coordinates and SAR imaging geometry. The
geocoding lookup table has the dimension of the DEM segment in
MAP projection and contains corresponding SAR coordinates as
floating point complex valued numbers with the real part
corresponding to the real-valued column and the imaginary part
corresponding to the real-valued row number.
If the interferogram/offset parameter file is not available because geocoding is desired of an image not related to an interferogram, such as an MLI image from a SAR processor, a - may be entered instead of the parameter file name. In this case the required parameters are extracted from the SLC/MLI parameter file. The program create_diff_par can then be used to create the DIFF/GEO parameter file used to measure offsets between a simulated SAR image and the actual image in order to correct the geocoding map produced by gc_map.
The provided DEM can be in 4-byte floating or 2-byte (short) integer format and is characterized in the corresponding DEM parameter file.An image segment covering the area of the SAR image is extracted from the DEM and oversampled in range and azimuth using the user provided oversampling factors. This allows to generate geocoded products at user defined spatial resolution different from the available DEM.
In addition to the geocoding lookup table additional information is calculated from the DEM and SAR geometry. The quantities calculated are: local incidence angle, projection angle (for pixel size normalization), pixel size normalization factor, zenith and orientation angle for local surface normal, layover/shadow map. Output file names may be replaced by "-" to suppress creation of the corresponding output file
The layover and shadow mode flag ls_mode determines what values are written into the output lookup table for regions of layover or shadow. Mode 0 writes the values 0.,0. to the lookup table and corresponding areas geocoded using geocode_back will be set to the null value. Mode 1 functions like mode 0 with the exception that the gaps in the lookup table (corresponding to layover, shadow, or gaps in the DEM) are filled using linear interpolation from the lookup table values at the edges of the gap for each line.
Mode 2 writes the true values of the lookup table without consideration of layover or shadowing. This may lead to non-monotonic range coordinate sequences. Mode 3 is similar to mode 2 with the additional feature that samples of the lookup table that are in layover and are not very close to a sample in the SAR image are set to 0.0 (thinned out). In layover regions many points in the lookup table have very similar range pixel coordinates. The degree of thinning is controlled by the range oversampling factor [r_ovr] entered on the command line. This factor determines the minimum range spacing for adjacent samples in the lookup table. Large values of range oversampling lead to minimal thinning because the spacing between range samples is small. Use of mode 3 introduces small gaps in the terrain corrected output products for layover regions in the SAR image. In modes 0, 2,and 3 gaps in the DEM are set to (0.0,0.0) in the lookup table.
Notice that the geocoding lookup table calculated is based on the available DEM and SAR geometry information. In particular the orbit data is usually not perfectly accurate, so that we recommend including a fine registration step as described in the DIFF Users Guide. The geocoding lookup table is used by the programs geocode and geocode_back for forward and backward geocoding. The geocoding lookup table may be inverted using the program geocode_back.
The simulated SAR intensity image can be used for the fine registration step. For this purpose it is first converted to SAR range/Doppler coordinates (using the program geocode). Then, in a cross-correlation analysis with a real SAR image, determine the fine registration offsets and use these to refine the geocoding lookup table. An alternate method for converting the simulated SAR image into SAR coordinates is to first invert the geocoding lookup table using gc_map_inversion and using geocode_back to resample the simulated image into SAR range/Doppler coordinates.
gc_map_grd has the same functionality as gc_map, but for SAR images in ground-range / azimuth coordinates (instead of slant-range / azimuth). No ISP/offset parameter file is asked for on the command line.
OPTIONS
The following DEM projections are supported:
Keyword | Projection |
EQA | Equiangular |
UTM | Universal Transverse Mercator |
TM | Transverse Mercator (Germany, Finland, Italy, and others) |
OMCH | Oblique Mercator (Switzerland) |
LCC | Lambert Conformal Conic (France) |
PS | Polar Stereographic |
SCH | Spherical geometry map projection (see "Zebker et. al, "Geodetically Accurate INSAR Data Processor", Trans. Geoscience and Remote Sensing, pp.4309-4321, vol. 49, no. 12, Dec., 2010) |
PC | Polyconic Projection |
AEAC | Albers Equal Area Conic |
For the generation of Geocoded Ellipsoid Corrected (GEC) products a constant height value can be specified instead of the input DEM file. GEC geocoding does not require a DEM. In spite of the non-existence of an input DEM and the constant height value used a DEM parameter file has to be created in order to specify the desired projection, ellipsoid and pixel spacing. A more efficient implementation for this case is provided by the program gec_map.
For Terrain Corrected Geocoding based on height information given in SAR range-Doppler coordinates (typically estimated using SAR interferometry) the program gc_insar can be used.
SEE ALSO
gec_map, gec_map_grd, gc_insar, geocode,
geocode_back, gc_map_fine, init_offsetm, offset_pwrm, gc_map_inversion, typedef_ISP.h, typedef_DIFF.h .
© Copyrights for Documentation, Users Guide and Reference Manual by Gamma Remote Sensing, 2011.
UW, CW, last change 29-Aug-2011