Page 1 of 1

OLCI inland waters

Posted: Mon Jul 26, 2021 2:22 pm
by xavi_s
Hi,

I corrected some S3 OLCI images with Polymer, but the inland waters not appear in the corrected image.

It is possible? How can I get the images with inland waters?

Thank you

Re: OLCI inland waters

Posted: Mon Aug 23, 2021 9:33 am
by fsteinmetz
Hello,
This is due to the fact that inland waters are flagged in OLCI level1.
You can pass options to the Level1_OLCI object, as follows :
- Level1_OLCI(..., landmask=None) # disactivate land mask entirely
- Level1_OLCI(..., landmask=GSW(agg=8)) where GSW is imported from gsw.py. This will use the Global Surface Water water mask, downloaded on the fly.
I hope this helps,
Cheers,
François

Re: OLCI inland waters

Posted: Thu Oct 07, 2021 9:27 am
by liuhuisa2
hello
I am interested in inland waters, so I used gsw to process OLCI
It seems the gsw data wasn't downloaded

from polymer.gsw import GSW
run_atm_corr(
Level1_OLCI(..., landmask=GSW(agg=8)),
Level2_NETCDF()
)

Then I get the error:
raise IOError('Data directory for GSW data (global surface water) does not exist: mkdir -p {}'.format(directory))
OSError: Data directory for GSW data (global surface water) does not exist: mkdir -p data_landmask_gsw

how to solve this problem ?

Thank you !

Re: OLCI inland waters

Posted: Wed Oct 20, 2021 2:45 pm
by fsteinmetz
Hello,
You have to create the directory as mentioned in the error message : mkdir -p data_landmask_gsw
After that, relaunch the code and the GSW data should be downloaded automatically.
Cheers,
François

Re: OLCI inland waters

Posted: Mon Dec 20, 2021 12:51 pm
by fsteinmetz
Hello,

Please note that the latest version of Polymer allows processing inland waters by default for OLCI, and thus does not require an alternative land mask.
Cheers,
François