ENVI_RESAMPLE_SPECTRA

This procedure spectrally resamples individual spectra.

Syntax

ENVI_RESAMPLE_SPECTRA, I_WL, I_Spec, O_WL, O_Spec [, BAD_VALUE=value] [, INTERLEAVE={0 | 1 | 2}] , OUT_DT=integer [, OUT_FWHM=array]

Arguments

I_WL

This is a vector of input wavelengths corresponding to the input spectra (I_Spec).

I_Spec

This is a vector of input spectra to be resampled.

O_WL

This is a vector containing the output wavelengths to resample to. This argument must have the same units as I_WL.

O_Spec

This is a vector containing the resampled output spectra.

Keywords

BAD_VALUE (optional)

Use this keyword to specify a value for spectra that fall outside the input wavelength range. In this case, no extrapolation will be performed. All spectra values equal to BAD_VALUE are considered bad values. BAD_VALUE is a single number.

INTERLEAVE (optional)

Set this keyword to one of the following values to specify an interleave type:

OUT_DT

This keyword indicates the IDL data type of the output data. Set the keyword to one of the following integer values:

OUT_FWHM (optional)

Use this keyword to specify an array of floating-point values representing FWHM responses for each output band. The number of elements in this array is equal to the number of output bands.

API Version

4.2