bugfix in geozero and warning fix in imageMath (#318)

* imageMath: fix numpy deprecation warn

* geozero: bugfix for missing lookSide
LT1AB
Zhang Yunjun 2021-07-24 10:31:39 -07:00 committed by GitHub
parent e80cfb0f29
commit 44deb3991c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -415,7 +415,7 @@ def main(args, files):
outBands = iMath['outBands'] outBands = iMath['outBands']
####Array representing columns ####Array representing columns
dataDict['COL'] = np.arange(iMath['width'], dtype=np.float) dataDict['COL'] = np.arange(iMath['width'], dtype=np.float32)
#####Replace ^ by ** #####Replace ^ by **
for lineno in range(int(iMath['length'])): for lineno in range(int(iMath['length'])):

View File

@ -233,7 +233,8 @@ class Geocode(Component):
self.demCropAccessor, self.demCropAccessor,
self.geoAccessor,inband, self.geoAccessor,inband,
outband,int(complexFlag), outband,int(complexFlag),
int(self.interp_methods[self.method])) int(self.interp_methods[self.method]),
int(self.lookSide))
#####Supress cropped DEM output for other bands #####Supress cropped DEM output for other bands
for kk in range(1,nBands): for kk in range(1,nBands):