My bad..
When checking for the tropopause, i.e.
Code:
if ( height < tropopause ) then
else
end
We have to adjust the whole T_std equation, not the the TLR!
Note I had this
Code:
if ( height < tropopause ) then
TLR = 6.49(°C/1,000m) = 1.98(°C/1,000ft) = 3.56(°F)/1,000ft
else
TLR = -56.5(°C) = 216.65(°K)
Which is wrong!
What we want to do is this
Code:
if ( height < tropopause ) then
T_std = T_o - Alt_ind × TLR
else
T_std = T_tropopause
Where
Code:
T_Topopause = -56.5(°C) = 216.65(°K)