./
eve_get_wave_bin.pro
top source eve_get_wave_bin
result = eve_get_wave_bin(wavelength [, megsa=megsa] [, megsb=megsb] [, l2=l2] [, inverse=inverse])
Given a wavelength, find the index of the wave array which is closest to it.
You should set exactly one of /megsa, /megsb, and /l2. If none are set, the function returns zero. If more than one is set, the first one in the priority list /megsa, /megsb, /l2 is chosen
Return value
If /inverse is not set, index in the appropriate wave array matching this wavelength. If /inverse is set, wavelength matching this index.
Parameters
- wavelength in required
input wavelength in nanometers
Keywords
- megsa in optional
if set, use MEGS A wavelength scale
- megsb in optional
if set, use MEGS B wavelength scale
- l2 in optional
if set, use Level 2 wavelength scale
- inverse in optional
if set, treat wavelength as an index instead of a wavelength and find the wavelength that matches the index
File attributes
Modification date: | Mon Jul 16 18:36:59 2012 |
Lines: | 41 |
Docformat: | rst rst |