Skip to content

turning single cube into a cubelist #360

@cpelley

Description

@cpelley

This splits the outer dimension of the cube, returning a cubelist not of len 1 (len of 1 is what we would expect)

>>> import iris.tests.stock as stock
>>> simple = stock.lat_lon_cube()
>>> simple
<iris 'Cube' of unknown / unknown (latitude: 3; longitude: 4)>
>>> iris.cube.CubeList(simple)
[<iris 'Cube' of unknown / unknown (longitude: 4)>,
<iris 'Cube' of unknown / unknown (longitude: 4)>,
<iris 'Cube' of unknown / unknown (longitude: 4)>]

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