How to get 10m resolution of sentinel-2?

Post Reply
tianshang123
Posts: 6
Joined: Fri Dec 04, 2020 2:43 am
company / institution: naikai_university
Location: tianjin

How to get 10m resolution of sentinel-2?

Post by tianshang123 »

Hello fsteinmetz!

How to get 10m resolution of sentinel-2?

Regards,

tian
User avatar
fsteinmetz
Site Admin
Posts: 306
Joined: Fri Sep 07, 2018 1:34 pm
company / institution: Hygeos
Location: Lille, France
Contact:

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

Post 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
tianshang123
Posts: 6
Joined: Fri Dec 04, 2020 2:43 am
company / institution: naikai_university
Location: tianjin

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

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

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

Post by fsteinmetz »

Hello,
There may have been a temporary network issue. Could you have another try ?
Cheers,
François
tianshang123
Posts: 6
Joined: Fri Dec 04, 2020 2:43 am
company / institution: naikai_university
Location: tianjin

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

Post 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)
You do not have the required permissions to view the files attached to this post.
L_2022
Posts: 1
Joined: Wed Mar 01, 2023 6:23 am
company / institution: Xi 'an University of Science and Technology
Location: XIANSHI

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

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