我想计算(估计)空气温度在给定的时间,位置和高度。我是空气压力20°C。这个公式基于国家结核控制规划(正常的温度和压力)来计算压力。= 101325 * (1 - 2,25577 * 10 ^ 5 * h) ^ 5, 25588 h是身高(米的结果是帕斯卡。我期望的公式计算的温度取决于太阳的位置,甚至太阳辐射。我知道太阳的公式计算位置或太阳辐射是复杂但也许有源代码/项目可以做呢?所以我可以使用这样的程序来计算我需要什么?我发现SolTrack (C / c++)在SourceForge上计算各种数据上升时间、运输时间、方位、高度,黄道经度,纬度,赤经、赤纬……但是我不能使用这些结果来计算温度。* *的目的计算* *我想对游戏使用的计算,对地图产生空气的温度。 The game is not simulator it is just game. So I need to add some values to the map so when the aircraft flies it can accept some temperature changes. The values are important in vicinity of terrain, mountains and hills. I don't need include winds into the calculation. **Calculation of Solar Radiation** What I have found so far is calculation of solar radiation written in Visual Basic - it is xls table (Excel) [ecy.wa.gov/programs/eap/models/solrad.zip][1]. Where I have added the pressure for 20°C. Of sure the problem here is unsolved because I suppose the temperature and pressure changes during time. So I need to improve the formula to calculate the pressure for given location, time and altitude. [1]: http://ecy.wa.gov/programs/eap/models/solrad.zip