diff --git a/enmapbox/apps/ensomap/hys/data.py b/enmapbox/apps/ensomap/hys/data.py index b1ff4e57..cc7b4436 100644 --- a/enmapbox/apps/ensomap/hys/data.py +++ b/enmapbox/apps/ensomap/hys/data.py @@ -415,11 +415,11 @@ def select_bands(self, bands): # get bbl bbl = self.meta.get("bbl") - if bbl is not None: bbl = np.asarray(bbl, dtype=np.int) - else: bbl = np.ones(self.bands, dtype=np.int) + if bbl is not None: bbl = np.asarray(bbl, dtype=np.int_) + else: bbl = np.ones(self.bands, dtype=np.int_) # get band indices - bind = np.arange(self.bands, dtype=np.int) + bind = np.arange(self.bands, dtype=np.int_) # remove bad band ind = np.where(bbl == 1)