Skip to content

Allow reinterpret with a ReinterpretDiskArray ? #258

@rafaqz

Description

@rafaqz

Lacking standards for this some netcdf files come with a complex dimension. Some python libraries support this:
https://unidata.github.io/netcdf4-python/#support-for-complex-numbers

But I don't think any julia libraries do?

It would be very general and flexible if we could do this at the DiskArrays level for any backend library, using reinterpret like Base julia arrays. This would turning small leading dimensions intro static arrays, tuples or structs like Complex.

Higher level packages like Rasters could have a keyword like reinterpet=:complex => Complex that would call reinterpret on load and swap the complex dimension to Complex numbers, or e.g. reinterpret=:band => RGB

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