code to merge data for 2D probe files