Dear all,
For the following api request:
import cdsapi
client = cdsapi.Client()
dataset = "reanalysis-era5-single-levels"
request = {
"year": [2024],
"month": [1, 2],
"day": [1],
"time": ["23:00"],
"product_type": "reanalysis",
"variable": ["2m_temperature"],
"data_format": "grib",
"download_format": "unarchived",
"area": [52.678, 13.085, 52.312, 13.758],
}
target = "download.grib"
client.retrieve(dataset, request, target)
ds = xr.load_dataset('download.grib', engine="cfgrib")
print(f"lonmax: {ds.longitude.max().item()}")
print(f"lonmin: {ds.longitude.min().item()}")
print(f"latmax: {ds.latitude.max().item()}")
print(f"latmin: {ds.latitude.min().item()}")
The output of the code above is:
lonmax: 13.585
lonmin: 13.085
latmax: 52.562
latmin: 52.312
Why are the bounds not matching the request?
Thanks and Best Regards,
Jayanth