SciTools/iris — pull request #764 by ajdawson (2013-09-20 12:43:20+00:00)
Title: New array broadcast function and deprecation of broadcast_weights.

The function `iris.util.broadcast_weights` requires the user to input an array of weights and another array whose shape the weights will be broadcast to conform to. This requirement possibly encourages the loading of a cube's data payload when it is not necessary. A new function `iris.util.broadcast_to_shape` is provided which requires only a shape tuple to produce a broadcast array. This function is not API compatible with `broadcast_weights` so the existing uses of this function in iris have been converted to use `broadcast_to_shape` and a notice of deprecation has been placed in `broadcast_weights`.