This function outputs the ambient air temperature dependent on the height.
function TAir input Modelica.Units.SI.Temperature TAirRef "Air temperature on reference height"; input Modelica.Units.SI.Height z "Height over ground"; input Modelica.Units.SI.Height zRefTAir "Reference height air temperature measurement"; input Real gamma(unit = "K/m") "Temperature gradient of the planetary boundary layer in K/m"; output Modelica.Units.SI.Temperature value "Height dependent air temperature"; end TAir;