def mask_by_array_op(base_array, mask_array, base_nodata, target_nodata):
    """Mask base by a mask array where it's 1 base goes to 0."""
    result = base_array.copy()
    result[mask_array == 1] = 0
    return result