Description
The FileBand and ListBand classes now issue a fatal error during setup if the user-defined band has an empty wavelength range, or if the wavelengths are not listed in increasing or decreasing order.
Motivation
Before this update, these classes accepted such invalid definitions but would then misbehave (such as generating NaN values).
Description The
FileBand
andListBand
classes now issue a fatal error during setup if the user-defined band has an empty wavelength range, or if the wavelengths are not listed in increasing or decreasing order.Motivation Before this update, these classes accepted such invalid definitions but would then misbehave (such as generating NaN values).
Context Reported by @BertVdM.