Skip to content

Cube transpose behaviour with multidimensional coordinates #2606

@cpelley

Description

@cpelley

The context of this ticket is in utilising the capability from iris.experimental.stratify which necessarily requires us to transpose cubes to make them suitable for use.

The current implementation of Cube.transpose changes the dimension mapping of the axillary coordinates, but doesn't actually transpose the coordinates themselves. This is so confusing! (see the following gist).

Note that the altitude coordinate likely behaves in the way that I was expecting, unlike the surface altitude as it is a derived coordinate... which only adds to the confusion with the differing shapes...

I would appreciate a second opinion on this, cheers.
I would consider this a bug on the basis that I was not expecting this at all and I'm interested in hearing what others think.

Related: #2532

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions