Does Polymer have an internal land mask?

Post Reply
msavci
Posts: 2
Joined: Tue Jun 14, 2022 1:01 pm
company / institution: Istanbul Technical University Informatics Institute
Location: Istanbul

Does Polymer have an internal land mask?

Post by msavci »

Hello,

I am checking bitmask, and although I checked different polymer-corrected NC files, my code doesn't show me any land pixels using land mask flag. I got cloud base pixels, clean water pixels, and case2 pixels, but no land pixels. Should I integrate the scene classification (SCL) masks from L2A Sentinel-2 products?

I appreciate any help you can provide.
User avatar
fsteinmetz
Site Admin
Posts: 319
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

Re: Does Polymer have an internal land mask?

Post by fsteinmetz »

Hello,

Yes, Polymer provides a landmask through the Global Surface Water dataset.
You can use it by providing a GSW instance to Level1_MSI through the 'landmask' argument :

from polymer.gsw import GSW
run_atm_corr(Level1_MSI(..., landmask=GSW(directory='/path/to/gsw_data/')), ...)

Make sure that the pointed directory exists and is empty, and the landmask data will be downloaded automatically.

Kind regards,
François
Post Reply