Skip to content

Why has cube:variables extent and values? #35

@m-mohr

Description

@m-mohr

I'm just wondering why we had added extent and values to the variables in the first place, IMHO they don't make sense here unless I'm missing something. In the dimensions they are the dimension labels, e.g. in the time dimension the timestamps, the coordinates for x and y and for bands the band names/indices.

What's the purpose in variables? Variables consist of dimensions and as such the dimension labels are defined there. I first thought it might describe values in the array itself, but that would only work really for the extent as otherwise in values you'd need to list ALL values in the (multidimensional) array, which is actually not allowed. values is a one-dimensional array.

I feel like it makes more sense to remove extent and values and replace it with statistics.

To make it less breaking, we could deprecate the extent and values property first, and recommend statistics instead.

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