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

First running version of Spectral Homogenization via Linear Regression.

parent d1e17d47
Pipeline #1704 failed with stage
in 11 minutes and 59 seconds
......@@ -182,3 +182,17 @@ def is_dataset_provided_as_fullScene(GMS_identifier):
'S2B20': False,
'S2B60': False, }
return dict_fullScene_or_tiles[sensorcode]
datasetid_dict = {
8: ('Terra', 'ASTER'), # ASTER L1B
104: ('Landsat-8', 'OLI_TIRS'), # pre-collection-ID
108: ('Landsat-5', 'TM'), # pre-collection-ID
112: ('Landsat-7', 'ETM+'), # pre-collection-ID SLC-off
113: ('Landsat-7', 'ETM+'), # pre-collection-ID SLC-on
189: ('Terra', 'ASTER'), # ASTER L1T
249: ('Sentinel-2A', 'MSI'), # actually only Sentinel-2
250: ('Landsat-8', 'OLI_TIRS'),
251: ('Landsat-7', 'ETM+'),
252: ('Landsat-5', 'TM'), # also includes Landsat-4
}
......@@ -207,6 +207,7 @@ class JobConfig(object):
self.path_SNR_models = self.absP(self.DB_config_table['path_SNR_models'])
self.path_custom_sicor_options = gp('path_custom_sicor_options', json_paths['path_custom_sicor_options'])
self.path_dem_proc_srtm_90m = self.absP(self.DB_config_table['path_dem_proc_srtm_90m'])
self.path_spechomo_classif = self.joinP(path_gmslib, 'database', 'spechomo_classifier')
if not self.is_test:
# normal mode
......@@ -349,6 +350,7 @@ class JobConfig(object):
json_processors['L2B']['run_processor'],
json_processors['L2B']['write_output'],
json_processors['L2B']['delete_output']])
self.spechomo_method = gp('spechomo_method', json_processors['L2B']['spechomo_method'])
# L2C
self.exec_L2CP = gp('exec_L2CP', [
......
......@@ -34,7 +34,8 @@
"path_solar_irr": "",
"path_cloud_classif": "",
"path_custom_sicor_options": "",
"path_ECMWF_db": ""
"path_ECMWF_db": "",
"path_spechomo_classif": ""
},
"processors": {
......@@ -111,7 +112,9 @@
"L2B": { /*Level 2B processing: spectral homogenization*/
"run_processor": true,
"write_output": true,
"delete_output": false
"delete_output": false,
"spechomo_method": "LR" /*Method used for spectral homogenization.
/*LI: Linear interpolation; LR: Linear regression; RR: Ridge regression*/
},
"L2C": {
......
......@@ -37,6 +37,7 @@ gms_schema_input = dict(
path_cloud_classif=dict(type='string', required=False),
path_custom_sicor_options=dict(type='string', required=False, nullable=True),
path_ECMWF_db=dict(type='string', required=False),
path_spechomo_classif=dict(type='string', required=False),
)),
processors=dict(
type='dict', required=False,
......@@ -111,6 +112,7 @@ gms_schema_input = dict(
run_processor=dict(type='boolean', required=False),
write_output=dict(type='boolean', required=False),
delete_output=dict(type='boolean', required=False),
spechomo_method=dict(type='string', required=False, allowed=['LI', 'LR', 'RR'])
)),
L2C=dict(type='dict', required=False, schema=dict(
run_processor=dict(type='boolean', required=False),
......
Supports Markdown
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