PI-3473: Add Ancillary Variable support to merge#3569
Conversation
Unfortunately I think this approach is probably wrong, as discussed offline with @bjlittle ... NOTE related prior discussions #3603 #3084 #3234 We think that not ever merging (stacking) cell-measures does make ok sense, as these generally describe the "data spatial sampling grid" in dims X, Y and possibly Z. However in contrast, Auxiliary Variables can easily map over any and all dimensions of the data, particularly when they are used as status flags : they could have a value at every single datapoint. ( Actually, I had thought that merge would do this with AuxCoords too, but it seems we have chosen not to. On the other hand ... I see this was not in the original Acceptance Criteria on #3552, as opposed to the equivalent for concatenate :
So, having seen that we can't currently do this with AuxCoords either, I wonder.. @stephenworsley has shown that we can work-around these cases via concatenate :
See proposed extension to |
@pp-mo Does this mean that iris 3.0 should discard/ignore ancillary variables on merge? If this is the case, perhaps a warning should be given when this happens. |
The latter I think: That is, not discard but only carry over matching versions. A statement of that would be useful, somewhere but frankly I'm not sure where. Suggest if you like.. I still need to check this out further, including test coverage, but I will need a bit longer. Sorry to be so slow today. |
|
Ok, after long thinks about the concatenate #3566, I've convinced myself that this one really is much simpler. Thanks @stephenworsley ! |
Addresses half of #3552. Now
mergetreats Ancillary Variables the same as Cell Measures.