profile_midlat_summer#

pycraf.atm.profile_midlat_summer(height)[source]#

Mid latitude summer height profiles according to ITU-R P.835-5.

Valid for geographic latitudes \(22^\circ < \vert \phi\vert < 45^\circ\).

Parameters:
heightQuantity

Height above ground [km]

Returns:
temperatureQuantity

Temperature [K]

pressureQuantity

Total pressure [hPa]

rho_waterQuantity

Water vapor density [g / m**3]

pressure_waterQuantity

Water vapor partial pressure [hPa]

ref_indexQuantity

Refractive index [dimless]

humidity_waterQuantity

Relative humidity if water vapor was in form of liquid water [%]

humidity_iceQuantity

Relative humidity if water vapor was in form of ice [%]

Notes

For convenience, derived quantities like water density/pressure and refraction indices are also returned.

The return value is actually a namedtuple, so it is possible to do the following:

>>> import numpy as np
>>> from pycraf import atm
>>> from astropy import units as u

>>> heights = np.linspace(0, 80, 9) * u.km
>>> aprof = atm.profile_midlat_summer(heights)
>>> for height, temp, press in zip(
...         heights, aprof.temperature, aprof.pressure
...         ):
...     print('{:2.0f}: {:5.1f} {:6.1f}'.format(height, temp, press))
 0 km: 295.0 K 1012.8 hPa
10 km: 235.7 K  283.7 hPa
20 km: 220.5 K   65.2 hPa
30 km: 239.1 K   15.0 hPa
40 km: 259.4 K    3.4 hPa
50 km: 275.0 K    0.8 hPa
60 km: 264.6 K    0.2 hPa
70 km: 239.5 K    0.0 hPa
80 km: 175.0 K    0.0 hPa