Commit ab461b2a authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed missing cloud mask above L1C.

Former-commit-id: 1a1087f2
Former-commit-id: cfe0b3f4
parent ef6fe83c
......@@ -746,9 +746,10 @@ class AtmCorr(object):
self.options['cld_mask']['nodata_value_mask'] = cm_geoarray.nodata
# append cloud mask to input object with the same spatial resolution if there was no mask before
for i, inObj in enumerate(self.inObjs):
for inObj in self.inObjs:
if inObj.arr.xgsd == cm_geoarray.xgsd:
self.inObjs[i].mask_clouds = cm_geoarray
inObj.mask_clouds = cm_geoarray
inObj.build_combined_masks_array()
break # appending it to one inObj is enough
return S2Mask(mask_array = cm_array,
......
......@@ -257,6 +257,11 @@ class GMS_object(Dataset):
@property
def masks(self):
#if self.mask_nodata is not None and self.mask_clouds is not None and \
# self._masks is not None and self._masks.bands==1:
# self.build_combined_masks_array()
return self._masks
......
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