Page 1 of 1

Polymer for Sentinel-2

Posted: Fri Mar 08, 2019 6:12 am
by avea
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

Re: Polymer for Sentinel-2

Posted: Fri Mar 08, 2019 7:06 am
by fsteinmetz
Hello,

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
	)
Note that there is some documentation about these options in the python docstrings.

Re: Polymer for Sentinel-2

Posted: Sun Nov 01, 2020 9:39 am
by hisyamahm
What should I use for the eline sline ecol and scol parameters?

Re: Polymer for Sentinel-2

Posted: Mon Nov 02, 2020 5:05 pm
by fsteinmetz
These options are for processing a rectangular part of the image, from line sline to eline and column scol to ecol.

Re: Polymer for Sentinel-2

Posted: Wed Nov 04, 2020 3:03 pm
by hisyamahm
Thank you very much for your help.

Regards,
Hisyam