Open amotl opened 1 year ago
I appreciate the contribution. Zarr access is something I've wanted to add to Herbie (especially abstracting access to the HRRR Zarr dataset^1). This is a bit to digest at the moment. When the docs are migrated to RTD and restored, I'll start to look at this in more depth. I certainly think Herbie would be a good home to add access to more types of data that are available.
About
After a few other attempts elsewhere, we started working on an indexer for NWP data once again at ^1. We think it will help for different slicing and querying tasks requested by the community, some of them referenced below. The indexer is based on the excellent Caterva and ironArray libraries, which enable efficient slicing on all dimensions, along with several other features that are ideal in this scenario. More details are described in the next section.
Technologies
Synopsis
Setup
Alternative.
Usage
Create index
Query index
Thoughts
We would like to gather early feedback from you and the community if this feature would be welcome. In the spirit of Herbie's history and disclaimer, we would be honored to contribute this as an indexing subsystem. Please let us know what you think about the patch, and if you also believe it would fit well into the code base, to enable a whole stack of new possibilities for Herbie.
References
Implementation
The
query()
method ofherbie.index.core
fame, filtering on all dimensions (time, lat, lon). https://github.com/blaylockbk/Herbie/blob/4fd07a52f40c8c217d9e6de897aa6848d4e33b88/herbie/index/core.py#L101-L125