我想计算(估计)空气温度在给定的时间,位置和高度。我是空气压力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. **Additional information:**
Site data and time info:
latitude in decimal degrees (positive in northern hemisphere)
longitude in decimal degrees (negative for western hemisphere)
ground surface elevation (m)
time zone in hours relative to GMT/UTC (PST= -8, MST= -7, CST= -6, EST= -5)
daylight savings time (no= 0, yes= 1)
start date to calculate solar position and radiation **start time**
time step (hours):
number of days to calculate solar position and radiation
Bird model parameters:
barometric pressure (mb, sea level = 1013)
ozone thickness of atmosphere (cm, typical 0.05 to 0.4 cm)
water vapor thickness of atmosphere (cm, typical 0.01 to 6.5 cm)
aerosol optical depth at 500 nm (typical 0.02 to 0.5)
aerosol optical depth at 380 nm (typical 0.1 to 0.5)
forward scattering of incoming radiation (typical 0.85)
surface albedo (typical 0.2 for land, 0.25 for vegetation, 0.9 for snow)
Bras model parameter:
Bras atmospheric turbidity factor (2=clear, 5=smoggy, default = 2)
Ryan-Stolzenbach model parameter
Ryan-Stolzenbach atmospheric transmission factor (0.70-0.91, default 0.8)
Cloud attenuation parameters:
Coefficient for cloud correction (default 0.65)
Exponent for cloud adjustment (default 2)
Cloud cover fraction (0-1) [1]: http://ecy.wa.gov/programs/eap/models/solrad.zip