-
Notifications
You must be signed in to change notification settings - Fork 296
Description
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) :
-
'other' indexing-like cube methods :Cube.subset
andCube.intersection
- believed ok, nothing to do (see below)
-
regrid/interpolate : Cube.regid, Cube.interpolate and all schemes code- believed ok, nothing to do (see below)
-
Cube.xml()
: Cube-xml for cell measures and ancils. #3607 - possible uses of
Cube.slices
/slices_over
: TBD- two places still of concern,
this line usescube.slices()
and result is re-merged later. Waiting for PI-3473: Add Ancillary Variable support to merge #3569 to assess potential failure of the split-and-remerge- believed ok, nothing to do (this line removes ancillary variables)
- this line uses
cube.slices_over()
: will be fixed by Fix cube-arith possible problem in 'pearsonr'. #3621- was
Waiting on [PI] Implement new cube arithmetic proposal #3478 to see possible effect of this on result cube, but Fix cube-arith possible problem in 'pearsonr'. #3621 means we don't need to wait for that.
- was
- two places still of concern,
- user documentation of behaviours : Explain merge+concat behaviour with dimensional metadata. #3608
- note: PI-3483 Ensure documentation of ancillary variables handling #3570 has broader scope, but I think we can agree that if there is more here, it is not MVP.
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__
methodexperimental.stratify.relevel
- to be started after Fix copy to include Ancillary variables and Cell measures #3546 is merged. confirm whether this list has other cube.copy dependencies are used in interpolation.
- check whether uses of the above return cubes with cell measures or ancillary variables
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.