Skip to content
Snippets Groups Projects
Commit f587c5e4 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Add new config parameter 'polymer_additional_results'.

parent b17f7807
Branches
Tags
1 merge request!58Enhance ACwater output
......@@ -102,7 +102,7 @@ config_for_testing_water = dict(
scale_factor_boa_ref=10000,
scale_factor_toa_ref=10000,
enable_ac=True,
mode_ac='combined',
polymer_additional_results=True,
polymer_root=path_polymer,
threads=-1,
blocksize=100,
......@@ -285,6 +285,9 @@ class EnPTConfig(object):
- 'combined': SICOR is applied to land and POLYMER is applied to water surfaces;
NOTE that this may result in edge effects, e.g., at coastlines
:key polymer_additional_results:
Enable the generation of additional results when running ACwater/POLYMER (default: False)
:key auto_download_ecmwf:
Automatically download ECMWF AUX data when running Polymer atmospheric correction for water surfaces
......@@ -396,6 +399,7 @@ class EnPTConfig(object):
self.polymer_root = gp('polymer_root')
self.enable_ac = gp('enable_ac')
self.mode_ac = gp('mode_ac')
self.polymer_additional_results = gp('polymer_additional_results')
self.auto_download_ecmwf = gp('auto_download_ecmwf')
self.scale_factor_boa_ref = gp('scale_factor_boa_ref')
self.threads = gp('threads')
......
......@@ -61,6 +61,7 @@
(land surfaces are not included in the L2A product)
'combined': SICOR is applied to land and POLYMER is applied to water surfaces;
NOTE that this may result in edge effects, e.g., at coastlines*/
"polymer_additional_results": false, /*enable the generation of additional results when running ACwater/POLYMER (default: False)*/
"auto_download_ecmwf": false, /*automatically download ECMWF AUX data when running Polymer AC for water surfaces*/
"scale_factor_boa_ref": 10000, /*scale factor to be applied to BOA reflectance result*/
"threads": -1, /*number of threads for multiprocessing:
......
......@@ -85,6 +85,7 @@ enpt_schema_input = dict(
polymer_root=dict(type='string', required=False),
enable_ac=dict(type='boolean', required=False),
mode_ac=dict(type='string', required=False, allowed=['land', 'water', 'combined']),
polymer_additional_results=dict(type='boolean', required=False),
auto_download_ecmwf=dict(type='boolean', required=False),
scale_factor_boa_ref=dict(type='integer', required=False, min=1),
threads=dict(type='integer', required=False),
......@@ -159,6 +160,7 @@ parameter_mapping = dict(
polymer_root=('processors', 'atmospheric_correction', 'polymer_root'),
enable_ac=('processors', 'atmospheric_correction', 'enable_ac'),
mode_ac=('processors', 'atmospheric_correction', 'mode_ac'),
polymer_additional_results=('processors', 'atmospheric_correction', 'polymer_additional_results'),
auto_download_ecmwf=('processors', 'atmospheric_correction', 'auto_download_ecmwf'),
scale_factor_boa_ref=('processors', 'atmospheric_correction', 'scale_factor_boa_ref'),
threads=('processors', 'atmospheric_correction', 'threads'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment