Commit 13454d41 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed DeprecationWarning.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 94ea2191
Pipeline #12591 failed with stage
in 7 minutes and 39 seconds
......@@ -995,7 +995,7 @@ class AtmCorr(object):
##################################################################################
oF_refl, oZ_refl, oS_refl = get_outFillZeroSaturated(inObj.arr.dtype)
surf_refl = np.dstack((self.results.data_ac[bandN] for bandN in ac_bandNs))
surf_refl = np.dstack([self.results.data_ac[bandN] for bandN in ac_bandNs])
surf_refl *= CFG.scale_factor_BOARef # scale using scale factor (output is float16)
# set AC nodata values to GMS outFill
......@@ -1044,7 +1044,7 @@ class AtmCorr(object):
out_nodata_val = get_outFillZeroSaturated(out_dtype)[0]
# generate raw ac_errors array
ac_errors = np.dstack((self.results.data_errors[bandN] for bandN in ac_bandNs))
ac_errors = np.dstack([self.results.data_errors[bandN] for bandN in ac_bandNs])
# apply scale factor from config to data pixels and overwrite nodata area with nodata value
ac_errors *= CFG.ac_scale_factor_errors # scale using scale factor (output is float16)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment