york-dewpoint
Dew point, frost point, ppmV and pressure dew point conversions for industrial gases and compressed air, with the ISO 8573-1:2010 water class. Python and JavaScript, no dependencies, MIT licence.
Maintained by YORK Instrument – Middle East, manufacturer of chilled mirror hygrometers, dew point transmitters and oxygen analyzers. The same equations run the online dew point calculator, the dew point to ppm table and the ISO 8573-1 air class checker.
Install
pip install york-dewpoint # Python 3.9+
npm install york-dewpoint # Node 18+ / browsers (ES module)
Or copy src/york_dewpoint/core.py or js/york-dewpoint.mjs into your project: each is one file.
Quick start
from york_dewpoint import ATM_BAR, dew_point_to_ppmv, ppmv_to_dew_point, convert_dew_point, iso8573_water_class
dew_point_to_ppmv(-40) # 126.7 ppmV (frost point -40 °C at 1 atm)
ppmv_to_dew_point(127) # -40.0 °C
p = 7 + ATM_BAR # 7 bar(g) in bar(a)
dew_point_to_ppmv(-40, p) # 16.0 ppmV (-40 °C pressure dew point)
convert_dew_point(-40, p) # -57.0 °C same air expanded to 1 atm
iso8573_water_class(-40) # 2
import { ATM_BAR, dewPointToPpmv, convertDewPoint, iso8573WaterClass } from 'york-dewpoint';
dewPointToPpmv(-40); // 126.7
convertDewPoint(-40, 7 + ATM_BAR); // -57.0
iso8573WaterClass(-40); // 2
Method
Saturation vapour pressure – Sonntag (1990), T in kelvin, result in Pa:
- over ice (used below 0 °C, i.e. frost point):
ln e = −6024.5282/T + 24.7219404 + 1.0613868×10⁻²·T − 1.3198825×10⁻⁵·T² − 0.49382577·ln T(hPa, ×100 for Pa) - over liquid water (0 °C and above, or
over_water=True):ln e = −6096.9385/T + 21.2409642 − 2.711193×10⁻²·T + 1.673952×10⁻⁵·T² + 2.433502·ln T
Water content – ideal-gas mole fraction: ppmV = 10⁶ · f · e(Td) / P, with P the absolute pressure at which the dew point is measured.
Enhancement factor f – 1 by default. Set enhancement=True for the Buck (1996) factor, which matters at elevated pressure (about +4 % at 8 bar(a), −40 °C).
Pressure dew point – the water mole fraction does not change when gas is compressed or expanded, so a dew point at one pressure is converted by computing ppmV at that pressure and solving for the dew point at the other.
ISO 8573-1:2010 water classes – maximum pressure dew point: class 1 ≤ −70 °C, 2 ≤ −40 °C, 3 ≤ −20 °C, 4 ≤ +3 °C, 5 ≤ +7 °C, 6 ≤ +10 °C. Classes 7–9 are defined by liquid water content and are not covered.
Frost point or dew point below 0 °C?
Below 0 °C this library returns the frost point (equilibrium over ice), which is what a chilled mirror hygrometer reads once the mirror deposit has frozen. Some polymer and metal-oxide sensors and some specifications report the dew point over supercooled water, which is lower for the same gas: 1,019 ppmV is −20.0 °C frost point but −22.3 °C dew point over water. Pass over_water=True ({ overWater: true } in JS) when you need the latter.
Reference tables
Dew point at 1 atm (1.01325 bar(a)), ppmV, and the pressure dew point of the same gas at 7 bar(g):
| Dew point at 1 atm (°C) | ppmV | Pressure dew point at 7 bar(g) (°C) |
|---|---|---|
| −100 | 0.0138 | −89.2 |
| −90 | 0.0954 | −77.9 |
| −80 | 0.54 | −66.6 |
| −70 | 2.58 | −55.1 |
| −60 | 10.7 | −43.5 |
| −50 | 38.8 | −31.9 |
| −40 | 126.7 | −20.2 |
| −30 | 375 | −8.4 |
| −20 | 1,019 | +4.1 |
| −10 | 2,565 | +17.9 |
| 0 | 6,032 | +32.3 |
ISO 8573-1 water classes for compressed air at 7 bar(g):
| ISO 8573-1 class | Max pressure dew point | ppmV | Same air at 1 atm (°C) |
|---|---|---|---|
| 1 | −70 °C | 0.33 | −83.0 |
| 2 | −40 °C | 16.0 | −57.0 |
| 3 | −20 °C | 129 | −39.9 |
| 4 | +3 °C | 946 | −20.8 |
| 5 | +7 °C | 1,250 | −17.8 |
| 6 | +10 °C | 1,530 | −15.7 |
The full table from −100 to +20 °C, with a two-way calculator, is on yorkinstrument.ae/guides/dew-point-to-ppm.
Worked examples
- Desiccant dryer outlet. A portable hygrometer at atmospheric pressure reads −57 °C on air sampled from a 7 bar(g) line.
convert_dew_point(-57, ATM_BAR, 7 + ATM_BAR)gives −40.0 °C pressure dew point: ISO 8573-1 class 2. - Natural gas at line pressure. A −60 °C dew point at 50 bar(g) is
dew_point_to_ppmv(-60, 50 + ATM_BAR)≈ 0.21 ppmV. (For hydrocarbon gas at pipeline pressure, use a gas-specific method such as ISO 18453; see the natural gas water content calculator.) - Instrument sample conditioning. A sensor rated to 4 bar(g) sees a −40 °C dew point after a pressure reducer on a 50 bar(a) gas. Converted back to line conditions,
convert_dew_point(-40, 4 + ATM_BAR, 50)≈ −17.7 °C.
Limits
- Ideal-gas mole fraction; adequate for air, nitrogen and other permanent gases up to tens of bar. For natural gas, CO₂ or SF₆ at high pressure use the gas-specific tools linked above.
- Valid from −150 to +100 °C. Results are engineering estimates, not a substitute for a calibrated measurement.
Related
- How to calibrate a dew point sensor
- Chilled mirror vs TDLAS vs metal-oxide moisture analyzers
- Single-file offline calculators
References
- Sonntag, D. (1990). Important new values of the physical constants of 1986, vapour pressure formulations based on the ITS-90, and psychrometer formulae. Z. Meteorol. 40, 340–344.
- Buck, A. L. (1996). Buck Research CR-1A User's Manual, Appendix 1 (enhancement factors).
- ISO 8573-1:2010 Compressed air – Part 1: Contaminants and purity classes.
Licence
MIT. Questions or errors: open an issue, or email dubai@yorkinstrument.com.
Metadata
Release files for york-dewpoint 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| york_dewpoint-0.1.0.tar.gz | 7.8 kB | With provenance | Details for york_dewpoint-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| york_dewpoint-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for york_dewpoint-0.1.0-py3-none-any.whl |
Total release size: 15.2 kB
Release files / york_dewpoint-0.1.0.tar.gz
| Download URL | york_dewpoint-0.1.0.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
92936420dd786f02457fc453a82af4fe3d1676669c11d0deb1e6d083d09d376b
|
|
BLAKE2b-256 checksum How to use checksums |
bf1e68eb2d7e441fbce13548968d7c200bcce425da2907b2409a91ce8933e36d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / york_dewpoint-0.1.0-py3-none-any.whl
| Download URL | york_dewpoint-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73650dd1edd8e83d2620a60c8b52e390cfdcff07306a441c83d2be418ad3436b
|
|
BLAKE2b-256 checksum How to use checksums |
92c99f9894125b87e24c81d75a21f1b12042baadf4012f916a46b3f16f796845
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for york-dewpoint 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for york_dewpoint-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.