Skip to content

Efficient cube multiple statistic calculations  #3331

Closed
@bjlittle

Description

@bjlittle

Extend the capability of iris to allow the user to efficiently calculate multiple statistics from the same source cube when using iris.cube.Cube.collapsed and iris.cube.Cube.aggregated_by.

For example:

from iris.analysis import MEAN, SUM, MAX
cubes = cube.collapsed('model_level_number', [MEAN, SUM, MAX])

As opposed to the less efficient:

cubes = [cube.collapsed('model_level_number', agg) for agg in [MEAN, SUM, MAX]]

Ditto for iris.cube.Cube.aggregated_by.

The resolution of source cube data is only on the increase. As such, iris needs to be sympathetic to those scientists that require to calculate multiple statistics and analyses over high and very high resolution data by offering an efficient workflow of streaming once, calculating many. As opposed to streaming once, calculating once.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions