@@ -175,7 +175,7 @@ def _process_continuum(spectra, bands, remove_continuum, segmented, out):
175175 if not isinstance (spectra , np .ndarray ):
176176 raise TypeError ('Expected spectra to be a numpy.ndarray.' )
177177 if not isinstance (bands , np .ndarray ):
178- raise TypeError ('Expected spectra to be a numpy.ndarray.' )
178+ raise TypeError ('Expected bands to be a numpy.ndarray.' )
179179 if out is not None and not isinstance (out , np .ndarray ):
180180 raise TypeError ('Expected out to be a numpy.ndarray or None.' )
181181 if len (spectra .shape ) not in (1 , 2 , 3 ):
@@ -242,6 +242,8 @@ def continuum_points(spectrum, bands, mode='convex'):
242242
243243 1d :class:`numpy.ndarray`, holding band values of spectra.
244244 Length of `bands` should be the same as `spectrum`.
245+ Note that bands should be sorted in ascending order (which is often
246+ not the case with AVIRIS), otherwise unexpected results could occure.
245247
246248 `mode` (string, default 'convex'):
247249
@@ -287,6 +289,8 @@ def spectral_continuum(spectra, bands, mode='convex', out=None):
287289
288290 1d :class:`numpy.ndarray`, holding band values of spectra.
289291 Length of `bands` should be the same as last dimension of `spectra`.
292+ Note that bands should be sorted in ascending order (which is often
293+ not the case with AVIRIS), otherwise unexpected results could occure.
290294
291295 `mode` (string, default 'convex'):
292296
@@ -326,6 +330,8 @@ def remove_continuum(spectra, bands, mode='convex', out=None):
326330
327331 1d :class:`numpy.ndarray`, holding band values of spectra.
328332 Length of `bands` should be the same as last dimension of `spectra`.
333+ Note that bands should be sorted in ascending order (which is often
334+ not the case with AVIRIS), otherwise unexpected results could occure.
329335
330336 `mode` (string, default 'convex'):
331337
0 commit comments