Current best way to build dataset or arrays with varying coords #4847
Unanswered
EtienneCmb
asked this question in
Q&A
Replies: 1 comment
-
I'm not quite sure but my guess would be to use |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hi,
I'm working with relatively large files, all loaded as
DataArray
. All of them have the same dimension names, however, the coordinates might be different. I want to select sub-data across all the files e.g using.sel
. My first idea was to use aDataset
composed of all of my files. Here's a minimal example :Missing values are filled with
nan
, I suppose that it's also going to increase quite drastically the size in memory when considering much larger files?In perfect world, I would like to have a container such as the
Dataset
, which doesn't create internal copies (or extend it with nan) and still allow me to sub-select data across all arrays. What would be the best strategy using xarray?Thank you in advance,
Beta Was this translation helpful? Give feedback.
All reactions