Skip to content

Add __orthogonal_indexing__ flag #171

@davidhassell

Description

@davidhassell

Some libraries include an __orthogonal_indexing__ property to indicate to the user whether or not a variable utilises orthogonal indexing. For instance, netCDF4, cfdm, and cf-python implements this API, and it's very useful because it tells downstream applications whether or not they themselves need to implement orthogonal indexing.

For these other libraries just mentioned, __orthogonal_indexing__ is always True, but for a pyfive Dataset, orthogonal indexing is dependent on the data layout - contiguous data does not support it, but chunked data does.

Therefore we could add an __orthogonal_indexing__ property that returns True or False depending on the data layout.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions