Updated with generic solution to correct scale based on altitude