Skip to content

TCTracksForecast: NetCDF filter error on Python 3.11 #135

@peanutfun

Description

@peanutfun

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions