xcube-dev / xcube-cds

An xcube plugin to generate data cubes from the Climate Data Store (CDS) API
MIT License
3 stars 1 forks source link

ERA5 data gives "cannot guess the engine" error with xarray 0.18.0 #52

Closed pont-us closed 3 years ago

pont-us commented 3 years ago

With the recently released version 0.18.0 version of xarray installed, any ERA5 request via xcube-cds fails with the error "ValueError: cannot guess the engine, try passing one explicitly".

pont-us commented 3 years ago

Cause: the name of the downloaded NetCDF file doesn't have a ".nc" suffix. xarray 0.17.0 was able to select the NetCDF engine automatically on the basis of the file's contents. xarray 0.18.0 is apparently unable to do this, and requires an appropriate file suffix or explicitly specified engine instead.

pont-us commented 3 years ago

Fixed in commit f8f5b76a.