Skip to content

Ancillary Variables - validate 'all other' cube operations #3554

@trexfeathers

Description

@trexfeathers

Status update 2019-12-09
It appears that most of the points raised + discussed below may now have been ruled out.

Current 'TODO' list (including things already-complete) :

Notes:

  • This ticket applies to "all" cube operations that produce a new cube, where an input cube with ancillaries might give a result with "wrong" ancillaries. For instance, where "old" ancillaries could now have the wrong dimensions.
  • It also covers some documentation, somehow, of "what" operations will do with ancils.
    • However, we may want to defer those additions until we are ready to "release" ancils, as described below. See separate ticket #3570
    • It might also be desirable to add matching notes for cell-measures handling, which are currently absent pretty much anywhere.

Use of launch_ancils feature-branch
Pending a final decision to "release" ancils in Iris 3.0, we need to defer documentation changes to the feature branch. See key note here
That applies also to the documentation of cube operations, as mentioned below : see separate ticket #3570 to cover this


Original notes :
original name : "Ancillary Variables - cube.copy invalid retention of AV's #3554"

The following include uses of cube.copy, which in #3546 will newly retain Cell Measures and Ancillary Variables. In these cases this could be inappropriate since the CM's/AV's could refer to dimensions that no longer exist.

As noted in #3483 there is a wider discussion about regridding/interpolation to be had since depending on the dimensions altered it may be appropriate to retain CM's/AV's. Until that is tackled in detail it is important the below operations do not behave in a misleading way and therefore a blanket discarding of CM's/AV's would be safest.

  • analysis._regrid.CurvilinearRegridder
  • analysis.trajectory.UnstructuredNearestNeigbourRegridder, also __call__ method
  • experimental.stratify.relevel

 

If the above are returning cubes with CM's/AV's:
-[ ] alter the functions/methods to prevent retention of CM's/AV's
-[ ] write tests to demonstrate this
-[ ] document this behavior
-[ ] ensure that the cases covered here are accounted for in any further discussions/work to conditionally retain/discard CM's/AV's depending on the dimensions involved

Note: the above tickboxes have been deprecated and I have edited them so that they don't contribute to the status bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions