Skip to content

Keep interval in time cell_methods in some cases #233

@MartinDix

Description

@MartinDix

At the moment the intervals attribute of the cell_methods is removed on the grounds that time: mean (interval: 1 hour) can be misleading.

def _remove_hour_interval(cell_method):
"""Helper retains all non 'hour' intervals."""
return (i for i in cell_method.intervals if i.find("hour") == -1)

The UM sets the interval as 1 for anything <= 1 hour (e.g. when sampling every time step). However it is set correctly for longer sampling periods, e.g. 3 hours for ESM1.6 radiation or 6 hours for the ESM1.6 pressure level diagnostics. In this case it should be retained.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions