Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify that virtual datasets are not normal xarray datasets #173

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

TomNicholas
Copy link
Member

@TomNicholas TomNicholas commented Jul 1, 2024

Tries to address the confusion in #171 through documentation.

  • Addresses #xxxx
  • Changes are documented in docs/releases.rst

@TomNicholas TomNicholas added the documentation Improvements or additions to documentation label Jul 1, 2024
Comment on lines +68 to +73
```{important} Virtual datasets are not normal xarray datasets!

Although the top-level type is still `xarray.Dataset`, they are intended only as an abstract representation of a set of data files, not as something you can do analysis with. If you try to load, view, or plot any data you will get a `NotImplementedError`. Virtual datasets only support a very limited subset of normal xarray operations, particularly functions and methods for concatenating, merging and extracting variables, as well as operations for renaming dimensions and variables.

_The only use case for a virtual dataset is [combining references](#combining-virtual-datasets) to files before [writing out those references to disk](#writing-virtual-stores-to-disk)._
```
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ghidalgo3 would this note have helped?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, thank you for accepting the feedback :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for raising the thoughtful issue!

@TomNicholas TomNicholas changed the title add admonition Clarify that virtual datasets are not normal xarray datasets Jul 1, 2024
@TomNicholas TomNicholas merged commit a0451b9 into main Jul 2, 2024
4 checks passed
@TomNicholas TomNicholas deleted the clarify-virtual-datasets-arent-normal-datasets branch July 2, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants