Commit 5338816e authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

added some resources for atmospheric correction

- added ac_options for Sentinel-2
- added cloud classier for Sentinel-2 (not included in repository)
- added SNR model for Sentinel-2
config:
- reactivated exception handler
- updated __version__
Former-commit-id: 5d596a79
Former-commit-id: 85650583
parent f48afc34
......@@ -2,6 +2,7 @@
.idea/
BAK/
OLD/
database/cloud_classifier/
database/sampledata/
database/metadata/
database/processed_data/
......
......@@ -1775,7 +1775,7 @@ def get_LayerBandsAssignment(GMS_identifier, nBands=None, ignore_usecase=False,
pass # return normal LBA from above
else:
# TODO check if dataset belongs to a known datasetid and use LBA of this dataset
# return a LBA matching the number of bands after spectral hoomgenization
# return a LBA matching the number of bands after spectral homogenization
LayerBandsAssignment = [str(i+1) for i in range(len(CFG.job.target_CWL))]
......
......@@ -935,7 +935,6 @@ class GMS_object(object):
mask_clouds = [msk for msk in geoArrs_same_extent if msk is not None]
if len(mask_clouds)>1:
raise ValueError('Expected mask clouds in only one subsystem. Got %s.' %len(mask_clouds))
print('clouds: ', mask_clouds)
self.mask_clouds = mask_clouds[0] if mask_clouds else None
elif attrname == 'mask_clouds_confidence':
# possibly only present in ONE subsystem (set by atm. Corr.)
......@@ -954,6 +953,7 @@ class GMS_object(object):
self.meta_odict.update({
'samples':self.arr.cols, 'lines':self.arr.rows, 'bands':self.arr.bands,
'map info':geotransform2mapinfo(self.arr.gt, self.arr.prj), 'coordinate system string':self.arr.prj,})
self.shape_fullArr = self.arr.shape
return copy.copy(self)
......
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