Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EnMAP
GFZ_Tools_EnMAP_BOX
EnPT
Commits
bec7e607
Commit
bec7e607
authored
Jan 22, 2020
by
Daniel Scheffler
Browse files
Added some output validation after AC.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
bd050950
Pipeline
#5635
failed with stage
in 48 minutes and 25 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
enpt/options/config.py
View file @
bec7e607
...
...
@@ -93,7 +93,7 @@ config_for_testing_dlr = dict(
n_lines_to_append
=
50
,
disable_progress_bars
=
True
,
is_dummy_dataformat
=
False
,
enable_ac
=
Fals
e
,
enable_ac
=
Tru
e
,
enable_ice_retrieval
=
False
,
CPUs
=
32
,
ortho_resampAlg
=
'gauss'
,
...
...
enpt/processors/atmospheric_correction/atmospheric_correction.py
View file @
bec7e607
...
...
@@ -93,6 +93,11 @@ class AtmosphericCorrector(object):
enmap_l2a_vnir
,
enmap_l2a_swir
,
cwv_model
,
cwc_model
,
ice_model
,
toa_model
,
se
,
scem
,
srem
=
\
sicor_ac_enmap
(
enmap_l1b
=
enmap_ImageL1
,
options
=
options
,
logger
=
enmap_ImageL1
.
logger
)
# validate results
for
detectordata
,
detectorname
in
zip
([
enmap_l2a_vnir
,
enmap_l2a_swir
]):
if
np
.
mean
(
detectordata
[:,
:,
0
])
==
0
or
np
.
std
(
detectordata
[:,
:,
0
])
==
0
:
enmap_ImageL1
.
logger
.
warning
(
'The atmospheric correction returned empty %s bands!'
%
detectorname
)
# join results
enmap_ImageL1
.
logger
.
info
(
'Joining results of atmospheric correction.'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment