You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file cm4twc_dump_file.nc contains subgroups and has an unlimited dimension, currently of size 13. However, when read it gives the unlimited dimension as size 0:
And downstream errors occur, e.g. when trying to subspace the size zero dimension.
This is a bug in cfdm.read (well cfdm.read_write.netcdf.NetCDFRead to be exact), which takes the dimension sizes from the flattened version of the file, but the flattened file does not know the unlimited dimension size, because the flattened file contains no arrays.
This is easily fixed by getting the dimension size from the original grouped file instead. PR to follow.
The file
cm4twc_dump_file.nc
contains subgroups and has an unlimited dimension, currently of size 13. However, when read it gives the unlimited dimension as size 0:And downstream errors occur, e.g. when trying to subspace the size zero dimension.
This is a bug in
cfdm.read
(wellcfdm.read_write.netcdf.NetCDFRead
to be exact), which takes the dimension sizes from the flattened version of the file, but the flattened file does not know the unlimited dimension size, because the flattened file contains no arrays.This is easily fixed by getting the dimension size from the original grouped file instead. PR to follow.
The text was updated successfully, but these errors were encountered: