Page 1 of 1

How to get 10m resolution of sentinel-2?

Posted: Thu Apr 08, 2021 5:54 am
by tianshang123
Hello fsteinmetz!

How to get 10m resolution of sentinel-2?

Regards,

tian

Re: How to get 10m resolution of sentinel-2?

Posted: Fri Apr 09, 2021 3:07 pm
by fsteinmetz
Hello Tian,

To process S2 MSI at 10m, you can pass the argument resolution='10' to Level1_MSI :
run_atm_corr(Level1_MSI(..., resolution='10'), ...)

Cheers,
François

Re: How to get 10m resolution of sentinel-2?

Posted: Sat Apr 10, 2021 2:29 am
by tianshang123
thanks,When I try to run it,I received such mistakes. What should I do? :ugeek: :ugeek:

Initialize MSI projection EPSG:32650
/home/uppp/anaconda3/lib/python3.8/site-packages/pyproj/crs/crs.py:280: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable ... -in-proj-6
projstring = _prepare_from_string(projparams)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... MI_24h.hdf ...
failed: Connection refused.
failed: Network is unreachable.
failure (1024)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... MI_24h.hdf ...
failed: Connection refused.
failed: Network is unreachable.
failure (1024)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... OAST.OZONE ...
failed: Connection refused.
failed: Network is unreachable.
failure (1024)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... TOVS.OZONE ...
failed: Connection refused.
failed: Network is unreachable.
failure (1024)
Traceback (most recent call last):
File "11.py", line 16, in <module>
Level1_MSI('/home/uppp/桌面/S2A_MSIL1C_20181027T025811_N0206_R032_T50SNJ_20181027T060545.SAFE/GRANULE/L1C_T50SNJ_A017475_20181027T030402/')
File "/home/uppp/polymer-v4.13/polymer/level1_msi.py", line 151, in __init__
self.init_ancillary()
File "/home/uppp/polymer-v4.13/polymer/level1_msi.py", line 180, in init_ancillary
self.ozone = self.ancillary.get('ozone', self.date)
File "/home/uppp/polymer-v4.13/polymer/ancillary.py", line 242, in get
res = self.find_ozone(date)
File "/home/uppp/polymer-v4.13/polymer/ancillary.py", line 371, in find_ozone
raise Exception('Could not find any valid ozone file for {}'.format(date))
Exception: Could not find any valid ozone file for 2018-10-27 03:04:02.409000

Re: How to get 10m resolution of sentinel-2?

Posted: Mon Apr 12, 2021 2:26 pm
by fsteinmetz
Hello,
There may have been a temporary network issue. Could you have another try ?
Cheers,
François

Re: How to get 10m resolution of sentinel-2?

Posted: Thu Apr 15, 2021 10:03 am
by tianshang123
I run it again, successfully. But there is another problem. It stay in this interface all the time(about 20mins).


rocessing block: size (198, 10980), offset (8514, 0)
Processing block: size (198, 10980), offset (8712, 0)
Processing block: size (198, 10980), offset (8910, 0)
Processing block: size (198, 10980), offset (9108, 0)
Processing block: size (198, 10980), offset (9306, 0)
Processing block: size (198, 10980), offset (9504, 0)
Processing block: size (198, 10980), offset (9702, 0)
Processing block: size (198, 10980), offset (9900, 0)
Processing block: size (198, 10980), offset (10098, 0)
Processing block: size (198, 10980), offset (10296, 0)
Processing block: size (198, 10980), offset (10494, 0)
Processing block: size (198, 10980), offset (10692, 0)
Processing block: size (90, 10980), offset (10890, 0)

Re: How to get 10m resolution of sentinel-2?

Posted: Mon Mar 20, 2023 12:48 pm
by L_2022
Hello, I would like to ask how to solve this problem. I have tried to change several networks, but they all meet the same problem?

Starting processing at 2023-03-20 20:41:35.331307
Initialize MSI projection EPSG:32646
/home/li/miniconda3/envs/polymer/lib/python3.9/site-packages/pyproj/crs/crs.py:280: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable ... -in-proj-6
projstring = _prepare_from_string(projparams)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... MI_24h.hdf ...
failed: Resource temporarily unavailable.
failed: Network is unreachable.
failure (1024)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... MI_24h.hdf ...
failed: Resource temporarily unavailable.
failed: Network is unreachable.
failure (1024)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... OAST.OZONE ...
failed: Resource temporarily unavailable.
failed: Network is unreachable.
failure (1024)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... TOVS.OZONE ...
failed: Resource temporarily unavailable.
failed: Network is unreachable.
failure (1024)
Traceback (most recent call last):
File "/mnt/d/software/polymer-v4.13/polymer_cli.py", line 37, in <module>
run_atm_corr(Level1(args.input_file),
File "/mnt/d/software/polymer-v4.13/polymer/main.py", line 496, in run_atm_corr
with level2 as l2, level1 as l1:
File "/mnt/d/software/polymer-v4.13/polymer/level1.py", line 106, in __enter__
self.level1 = L1(self.filename, **self.kwargs)
File "/mnt/d/software/polymer-v4.13/polymer/level1_msi.py", line 151, in __init__
self.init_ancillary()
File "/mnt/d/software/polymer-v4.13/polymer/level1_msi.py", line 180, in init_ancillary
self.ozone = self.ancillary.get('ozone', self.date)
File "/mnt/d/software/polymer-v4.13/polymer/ancillary.py", line 242, in get
res = self.find_ozone(date)
File "/mnt/d/software/polymer-v4.13/polymer/ancillary.py", line 371, in find_ozone
raise Exception('Could not find any valid ozone file for {}'.format(date))
Exception: Could not find any valid ozone file for 2022-07-05 04:38:21.183638