Home > ISET > utility > ieWave2Index.m

ieWave2Index

PURPOSE ^

Convert a wavelength to an index into the wave list.

SYNOPSIS ^

function [idx1,idx2] = ieWave2Index(waveList,wave)

DESCRIPTION ^

Convert a wavelength to an index into the wave list.

    [idx1,idx2] = ieWave2Index(waveList,wave)
   
 If only one return argument is requested, then the index closest to the
 specified wavelength. If two indices are requested, these are the indices
 whose wavelength values bound the input wave value.  These are always
 ordered (idx1 < idx2).

 Example
   waveList = sceneGet(scene,'wave');
   idx = ieWave2Index(waveList,503)
   [idx1,idx2] = ieWave2Index(waveList,487)

 See also: ieFieldHeight2Index()

 Copyright ImagEval Consultants, LLC, 2005.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 14-Jan-2007 10:24:23 by m2html © 2003