question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating unlimited dimensions with xarray.Dataset.to_netcdf

See original GitHub issue

@shoyer you wrote in a comment on another issue

xray doesn’t use or set unlimited dimensions. (It’s pretty irrelevant for us, given that NumPy arrays can be stored in either row-major or column-major order.)

I see that xarray does not need UNLIMITED dimensions internally. But I need to create a netCDF file that I subsequently can append to (along the time dimension, in this case). Can this be done?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:18 (15 by maintainers)

github_iconTop GitHub Comments

4reactions
jhammancommented, Dec 14, 2016

All - I’m actively working on this. I have an initial implementation and will get it cleaned up here in the next few days. Stay tuned.

4reactions
gnursercommented, Dec 10, 2016

The ability to set unlimited dimension would be really useful for me as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

xarray.Dataset.to_netcdf
By default, no dimensions are treated as unlimited dimensions. Note that unlimited_dims may also be set via dataset.encoding["unlimited_dims"] . compute ( bool ...
Read more >
Incremental storage to netcdf using xarray - Stack Overflow
Now I am trying to save the dataset to netcdf file. ... I have specified 'dtime' as unlimited dimension to make it extendable...
Read more >
How to Create Xarray Datasets - Towards Data Science
Xarray is an open-source Python package for working with labeled multi-dimensional datasets. It is indispensable when working with NetCDF ...
Read more >
Append data to NetCDF file along unlimited dimension?
I hope somebody ran into this issue before. According to the xarray docs it does not seem that one can append xarray.Dataset variables...
Read more >
omfit_classes.omfit_data — OMFIT
Dataset _load = Dataset.load import xarray.core.dataarray DataArray ... complex_dim='i', *args, **kw): r""" Method for saving xarray Dataset to NetCDF, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found