Dear Steinmetz,
Thank you for Polymer.
I would like to process S2 images with Polymer using 10 m resolution. However, it takes forever because of the resolution (but I really need to use 10 m resolution). Is it possible to fasten the process defining the needed area of the image (subset, location etc)) or using some other approach (masking etc.).
Thank you
Polymer for Sentinel-2
- fsteinmetz
- Site Admin
- Posts: 306
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: Polymer for Sentinel-2
Hello,
Yes there are three options that you can use to make it faster :
Note that there is some documentation about these options in the python docstrings.
Yes there are three options that you can use to make it faster :
Code: Select all
from polymer.gsw import GSW
run_atm_corr(
Level1_MSI(name, resolution='10',
sline=1000, eline=2000, scol=1000, ecol=2000, # (1) process only a part of the image (coordinates within the 10980x10980 image because we are at 10m resolution)
landmask=GSW() # (2) apply a land mask, otherwise all land is processed (incorrectly)
),
Level2_nc(...),
multiprocessing=-1, # (3) use multiple cores of your processor in parallel
)
-
- Posts: 3
- Joined: Sat Sep 19, 2020 5:02 pm
- company / institution: Institut Teknologi Bandung
- Location: Indonesia
Re: Polymer for Sentinel-2
What should I use for the eline sline ecol and scol parameters?
- fsteinmetz
- Site Admin
- Posts: 306
- Joined: Fri Sep 07, 2018 1:34 pm
- company / institution: Hygeos
- Location: Lille, France
- Contact:
Re: Polymer for Sentinel-2
These options are for processing a rectangular part of the image, from line
sline
to eline
and column scol
to ecol
.-
- Posts: 3
- Joined: Sat Sep 19, 2020 5:02 pm
- company / institution: Institut Teknologi Bandung
- Location: Indonesia
Re: Polymer for Sentinel-2
Thank you very much for your help.
Regards,
Hisyam
Regards,
Hisyam