OLCI inland waters

Post Reply
xavi_s
Posts: 7
Joined: Tue Feb 23, 2021 11:57 am
company / institution: Universitat de València
Location: Paterna

OLCI inland waters

Post 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
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: OLCI inland waters

Post 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
liuhuisa2
Posts: 1
Joined: Mon Oct 19, 2020 3:02 am
company / institution: Innovation Academy for Precision Measurement Science and Technology,CAS
Location: Hubei,Wuhan

Re: OLCI inland waters

Post 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 !
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: OLCI inland waters

Post 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
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: OLCI inland waters

Post 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
Post Reply