TCTracksForecast: NetCDF filter error on Python 3.11
Closed this issue · 2 comments
peanutfun commented
NetCDF throws the following error in climada_petals.hazard.test.test_tc_tracks_forecast.TestECMWF.test_hdf5_io
:
E RuntimeError: NetCDF: Filter error: bad id or parameters or duplicate filter: (variable 'basin', group '/')
See https://github.com/CLIMADA-project/climada_petals/runs/27187449177/ This only occurs on Python 3.11. Unfortunately, the error message is cryptic and does not tell a lot.
It might have to do with compression of variable-length data (basin
is probably a string?), which is not supported. According to Unidata/netcdf4-python#1175 (comment), zlib=False
might solve the issue.
peanutfun commented
Will probably be fixed by CLIMADA-project/climada_python#911
peanutfun commented
Fixed by CLIMADA-project/climada_python#911