Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
EnPT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
EnMAP
GFZ_Tools_EnMAP_BOX
EnPT
Commits
f587c5e4
Commit
f587c5e4
authored
Dec 13, 2022
by
Daniel Scheffler
Browse files
Options
Downloads
Patches
Plain Diff
Add new config parameter 'polymer_additional_results'.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
b17f7807
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!58
Enhance ACwater output
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
enpt/options/config.py
+5
-1
5 additions, 1 deletion
enpt/options/config.py
enpt/options/options_default.json
+1
-0
1 addition, 0 deletions
enpt/options/options_default.json
enpt/options/options_schema.py
+2
-0
2 additions, 0 deletions
enpt/options/options_schema.py
with
8 additions
and
1 deletion
enpt/options/config.py
+
5
−
1
View file @
f587c5e4
...
...
@@ -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
'
)
...
...
This diff is collapsed.
Click to expand it.
enpt/options/options_default.json
+
1
−
0
View file @
f587c5e4
...
...
@@ -61,6 +61,7 @@
(land
surfaces
are
not
included
in
the
L
2
A
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:
...
...
This diff is collapsed.
Click to expand it.
enpt/options/options_schema.py
+
2
−
0
View file @
f587c5e4
...
...
@@ -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
'
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment