-
Notifications
You must be signed in to change notification settings - Fork 10
Description
There are many applications where it's useful to declare the origin of an array relative to the indexing domain defined by the chunks. Origin metadata allows arrays to "underfill" chunks at the beginning of the chunk grid. Currently arrays can only underfill at the end of the chunk grid.
I think the chunk_grid field is a good place to declare the origin. An additional origin field, with a type array[int], in the configuration of the regular chunk grid would be sufficient to express this. I'm not sure if we need a completely new chunk grid or a new key added to the regular chunk grid configuration. The latter is viable only if naive zarr implementations error when they encounter the new key. I would also be interested in having an origin field in the rectilinear chunk grid configuration.
But maybe there is a better place to express the origin? Curious to hear thoughts from others.
cc @alexamici