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

Added some output validation after AC.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent bd050950
Pipeline #5635 failed with stage
in 48 minutes and 25 seconds
......@@ -93,7 +93,7 @@ config_for_testing_dlr = dict(
n_lines_to_append=50,
disable_progress_bars=True,
is_dummy_dataformat=False,
enable_ac=False,
enable_ac=True,
enable_ice_retrieval=False,
CPUs=32,
ortho_resampAlg='gauss',
......
......@@ -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.')
......
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