Skip to content

renaming dimensions? #500

@dpabon

Description

@dpabon

Hi recently I came across this issue:

sentinel_3_cube = Cube(open_dataset("/Net/Groups/BGI/work_3/OEMC/oemc_sif/data/OLCI_Sentinel3_gridded_1km_europe_2018-01-04_2020-12-29.zarr/"))

produce:

4800×4800×138×10 YAXArray{Float32, 4} ┐
├───────────────────────────────────────┴──────────────── dims ┐
   X         Sampled{Int64} 1:1:4800 ForwardOrdered Regular Points,
   Y         Sampled{Int64} 1:1:4800 ForwardOrdered Regular Points,
  ↗ time      Sampled{DateTime} [2018-01-04T00:00:00, , 2020-12-29T00:00:00] ForwardOrdered Irregular Points,
  ⬔ Variables Categorical{String} [RC865, lat, , OGVI_sigma, RC681_sigma] Unordered

if I do:

### selecting only OGVI and 2018-07

ogvi_cube_high = sentinel_3_cube[Variable = At("OGVI"), Ti = Between(DateTime("2018-07-01"),DateTime("2018-07-31"))]

This works!!

The expected behaviour should be:

Error: Variable and Ti dimensions not found. check for typos

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