area_of_mask.py
def mask_op(mask_array, value_array):
    """Mask out value to 0 if mask array is not 1."""
    result = numpy.copy(value_array)
    result[mask_array != 1] = 0.0
    return result
Mask out value to 0 if mask array is not 1.
Mask out value to 0 if mask array is not 1.
Mask out value to 0 if mask array is not 1 .
def mask_op(mask_array, value_array):
    result = numpy.copy(value_array)
    result[mask_array != 1] = 0.0
    return result
def mask_op ( mask_array , value_array ) : result = numpy . copy ( value_array ) result [ mask_array != 1 ] = 0.0 return result
Mask out value to 0 if mask array is not 1.
Mask out value to 0 if mask array is not 1 .
"""Mask out value to 0 if mask array is not 1."""
mask_array
value_array