Yizhou Chen преди 3 години
родител
ревизия
38a779cffd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      tools/utils/raster.py

+ 1 - 1
tools/utils/raster.py

@@ -182,7 +182,7 @@ class Raster:
             xsize = self.width - xoff
             xsize = self.width - xoff
         if yoff + ysize > self.height:
         if yoff + ysize > self.height:
             ysize = self.height - yoff
             ysize = self.height - yoff
-        ima = self._getAarray([int(xoff), int(yoff), int(xsize), int(ysize)])
+        ima = self._getArray([int(xoff), int(yoff), int(xsize), int(ysize)])
         h, w = ima.shape[:2] if len(ima.shape) == 3 else ima.shape
         h, w = ima.shape[:2] if len(ima.shape) == 3 else ima.shape
         if self.bands != 1:
         if self.bands != 1:
             tmp = np.zeros(
             tmp = np.zeros(