>>> h = cf.read('test.nca')
Traceback (most recent call last):
...
ValueError: Can't set data: Input data must span all axes that have size greater than 1, as well as optionally spanning any size 1 axes.
>>>
The problem is that there is no actual (non-CFA) array to force the netCDF-C library to grow the unlimited dimension after it is created, and we only know the shape of the aggregated data from the netCDF dimensions, since the CFA variable is scalar.
The solution is to not write unlimited dimensions to CFA files. This makes sense, as they are not really inteded for dynamical growth, anyway. PR to follow.
At version 3.15.2, a CFA file can be incorrectly created with size 0 netCDF unlimited dimension, which causes a failure when the fiel is read:
The problem is that there is no actual (non-CFA) array to force the netCDF-C library to grow the unlimited dimension after it is created, and we only know the shape of the aggregated data from the netCDF dimensions, since the CFA variable is scalar.
The solution is to not write unlimited dimensions to CFA files. This makes sense, as they are not really inteded for dynamical growth, anyway. PR to follow.