I retrieve the data Global land surface atmospheric variables from 1755 to 2020 from comprehensive in-situ observations, i can get the data from some day like 01/01/2000
import cdsapi
dataset = “insitu-observations-surface-land”
request = {
“time_aggregation”: “daily”,
“variable”: [
“accumulated_precipitation”,
“air_temperature”
],
“usage_restrictions”: [
“non_commercial”,
“open”
],
“data_quality”: [“passed”],
“year”: [“2000”],
“month”: [“01”],
“day”: [“01”]
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
it works well
but when I retrieve the data in 03/12/2004
import cdsapi
dataset = “insitu-observations-surface-land”
request = {
“time_aggregation”: “daily”,
“variable”: [
“accumulated_precipitation”,
“air_temperature”
],
“usage_restrictions”: [
“non_commercial”,
“open”
],
“data_quality”: [“passed”],
“year”: [“2004”],
“month”: [“12”],
“day”: [“03”]
}
client = cdsapi.Client()
client.retrieve(dataset, request).download()
it show error
2024-10-31 15:52:38,276 INFO status has been updated to failed
Traceback (most recent call last):
File “/home/zinanzheng/project/insitu/data/test.py”, line 21, in
client.retrieve(dataset, request).download()
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/legacy_api_client.py”, line 152, in retrieve
submitted = self.client.submit_and_wait_on_results(
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/api_client.py”, line 456, in submit_and_wait_on_results
return self._retrieve_api.submit(collection_id, **request).make_results()
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/processing.py”, line 525, in make_results
self._wait_on_results()
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/processing.py”, line 512, in _wait_on_results
results = self.make_results(wait=False)
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/processing.py”, line 531, in make_results
results = Results.from_request(“get”, results_url, **self._request_kwargs)
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/processing.py”, line 163, in from_request
cads_raise_for_status(response)
File “/home/zinanzheng/anaconda3/envs/insitu/lib/python3.9/site-packages/cads_api_client/processing.py”, line 86, in cads_raise_for_status
raise requests.HTTPError(message, response=response)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://cds.climate.copernicus.eu/api/retrieve/v1/jobs/4b01c1c9-d0d3-4200-9000-6cc829d782c1/results
The job has failed.
The job failed with: ConnectionError