cdsapi
cdsapi copied to clipboard
Data downloaded not respecting the extents given in request
What happened?
Hello,
I have tried to download the data with the following specs
Resource:
sis-agrometeorological-indicators
Request body:
{
"area": [
57.181209001464964,
9.969475411121993,
57.16153838745902,
10.011279434106626
],
"day": [
"01",
"02",
"03",
"04",
"05",
"06",
"07",
"08",
"09",
"10",
"11",
"12",
"13",
"14",
"15",
"16",
"17",
"18",
"19",
"20",
"21",
"22",
"23",
"24",
"25",
"26",
"27",
"28",
"29",
"30",
"31"
],
"format": "tgz",
"month": "01",
"statistic": "24_hour_mean",
"variable": "2m_temperature",
"version": "1_1",
"year": "2023"
}
using cdsapi
code as well as the online form. With either interface, I get the same gzip file:
dataset-sis-agrometeorological-indicators-19f50da9-ba9f-4420-81aa-b65855cbd881.tar.gz
When I inspect the netcdf files with xarray I see the following:
>>> ds
<xarray.Dataset>
Dimensions: (lat: 1801, lon: 3600, time: 1)
Coordinates:
* lat (lat) float64 90.0 89.9 89.8 ... -89.9 -90.0
* lon (lon) float64 -180.0 -179.9 ... 179.8 179.9
* time (time) datetime64[ns] 2023-01-01
Data variables:
Temperature_Air_2m_Mean_24h (time, lat, lon) float32 ...
Attributes:
Conventions: CF-1.7
Here the lat, lon extent is not what I asked for. It is the entire globe. I am not sure whether I do something wrong or the area is too small for the cdsapi. Any advise is much appreciated.
What are the steps to reproduce the bug?
Download the data using cdsapi with the request body and resource described above. Use xrray to see that the extents are not the same as
"area": [
57.181209001464964,
9.969475411121993,
57.16153838745902,
10.011279434106626
],
Version
v0.6.1
Platform (OS and architecture)
6.2.0-1007-lowlatency #7-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 23 15:37:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Relevant log output
No response
Accompanying data
No response
Organisation
Independent