iris.coord_categorisation.add_season_membership creates a boolean coordinate that cannot be saved to netcdf #5909
Labels
Good First Issue
A good issue to take on if you're just getting started with Iris development
Type: Bug
🐛 Bug Report
Trying to save a cube that has had iris.coord_categorisation.add_season_membership applied to it fails because netcdf does not allow boolean types
How To Reproduce
Running
gives the following error from the netcdf4 library (full traceback below)
Expected behaviour
It's fairly simple to work around this by converting the coordinate data to integers, but I would expect it to "just work". I can think of two solutions but both have downsides, so I wasn't sure what was best.
Additional context
Click to expand this section...
The text was updated successfully, but these errors were encountered: