Replies: 1 comment 3 replies
-
There is a EDIT: In fact why is it not explicitly listed in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to run a code that does not use xarray (seriously, why tho?!?) and loads data with netCDF4 and handles the
netCDF4._netCDF4.Dataset
directly.I need to transpose my netCDF data, though, the code wants
time
to be the last dimension. I could do this before running the code, but my first idea was to add a few lines of code: load the data inxarray
, transpose, and re-output them as a netCDF4.Dataset.Thanks to Ryan May and this SO answer I got the first part done:
I now need the "inverse" of
xr.open_dataset(xr.backends.NetCDF4DataStore(nc))
, if it exists! , something likeIs that possible? without any writing/reading from file?
Thanks!
PS: I did search the discussion forum before and didn't find any suitable answer, if I missed one apologies!
Beta Was this translation helpful? Give feedback.
All reactions