KeyError 0 for COPERNICUS when running near/around the equator

Issue #14 resolved
bert.coerver created an issue

Given the following bounding-box

bb = [37.4111829480000324, 0.1078426700000250, 37.4556988240000805, 0.1320979440000656] # [xmin, ymin, xmax, ymax] #Wad_Helal

COPERNICUS.GLO30 gives the following error:

Traceback (most recent call last):
  File "/Users/hmcoerver/Library/Mobile Documents/com~apple~CloudDocs/GitHub/pywapor/pywapor/collect/downloader.py", line 129, in collect_sources
    x = dler(**args)
        ^^^^^^^^^^^^
  File "/Users/hmcoerver/Library/Mobile Documents/com~apple~CloudDocs/GitHub/pywapor/pywapor/collect/product/COPERNICUS.py", line 198, in download
    dl_tiles = tiles_intersect(latlim, lonlim, product_name)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/hmcoerver/Library/Mobile Documents/com~apple~CloudDocs/GitHub/pywapor/pywapor/collect/product/COPERNICUS.py", line 42, in tiles_intersect
    ns_sign = {-1: "S", 1: "N"}[np.sign(tile[1])]
              ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 0

Comments (3)

  1. Log in to comment