iris icon indicating copy to clipboard operation
iris copied to clipboard

Extend iris.common.resolve.Resolve to implicitly use target cube data

Open bjlittle opened this issue 4 years ago • 1 comments

✨ Feature Request

Motivation

Extend iris.common.resolve.Resolve such that Resolve(src, tgt)() is possible instead of Resolve(src, tgt)(tgt.data).

It's a slightly easier pattern to tolerate, instead of forcing the user to explicitly pass in the data of the resultant resolved cube. So here the assumption is that the Resolve instance can use the target cube data (which may require to be broadcast automagically) if no data is provided for the resulting resolved cube.

This is in light of the deprecation of iris.util.as_compatible_shape, reference #3892.

bjlittle avatar Sep 30 '20 15:09 bjlittle