6.0.0 • Published 2 years ago
@adaskothebeast/psychrometrics v6.0.0
Psychrometrics
Description
Psychrometrics formulas
- air density by relative humidity
- air density by specific humidity
- air pressure to altitude (above mean sea level)
- altitude (above mean sea level) to air pressure
- constants
- dew point temperature
- relative to specific humidity
- saturation vapor pressure to temperature
- specific and relative humidity to temperature
- specific to relative humidity
- temperature to maximum specific humidity
- temperature to saturation vapor pressure of water
- temperature to saturation vapor pressure of ice
- temperature to saturation vapor pressure
- wet bulb temperature to specific humidity
- wet bulb temperature
Installation
yarn add @adaskothebeast/psychrometricsor
npm install @adaskothebeast/psychrometrics --saveUsage
It is important to invoke Initializer.initialize before usage function saturationVaporPressureToTemperature. It stores values of function temperatureToSaturationVaporPressure in memory and then uses monotone cubic Hermit interpolation to interpolate value based on stored values.
Initializer.initialize();You have ability to setup decimal point accuracy of stored values (meaningful decimal places). Default is 2 -> $10^{-2}$ = 0.01. Values are stored between -100°C and 100°C - so when decimal point accuracy is 2 then 20k values are stored in memory. Decimal point accuracy can be between 0 and 4.
| Decimal point accuracy | Number of values stored |
|---|---|
| 0 | 200 |
| 1 | 2000 |
| 2 | 20000 |
| 3 | 200000 |
| 4 | 2000000 |