cdsapi icon indicating copy to clipboard operation
cdsapi copied to clipboard

vegetation cover accepts future

Open spirrobe opened this issue 3 months ago • 0 comments

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

spirrobe avatar Oct 07 '25 12:10 spirrobe