Failure from cfdm.write
when writing identical (auxiliary) coordinates to different data variables in different groups
#177
Labels
Milestone
It should be possible to write to disk fields with identical dimension or auxiliary coordinates to different groups, but this causes a failure from
cfdm.write
, which complains that the netCDF data variable dimensions are not in the same group or a parent group as the data variable itself.It is good that
cfdm.write
complains about this, as it is a valid restriction, but it shouldn't have ended up in that situation in the first place.Many thanks to @ajelenak who noticed and diagnosed this problem, and provided a minimal reproducer, which I slightly adapted here to also cover auxiliary coordinates:
produces:
The text was updated successfully, but these errors were encountered: