Use this procedure to calculate an incidence angle for a radar image. No DEM data are used to calculate the incidence angle.

Syntax


ENVI_DOIT, 'RADAR_INC_ANGLE_DOIT' [, /DEGREES], DIMS=array, FR_ANGLE=value, /IN_MEMORY, /LEFT_LOOK, NR_ANGLE=value, OUT_BNAME=string array, OUT_NAME=string, RANGE_DIR={0 | 1}

Keywords


DEGREES (optional)

Set this keyword to specify that the input and output angles are in degrees. Otherwise, the angles are in radians.

DIMS

The “dimensions” keyword is a five-element array of long integers that defines the spatial subset (of a file or array) to use for processing. Nearly every time you specify the keyword FID, you must also specify the spatial subset of the corresponding file (even if the entire file, with no spatial subsetting, is to be processed).

  • DIMS[0]: A pointer to an open ROI; use only in cases where ROIs define the spatial subset. Otherwise, set to -1L.
  • DIMS[1]: The starting sample number. The first x pixel is 0.
  • DIMS[2]: The ending sample number
  • DIMS[3]: The starting line number. The first y pixel is 0.
  • DIMS[4]: The ending line number

To process an entire file (with no spatial subsetting), define DIMS as shown in the following code example. This example assumes you have already opened a file using ENVI_SELECT or ENVI_PICKFILE:

  envi_file_query, fid, dims=dims

FR_ANGLE

Use this keyword to specify the far-range angle for the locations specified by the DIMS array.

IN_MEMORY

Set this keyword to specify that output should be stored in memory. If you do not set IN_MEMORY, output will be stored on disk and you must specify OUT_NAME (see below).

LEFT_LOOK

Set this keyword to use a left-looking instrument to calculate the incidence angle image.

NR_ANGLE

Use this keyword to specify the near-range angle for the locations specified by the DIMS array.

OUT_BNAME

Use this keyword to specify a string array of output band names.

OUT_NAME

Use this keyword to specify a string with the output filename for the resulting data. If you set the keyword IN_MEMORY, you do not need to specify OUT_NAME.

RANGE_DIR

Use this keyword to specify the range direction. RANGE_DIR is an integer value with the following definitions:

  • 0: Range by samples
  • 1: Range by lines

API Version


4.2