pyart.util.ma_broadcast_to#

pyart.util.ma_broadcast_to(array, tup)[source]#

Is used to guarantee that a masked array can be broadcasted without loosing the mask

Parameters:
  • array (Numpy masked array or normal array)

  • tup (shape as tuple)

Returns:

broadcasted_array – The broadcasted numpy array including its mask if available otherwise only the broadcasted array is returned