dewpoint

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinTemperature = 173.0
	MaxTemperature = 678.0
)

Temperature constants

View Source
const (
	N1  = 0.11670521452767e4
	N6  = 0.14915108613530e2
	N2  = -0.72421316703206e6
	N7  = -0.48232657361591e4
	N3  = -0.17073846940092e2
	N8  = 0.40511340542057e6
	N4  = 0.12020824702470e5
	N9  = -0.23855557567849
	N5  = -0.32325550322333e7
	N10 = 0.65017534844798e3
)

Water saturation vapor pressure coefficients

View Source
const (
	K0 = -5.8666426e3
	K1 = 2.232870244e1
	K2 = 1.39387003e-2
	K3 = -3.4262402e-5
	K4 = 2.7040955e-8
	K5 = 6.7063522e-1
)

Ice saturation vapor pressure coefficients

View Source
const (
	MaxCount = 10
)

Variables

This section is empty.

Functions

func Calculate

func Calculate(temp float64, unit temperature.Unit, humidity float64) (float64, error)

Calculate calculates dew point from the given temperature and relative humidity (percent)

func Solve

func Solve(f func(float64) float64, y, x0 float64) (float64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL