Lamsel: Difference between revisions
Jump to navigation
Jump to search
imported>Jeremy (Importing text file) |
imported>Jeremy (Importing text file) |
||
Line 1: | Line 1: | ||
===Purpose=== | ===Purpose=== | ||
Determine indices of wavelength axes in specified ranges. | Determine indices of wavelength axes in specified ranges. | ||
===Synopsis=== | ===Synopsis=== | ||
:inds = lamsel(freqs,ranges,''out'') | :inds = lamsel(freqs,ranges,''out'') | ||
===Description=== | ===Description=== | ||
LAMSEL determines the indices of the elements of a wavelength or wavenumber axis within the ranges specified. Inputs are the wavelength or wavenumber axis freqs and an ''m'' by 2 matrix defining the wavelength ranges to select ranges. | LAMSEL determines the indices of the elements of a wavelength or wavenumber axis within the ranges specified. Inputs are the wavelength or wavenumber axis freqs and an ''m'' by 2 matrix defining the wavelength ranges to select ranges. | ||
An optional input ''out'' suppresses displaying information to the command window when set to 0. | An optional input ''out'' suppresses displaying information to the command window when set to 0. | ||
The output inds is a vector of indices of channels in the specified range(s) inclusive. | The output inds is a vector of indices of channels in the specified range(s) inclusive. | ||
===Examples=== | ===Examples=== | ||
inds = lamsel(lamda,[840 860; 1380 1400]); | inds = lamsel(lamda,[840 860; 1380 1400]); | ||
outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400. | outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400. | ||
===See Also=== | ===See Also=== | ||
[[baseline]], [[savgol]], [[specedit]] | [[baseline]], [[savgol]], [[specedit]] |
Revision as of 14:25, 3 September 2008
Purpose
Determine indices of wavelength axes in specified ranges.
Synopsis
- inds = lamsel(freqs,ranges,out)
Description
LAMSEL determines the indices of the elements of a wavelength or wavenumber axis within the ranges specified. Inputs are the wavelength or wavenumber axis freqs and an m by 2 matrix defining the wavelength ranges to select ranges.
An optional input out suppresses displaying information to the command window when set to 0.
The output inds is a vector of indices of channels in the specified range(s) inclusive.
Examples
inds = lamsel(lamda,[840 860; 1380 1400]);
outputs the indices of the elements of lamda between 840 and 860 and between 1380 and 1400.