Remote access patterns using xarray.
@betolink がすでに取り組んでいます。
2024年5月17日 から。
評価
この issue はまだ評価されていません。
説明
I'm not sure if this will fit in the upcoming (potential) SciPy tutorial or somewhere else, I think it could be helpful to include a mini-guide on access patterns to remote storage. I think that one of the key strengths of xarray is in a way, a weakness. I'm thinking about how powerful the abstractions are when it comes to open a multi-file datasets and how this could hide the nuances of different back-end storage types.
When a new user sees this and they get a data cube, it's like magic!
ds = xr.open_dataset(reference, engine="zarr")
and although this is the cloud-native way, a considerable amount of data is still in archival formats or available through a service like Opendap. In an ideal world, users shouldn't care in which format/location their data is, but I've run into multiple instances where is not that xarray is not doing its job but the data is in HDF on a slow server across the next continent.
Sometimes there are workarounds, from using different sources(e.g. Planetary Computer, GEE) that serve the same data but on a cloud optimized format, to the use of Kerchunk or using clever caching strategies. I feel that some of these topics are buried in threads in Github and not necessarily exposed in the documentation.
The idea would be to quickly illustrate, what xarray would do if I have files of type X and this access pattern:
file_set = [fsspec.open(f) for f in files]
ds = xr.open_mfdataset(file_set)
What would happen if my files are HDF4, NetCDF, HDF5, what's the step 1, 2, 3... can we make it faster? how?
What if the data is behind OPeNDAP? etc
I also wonder if this information is already out there in the docs and perhaps just needs to be compiled into a single notebook, I volunteer to start one if is not.
- 主要言語
- Jupyter Notebook
- スター
- 204
- フォーク
- 121
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
xarray-contrib/xarray-tutorial のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
xarray-contrib/xarray-tutorial#362 · コメント 2 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 55/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100