Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERA5 download fetches JSON instead of data #1355

Open
amarandon opened this issue Oct 17, 2024 · 0 comments · May be fixed by #1358
Open

ERA5 download fetches JSON instead of data #1355

amarandon opened this issue Oct 17, 2024 · 0 comments · May be fixed by #1358
Assignees
Labels
bug Something isn't working

Comments

@amarandon
Copy link
Collaborator

amarandon commented Oct 17, 2024

Version: '3.0.1.dev7+gfdd3dce8'

Given this code:

from eodag import EODataAccessGateway, setup_logging
setup_logging(3)
dag = EODataAccessGateway()
search_result = dag.search(
    start="2019-01-01T00:00:00Z", end="2024-01-01T00:00:00Z",
    provider="dedl", productType="ERA5_SL"
)
product = search_result[0]
product.download()

We get data like this:

/tmp/ERA5_SL_20190101_20231231_b8d9e155f618bc52665c33913b95dcdb32e52279
└── ERA5_SL_20190101_20231231_b8d9e155f618bc52665c33913b95dcdb32e52279

Which is just a JSON file containing something like this:

{"description":"Product is not available yet, please try again using given updated location",
"status":"accepted",
"location":"https://hda.data.destination-earth.eu/stac/collections/EO.ECMWF.DAT.REANALYSIS_ERA5_SINGLE_LEVELS/items/ERA5_SL_20190101_20231231_b8d9e155f618bc52665c33913b95dcdb32e52279/download?_dc_qs=%257B%2522data_format%2522%253A%2B%2522grib%2522%252C%2B%2522day%2522%253A%2B%255B%252207%2522%252C%2B%252228%2522%252C%2B%252215%2522%252C%2B%252208%2522%252C%2B%252225%2522%252C%2B%252231%2522%252C%2B%252216%2522%252[...]2022%2522%252C%2B%25222020%2522%252C%2B%25222023%2522%252C%2B%25222021%2522%252C%2B%25222019%2522%255D%257D&processID=reanalysis-era5-single-levels&type=process&jobID=c639c828-c4bd-47c8-9833-c327a23e80d4&status=accepted&created=2024-10-17T16%3A10%3A15.642477&updated=2024-10-17T16%3A10%3A15.642477&links=%7B%27href%27%3A+%27https%3A%2F%2Fcds.climate.copernicus.eu%2Fapi%2Fretrieve%2Fv1%2Fprocesses%2Freanalysis-era5-single-levels%2Fexecution%27%2C+%27rel%27%3A+%27self%27%7D&links=%7B%27href%27%3A+%27https%3A%2F%2Fcds.climate.copernicus.eu%2Fapi%2Fretrieve%2Fv1%2Fjobs%2Fc639c828-c4bd-47c8-9833-c327a23e80d4%27%2C+%27rel%27%3A+%27monitor%27%2C+%27type%27%3A+%27application%2Fjson%27%2C+%27title%27%3A+%27job+status+info%27%7D&metadata=datasetMetadata&orderId=c639c828-c4bd-47c8-9833-c327a23e80d4&provider=copernicus_climate_data_store"}
@amarandon amarandon added the bug Something isn't working label Oct 17, 2024
@amarandon amarandon self-assigned this Oct 18, 2024
amarandon pushed a commit that referenced this issue Oct 18, 2024
- add orderable metadata mappings
- remove two obsolete products: SATELLITE_SEA_LEVEL_BLACK_SEA,
  SATELLITE_SEA_LEVEL_MEDITERRANEAN
- fix productType for GRIDDED_GLACIERS_MASS_CHANGE

Ref #1355
@amarandon amarandon linked a pull request Oct 18, 2024 that will close this issue
@amarandon amarandon linked a pull request Oct 18, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant