-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Typically, the cdsapi client/backend throws an error for requests in the future.
However, using a specific vegetation cover variable in a query for the dataset "reanalysis-era5-land" (at least that one, maybe others) can lead to a file that will be downloaded and basically contains netcdfs with all 0 values.
MWE:
import cdsapi
client =cdsapi.Client()
dataset = "reanalysis-era5-land"
query = {"dataset": dataset ,
'variable': [ 'high_vegetation_cover', 'low_vegetation_cover', 'type_of_high_vegetation'],
'year': "2038",
'month': '01',
'day': '04',
'time': ['01:00', '02:00', '03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00', '10:00', '11:00', '12:00',],
'data_format': 'netcdf',
"area": [0, 0, 5, 5],
'itemsPerPage': 10, 'startIndex': 0}
result = client.retrieve(dataset, query, target='test.zip')
# check the .zip for the content
What are the steps to reproduce the bug?
Run the MWE and check the files (which will contain 0)
Version
0.7.5
Platform (OS and architecture)
Ubuntu 24.04 LTS
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working