Page 1 of 1
creating png failed when EXP AC used
Posted: Thu Oct 18, 2018 12:08 pm
by serge
Hi, Quinten!
I was trying to run acolite with EXP atmospheric correction, but some error in script for mapping PNG was happen. However *L2W .nc and *L2R.nc outputs were created.
Acolite Python v.20180925.0. CLI mode. Sentinel 2B scene.
► Show Spoiler
Mapping parameters
Mapping chl_oc2
Traceback (most recent call last):
File "/home/quinten/gitdist/acolite/launch_acolite.py", line 25, in <module>
File "/home/quinten/gitdist/acolite/launch_acolite.py", line 20, in launch_acolite
File "/home/quinten/gitdist/acolite/acolite/acolite/acolite_cli.py", line 71, in acolite_cli
File "/home/quinten/gitdist/acolite/acolite/acolite/acolite_run.py", line 278, in acolite_run
File "/home/quinten/gitdist/acolite/acolite/acolite/acolite_map.py", line 224, in acolite_map
AttributeError: module 'matplotlib' has no attribute 'figure'
[10850] Failed to execute script launch_acolite
Re: creating png failed when EXP AC used
Posted: Thu Oct 18, 2018 2:26 pm
by quinten
Hi Serge
Did you succeed in generating outputs with the default settings?
It seems indeed this matplotlib import may be incorrect on some systems. I'll try and fix this in a future version.
Maybe a temporary workaround is changing map_raster or map_projected to True in your settings file?
Quinten
Re: creating png failed when EXP AC used
Posted: Fri Oct 19, 2018 9:31 am
by serge
Hi, Quinten!
Thanks for your response!
Yes, when I run acolite with the default settings, the png output is generated. When I set the atmospheric correction is dark_spectrum, map_l2w = True, then all png-files also are appeared. But as soon as I changed the aerosol_correction=exponential, there are no png output (both rgb and l2w products) and an error is generated.
Also I noticed the following feature. If you set dark_spectrum, map_l2w = Three, and map_colorbar = False, then PNG output for lw2 products are also not generated.
map_projected=True allowed to get png output. map_raster=True helps too, but it uses different color palittes and doesn't display colorbar.
Thanks a lot!