Open apatlpo opened 2 years ago
Thanks for reporting, @apatlpo. I don't think there is a fundamental reason for this not being implemented for xarray.
When we developed this feature of time-varying depth grids, we only had a use-case for netcdf files. And because our development philosophy is to only develop features for which we have use-cases (and hence test-cases), we never got around to implementing it for xarray; or even a proper NotImplementedError
for that matter...
Perhaps you can give a go at implementing this for xarray? See the grid.z4d
boolean that controls whether the depth is time-varying
Ok, I can give it a look. If you have any other pointers, don't hesitate to push them.
I give it a first shot but it leads to an out of bounds error at the moment. Discussion should probably move to #1131
Keeping this issue open. If anyone would like to continue development on #1131, feel free to fork and PR when ready.
We are running simulations with a moving vertical grid. It works fine with netcdf files but fails when we attempt to create the fieldset from an xarray dataset (see error message at the bottom). Looking at the code, it is pretty clear this has not been implemented yet. Being able to feed xarray dataset would be very convenient for us and I was thus wondering whether there was a fundamental reason for it not being implemented or if it was simply that nobody had needed to do that thus far?