2022-06-16 11:33:50,491 ERROR home.cds.cdsservices.services.mars.__init__.py.exceptions.MarsException: Expected 172800, got 57600.; Request failed; Some errors reported (last error -1)
Traceback (most recent call last):
File "e:\Progs\Github-repos\OceanSpec\code\download_spectra.py", line 11, in <module>
c.retrieve(
File "D:\Anaconda3\lib\site-packages\cdsapi\api.py", line 348, in retrieve
result = self._api("%s/resources/%s" % (self.url, name), request, "POST")
File "D:\Anaconda3\lib\site-packages\cdsapi\api.py", line 506, in _api
raise Exception(
Exception: the request you have submitted is not valid. Expected 172800, got 57600.; Request failed; Some errors reported (last error -1).
File "e:\Progs\Github-repos\OceanSpec\code\read_data.py", line 83, in <module>
ds = read_file('spect.grib')
File "e:\Progs\Github-repos\OceanSpec\code\read_data.py", line 16, in read_file
ds = xr.open_dataset(file_name, engine='cfgrib')
File "D:\Anaconda3\lib\site-packages\xarray\backends\api.py", line 481, in open_dataset
backend = plugins.get_backend(engine)
File "D:\Anaconda3\lib\site-packages\xarray\backends\plugins.py", line 156, in get_backend
raise ValueError(
ValueError: unrecognized engine cfgrib must be one of: ['netcdf4', 'scipy', 'store']