Repository navigation
atmoflux 1.2.0
Additive feature release. Every 1.1.0 call returns the same result in 1.2.0, so
upgrading from 1.1.0 requires no code changes. The minimum supported Python is
now 3.10 (see Other changes).
Highlights
- Selectable saturation vapor pressure formula: a new method argument accepts
"tetens" (default, unchanged results) or "alduchov" (Alduchov & Eskridge,
1996). Alduchov keeps error within about 0.4% from -40 to 50 °C over water and
-80 to 0 °C over ice, where Tetens error grows in the cold (about -2.5% at
-40 °C over water). Between 0 and 40 °C the two agree to within about 0.2%. - Moisture and evaporation additions: saturation specific humidity, moist air
density, and Dalton mass-transfer evaporation. - Particle Reynolds number for checking that Stokes settling velocities are
valid. - Accurate type annotations for array inputs and a py.typed marker, so type
checkers recognize atmoflux's array support.
New functions in existing modules
- humidity: saturation_specific_humidity
- turbulent: moist_air_density
- hydro: dalton_evaporation
- aerosols: particle_reynolds_number
New method argument ("tetens" default, or "alduchov")
- humidity: saturation_vp, actual_vp, saturation_vp_slope, saturation_vp_ice,
relative_humidity, vapor_pressure_deficit, specific_humidity_from_dewpoint,
relative_humidity_from_specific_humidity, saturation_specific_humidity - temperature: dewpoint_temperature, dewpoint_from_avp
- hydro: penman_evaporation, penman_monteith, equilibrium_evaporation,
priestley_taylor (slope term). potential_evapotranspiration remains
Tetens-only, as the FAO-56 standard specifies.
Fixes
- wind.log_wind_profile now raises OutOfRangeError, as documented, instead of
ZeroDivisionError when roughness is zero.
Other changes
- Minimum supported Python raised to >=3.10 (Python 3.9 reached end of life in
October 2025). Users on Python 3.9 will continue to receive atmoflux 1.1.0. - Type annotations corrected to reflect array support via shared FloatArray
and IntArray aliases in core. No runtime changes. - New py.typed marker (PEP 561).
- New shared constants for the Alduchov & Eskridge water and ice coefficients
and the Tetens ice coefficients. - dewpoint_temperature and dewpoint_from_avp now read their coefficients from
constants instead of inline values; results are unchanged.
Install
pip install --upgrade atmoflux