make_mask_from_presence function

Make a mask from presence data