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

misc.definition_dicts:

- get_mask_classdefinition(): updated mask legend dict
- updated __version__
Former-commit-id: 7eadb76c
Former-commit-id: cbae8181
parent cef2a152
......@@ -15,7 +15,7 @@ from . import config
from .processing.process_controller import process_controller
__version__ = '20170124.01'
__version__ = '20170124.02'
__author__ = 'Daniel Scheffler'
__all__ = ['algorithms',
'io',
......
......@@ -435,7 +435,7 @@ class GMS_object(object):
# -> read processes of not needed bands need to be avoided
self._mask_clouds = CloudMask(self._mask_clouds[:,:,1],
geotransform = self._mask_clouds.gt,
projection = self._mask_clouds.prj)
projection = self._mask_clouds.prj) # TODO add legend
return self._mask_clouds
elif self._masks and self._masks.bands>1: # FIXME this will not be secure if there are more than 2 bands
......
......@@ -77,10 +77,16 @@ def get_mask_classdefinition(maskname):
return {'No data': 0,
'Data' : 1 }
elif maskname == 'mask_clouds':
return {'Clear' : 10,
'Thick Clouds' : 20,
'Thin Clouds' : 30,
'Snow' : 40 }
#return {'Clear' : 10,
# 'Thick Clouds' : 20,
# 'Thin Clouds' : 30,
# 'Snow' : 40 }
return {'Clear' : 10,
'Water' : 20,
'Shadow' : 30,
'Cirrus' : 40,
'Cloud' : 50,
'Snow' : 60}
else:
raise ValueError('%s is not a supported mask name.')
......
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