Skip to content

declaring the origin of an array #30

@d-v-b

Description

@d-v-b

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions