Hi all,
I am trying to download ERA5-Land data (mean, max, min daily t2m) using the code above.
I get an error when I change the time_zone parameter to UTC+01:00 instead of UTC+00:00 as default.
I started to download data from January 2001 onward, and when my script reaches October 2002 I get the following error:
2022-03-17 09:33:10,559 INFO Sending request to https://cds.climate.copernicus.eu/api/v2/tasks/services/tool/toolbox/orchestrator/workflow/clientid-1cc7f1fe6b8e46bc8d663ba4f83ac462
2022-03-17 09:33:11,243 INFO Request is queued
2022-03-17 09:33:12,432 INFO Request is running
2022-03-17 09:33:14,126 INFO Request is failed
2022-03-17 09:33:14,128 ERROR Message:
2022-03-17 09:33:14,130 ERROR Reason: Traceback (most recent call last):
File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py", line 59, in handle_request
result = cached(context.method, proc, context, context.args, context.kwargs)
File "/opt/cdstoolbox/cdscompute/cdscompute/caching.py", line 108, in cached
result = proc(context, *context.args, **context.kwargs)
File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 124, in __call__
return p(*args, **kwargs)
File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 60, in __call__
return self.proc(context, *args, **kwargs)
File "/home/cds/cdsservices/services/python_service.py", line 38, in execute
raise exceptions.InternalError(logging + traceback, '')
cdsclient.exceptions.InternalError: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 460, in _dataset_concat
vars = ensure_common_dims([ds.variables[k] for ds in datasets])
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 460, in <listcomp>
vars = ensure_common_dims([ds.variables[k] for ds in datasets])
File "/usr/local/lib/python3.6/site-packages/xarray/core/utils.py", line 426, in __getitem__
return self.mapping[key]
KeyError: 'experimentVersionNumber'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/cdstoolbox/jsonrequest/jsonrequest/requests.py", line 71, in jsonrequestcall
resp = coding.encode(req.callable(*req.args, **req.kwargs), register=encoders, **context)
File "/opt/cdstoolbox/cdstools/cdstools/util.py", line 854, in concat
return xr.concat(data, dim, **kwargs)
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 192, in concat
objs, dim, data_vars, coords, compat, positions, fill_value, join, combine_attrs
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 527, in _dataarray_concat
combine_attrs="drop",
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 462, in _dataset_concat
raise ValueError("%r is not present in all datasets." % k)
ValueError: 'experimentVersionNumber' is not present in all datasets.
2022-03-17 09:33:14,132 ERROR Traceback (most recent call last):
2022-03-17 09:33:14,134 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py", line 59, in handle_request
2022-03-17 09:33:14,136 ERROR result = cached(context.method, proc, context, context.args, context.kwargs)
2022-03-17 09:33:14,137 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/caching.py", line 108, in cached
2022-03-17 09:33:14,138 ERROR result = proc(context, *context.args, **context.kwargs)
2022-03-17 09:33:14,139 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 124, in __call__
2022-03-17 09:33:14,140 ERROR return p(*args, **kwargs)
2022-03-17 09:33:14,140 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 60, in __call__
2022-03-17 09:33:14,141 ERROR return self.proc(context, *args, **kwargs)
2022-03-17 09:33:14,142 ERROR File "/home/cds/cdsservices/services/workflow.py", line 35, in execute
2022-03-17 09:33:14,143 ERROR raise exceptions.CDSException(True, True, logging + traceback, '', uri)
2022-03-17 09:33:14,143 ERROR cdsclient.exceptions.CDSException: Traceback (most recent call last):
2022-03-17 09:33:14,144 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py", line 59, in handle_request
2022-03-17 09:33:14,145 ERROR result = cached(context.method, proc, context, context.args, context.kwargs)
2022-03-17 09:33:14,145 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/caching.py", line 108, in cached
2022-03-17 09:33:14,146 ERROR result = proc(context, *context.args, **context.kwargs)
2022-03-17 09:33:14,147 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 124, in __call__
2022-03-17 09:33:14,147 ERROR return p(*args, **kwargs)
2022-03-17 09:33:14,148 ERROR File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 60, in __call__
2022-03-17 09:33:14,149 ERROR return self.proc(context, *args, **kwargs)
2022-03-17 09:33:14,150 ERROR File "/home/cds/cdsservices/services/python_service.py", line 38, in execute
2022-03-17 09:33:14,150 ERROR raise exceptions.InternalError(logging + traceback, '')
2022-03-17 09:33:14,151 ERROR cdsclient.exceptions.InternalError: Traceback (most recent call last):
2022-03-17 09:33:14,152 ERROR File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 460, in _dataset_concat
2022-03-17 09:33:14,152 ERROR vars = ensure_common_dims([ds.variables[k] for ds in datasets])
2022-03-17 09:33:14,160 ERROR File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 460, in <listcomp>
2022-03-17 09:33:14,161 ERROR vars = ensure_common_dims([ds.variables[k] for ds in datasets])
2022-03-17 09:33:14,161 ERROR File "/usr/local/lib/python3.6/site-packages/xarray/core/utils.py", line 426, in __getitem__
2022-03-17 09:33:14,162 ERROR return self.mapping[key]
2022-03-17 09:33:14,163 ERROR KeyError: 'experimentVersionNumber'
Traceback (most recent call last):
File "<ipython-input-5-e88eba735741>", line 1, in <module>
runfile('/path/to/my/script.py', wdir='/path/to/my/wdir/')
File "/home/guido/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 827, in runfile
execfile(filename, namespace)
File "/home/guido/anaconda3/lib/python3.7/site-packages/spyder_kernels/customize/spydercustomize.py", line 110, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "/path/to/my/script.pyF", line 60, in <module>
"workflow_name": "application"
File "/home/guido/anaconda3/lib/python3.7/site-packages/cdsapi/api.py", line 319, in service
result = self._api('%s/tasks/services/%s/clientid-%s' % (self.url, name, uuid.uuid4().hex), request, 'PUT')
File "/home/guido/anaconda3/lib/python3.7/site-packages/cdsapi/api.py", line 420, in _api
raise Exception("%s. %s." % (reply['error'].get('message'), reply['error'].get('reason')))
Exception: . Traceback (most recent call last):
File "/opt/cdstoolbox/cdscompute/cdscompute/cdshandlers/services/handler.py", line 59, in handle_request
result = cached(context.method, proc, context, context.args, context.kwargs)
File "/opt/cdstoolbox/cdscompute/cdscompute/caching.py", line 108, in cached
result = proc(context, *context.args, **context.kwargs)
File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 124, in __call__
return p(*args, **kwargs)
File "/opt/cdstoolbox/cdscompute/cdscompute/services.py", line 60, in __call__
return self.proc(context, *args, **kwargs)
File "/home/cds/cdsservices/services/python_service.py", line 38, in execute
raise exceptions.InternalError(logging + traceback, '')
cdsclient.exceptions.InternalError: Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 460, in _dataset_concat
vars = ensure_common_dims([ds.variables[k] for ds in datasets])
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 460, in <listcomp>
vars = ensure_common_dims([ds.variables[k] for ds in datasets])
File "/usr/local/lib/python3.6/site-packages/xarray/core/utils.py", line 426, in __getitem__
return self.mapping[key]
KeyError: 'experimentVersionNumber'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/cdstoolbox/jsonrequest/jsonrequest/requests.py", line 71, in jsonrequestcall
resp = coding.encode(req.callable(*req.args, **req.kwargs), register=encoders, **context)
File "/opt/cdstoolbox/cdstools/cdstools/util.py", line 854, in concat
return xr.concat(data, dim, **kwargs)
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 192, in concat
objs, dim, data_vars, coords, compat, positions, fill_value, join, combine_attrs
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 527, in _dataarray_concat
combine_attrs="drop",
File "/usr/local/lib/python3.6/site-packages/xarray/core/concat.py", line 462, in _dataset_concat
raise ValueError("%r is not present in all datasets." % k)
ValueError: 'experimentVersionNumber' is not present in all datasets..
Thank you for your support