GEN_IMAGE_DOIT

Use this procedure to generate test images.

Syntax

ENVI_DOIT, 'GEN_IMAGE_DOIT', DATA_TYPE=value, /IN_MEMORY, MAX_VAL=value, MEAN=value, METHOD={0 | 1 | 2 | 3 | 4 | 5}, MIN_VAL=value, NB=integer, NL=integer, NS=integer, OUT_NAME=string, R_FID=variable [, SEED=value], SIGMA=value, VAL=value

Keywords

DATA_TYPE

Use this keyword to specify the IDL data type of the file, using the following IDL convention.

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).

MAX_VAL

Use this keyword to specify the maximum value when METHOD=1, 2, 3 or 5.

MEAN

Use this keyword to specify the mean value when METHOD=4.

METHOD

Set this keyword to one of the following values to specify which type of test image to generate.

MIN_VAL

Use this keyword to specify the minimum value when METHOD=1, 2, 3 or 5.

NB

Use this keyword to specify the number of bands in the output image.

NL

Use this keyword to specify the number of lines in the output image.

NS

Use this keyword to specify the number of samples in the output image.

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.

R_FID

ENVI Classic library routines that result in new images also have an R_FID, or “returned FID.” This is simply a named variable containing the file ID to access the processed data. Specifying this keyword saves you the step of opening the new file from disk.

SEED (optional)

Use this keyword to specify a random number seed when METHOD=3 or 4.

SIGMA

Use this keyword to specify the Gaussian sigma value when METHOD=4 or 5. For METHOD=5, +/- one sigma is equal to the number of samples.

VAL

Use this keyword to specify the constant value for constant images.

API Version

4.2