When you make a drawing with the instructions, and call x the altitude of the plane and y the distance from the angle 72 ° to the point straight below the plane, you obtain these equations
I would divide 50 by 4 (Because there are usually 4 weather conditions in game) and whichever the number is closest to it would pick that weather condition