


Return a logical (0/1) vector indicating the positions of wave that the values in waveVal.
idx = ieFindWaveIndex(wave,waveVal,[perfect=1])
This routine is based on the Matlab function ismember(), with a small
amount of error checking added.
We want to address only some wavebands in a radiance data set (e.g., photons)
we find the relevant indices in wave by this call.
If we require a perfect match, then perfect = 1 (default). If we
accept a closest match, say we want the closest value, then perfect =
0. If the not perfect condition is run, the same wavelength may match
two waveVal entries
Example:
wave = sceneGet(scene,'wave');
waveVal = [500, 600];
idx = ieFindWaveIndex(wave,waveVal);
foo(:,idx) = val
Copyright ImagEval Consultants, LLC, 2005.