Determine current height for reference-height calculations.