CS-SI / eodag

Earth Observation Data Access Gateway
https://eodag.readthedocs.io
Apache License 2.0
324 stars 44 forks source link

tileIdentifier argument does not work for onda #1134

Closed JorisCod closed 6 months ago

JorisCod commented 6 months ago

Describe the bug When using onda as a provider, adding tileIdentifier as an argument to dag.search_all makes the result empty. In the documentation it is specified that it should work for onda: https://eodag.readthedocs.io/en/stable/notebooks/tutos/tuto_search_location_tile.html#Built-in-search-by-tile

Code To Reproduce

from retry import retry

from eodag import EODataAccessGateway
from eodag.utils.exceptions import RequestError

provider="onda"
tile = "36TXT"
year=2020

dag = EODataAccessGateway()

@retry(tries=3, delay=2, backoff=2, exceptions=RequestError)
def search_tile(tile:str, year: int):
    search_results = dag.search_all(
        productType="S2_MSI_L2A",
        start=f"{year}-01-01",
        end=f"{year+1}-01-01",
        provider=provider,
        tileIdentifier=tile,
        cloudCover=90
    )
    print(search_results)

df = search_tile(tile, year)

Output []

whereas leaving out tileIdentifier and reducing the end date does return products.

Environment:

Additional context This works for other providers, e.g. cop_dataspace and planetary_computer.

JorisCod commented 6 months ago

This seems to be due to the limited catalog of Onda rather than a bug with eodag.

Checked with https://catalogue.onda-dias.eu/catalogue/