mango.copy_masked

mango.copy_masked(src, dst, srcval=None, srcmask=None, dstmask=None)

Copies masked elements from the src array into the dst array. If the arrays are different layouts/shapes then the src array will be copied to an array of the same layout/shape as the dst array. By default, elements of the copied src array which are not in the original input src global domain are set to the mask value (i.e. elements outside the input src array are assumed to be masked).

Only non-halo elements are copied.

Parameters:
  • src (Dds) – Array from which masked voxels are copied.
  • dst (Dds) – Array to which masked voxels are copied.
  • srcval (numeric) – Value for elements outside the src global domain. If None set to src.mtype.maskValue().

Previous topic

mango.gather

Next topic

mango.copy_non_masked

This Page