lanha / DSen2

Super-Resolution of Sentinel-2 Images: Learning a Globally Applicable Deep Neural Network
GNU General Public License v3.0
235 stars 70 forks source link

Code from up42 / DSen2 not working for 2A tiles #30

Closed purijs closed 3 years ago

purijs commented 4 years ago

I;m trying the following line to test on S2A tiles:

python .\s2_tiles_supres.py --clip_to_aoi 100,100,5000,5000 D:\work\explore\convert-sentinel2-to-cogs\extract\S2A_MSIL2A_20200505T181921_N0214_R127_T11SPA_20200505T222608.SAFE\MTD_MSIL2A.xml

Error

Traceback (most recent call last):
  File ".\s2_tiles_supres.py", line 212, in <module>
    Superresolution(
  File ".\s2_tiles_supres.py", line 178, in process
    data10, data20, data60, coord, pr_10m = self.start()
  File ".\s2_tiles_supres.py", line 73, in start
    data_list = self.get_data()
  File "..\utils\data_utils.py", line 65, in get_data
    LOGGER.info(f"Data path is {data_path}")
UnboundLocalError: local variable 'data_path' referenced before assignment
lanha commented 3 years ago

This repo does not support level 2A unfortunately.