support for loading into xarray? #1550
Replies: 2 comments 2 replies
-
If this is merged pydata/xarray#4659, then you could go around through dask, or just use dask directly. I think it has some xarray support. |
Beta Was this translation helpful? Give feedback.
-
Loading via DASK as suggested in @pordyna's answer is a great idea. We support both DASK ndarrays and data frames in openPMD-api: https://openpmd-api.readthedocs.io/en/latest/analysis/dask.html Alternatively, you could go for smaller data sets via numpy (our default
Please also do not hesitate to add your working recipe to our docs in the same sections. We follow a batteries-included approach and import/export to xarray is definitely desired :) Currently, we list: Numpy (default), ParaView, Pandas, DASK, RAPIDS (cupy & cudf) and further contributed integrations. We also use openPMD-api with PyTorch (e.g., WarpX openPMD output: https://warpx.readthedocs.io/en/latest/usage/workflows/ml_dataset_training.html), should document that here as well... |
Beta Was this translation helpful? Give feedback.
-
Is there support for loading openPMD (with ADIOS2/BP backend) into xarray arrays?
The machinery that is needed is to allow lazy loading of chunks that can then be processed with, e.g., xarray's Dask backend: https://docs.xarray.dev/en/latest/internals/how-to-add-new-backend.html#how-to-support-lazy-loading
Beta Was this translation helpful? Give feedback.
All reactions