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
44ab000e
Commit
44ab000e
authored
Jan 22, 2020
by
Daniel Scheffler
Browse files
Revised output validation after AC.
Signed-off-by:
Daniel Scheffler
<
danschef@gfz-potsdam.de
>
parent
bec7e607
Pipeline
#5636
passed with stage
in 51 minutes and 58 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
enpt/processors/atmospheric_correction/atmospheric_correction.py
View file @
44ab000e
...
...
@@ -94,8 +94,9 @@ class AtmosphericCorrector(object):
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
:
for
detectordata
,
detectorname
in
zip
([
enmap_l2a_vnir
,
enmap_l2a_swir
],
[
'VNIR'
,
'SWIR'
]):
mean0
,
std0
=
np
.
nanmean
(
detectordata
[:,
:,
0
]),
np
.
nanstd
(
detectordata
[:,
:,
0
])
if
np
.
isnan
(
mean0
)
or
mean0
==
0
or
std0
==
0
:
enmap_ImageL1
.
logger
.
warning
(
'The atmospheric correction returned empty %s bands!'
%
detectorname
)
# join results
...
...
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