Repository navigation
Releases
Releases · JustinGeoSci/atmoflux
atmoflux v1.2.0
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
atmoflux v1.1.0
atmoflux 1.1.0
Additive feature release. Nothing in the 1.0.0 public API changed, so upgrading
from 1.0.0 requires no code changes.
Highlights
- Three new modules: solar (solar position and radiation geometry), stability
(surface-layer stability diagnostics, all non-iterative), and atmosphere
(standard-atmosphere and barometric helpers). - Additional evaporation methods: Priestley-Taylor, Hargreaves, and equilibrium
evaporation. - Expanded temperature, humidity, wind, radiative, turbulent, and balance
modules with new derived quantities. - New AtmosphericState container in core for bundling near-surface state.
New modules
- solar: day_of_year, solar_declination, hour_angle, solar_zenith_angle,
solar_elevation, sunset_hour_angle, daylight_hours,
extraterrestrial_radiation, clear_sky_radiation - stability: bulk_richardson_number, obukhov_length, stability_parameter,
psi_momentum, psi_heat, stability_class - atmosphere: scale_height, pressure_at_altitude, hypsometric_thickness,
density_altitude, standard_atmosphere
New functions in existing modules
- temperature: wet_bulb_temperature, equivalent_potential_temperature,
moist_adiabatic_lapse_rate - humidity: saturation_vp_ice, specific_humidity_from_dewpoint,
relative_humidity_from_specific_humidity, precipitable_water - wind: wind_components, wind_power_density, roughness_from_canopy,
displacement_from_canopy - radiative: net_longwave_cloud, diffuse_fraction
- turbulent: surface_shear_stress, aerodynamic_resistance
- hydro: equilibrium_evaporation, priestley_taylor, hargreaves
- balance: available_energy, energy_balance_ratio, ground_heat_fraction
- core: AtmosphericState dataclass
Other changes
- Minimum supported NumPy raised to >=1.26 (Python >=3.9 unchanged).
- New shared constants for the solar, evaporation, and standard-atmosphere
additions.
Install
pip install --upgrade atmoflux