function to get the mean in a parcel