physics

Various physics-related modules.

density(p, T[, R])

Calculates gas density by ideal gas law.

e_eq_ice_mk(T)

Calculate the equilibrium vapor pressure of water over ice.

e_eq_water_mk(T)

Calculate the equilibrium vapor pressure of water over liquid water.

e_eq_mixed_mk(T)

Return equilibrium pressure of water with respect to the mixed-phase.

frequency2wavelength(frequency)

Convert frequency to wavelength.

frequency2wavenumber(frequency)

Convert frequency to wavenumber.

fresnel(n1, n2, theta1)

Fresnel formulas for surface reflection.

integrate_water_vapor(vmr, p[, T, z, axis])

Calculate the integrated water vapor (IWV).

mixing_ratio2specific_humidity(w)

Convert mass mixing ratio to specific humidity.

mixing_ratio2vmr(w)

Convert mass mixing ratio to volume mixing ratio.

moist_lapse_rate(p, T[, e_eq])

Calculate the moist-adiabatic temperature lapse rate.

planck(f, T)

Calculate black body radiation for given frequency and temperature.

planck_wavelength(l, T)

Calculate black body radiation for given wavelength and temperature.

planck_wavenumber(n, T)

Calculate black body radiation for given wavenumber and temperature.

pressure2height(p[, T])

Convert pressure to height based on the hydrostatic equilibrium.

radiance2planckTb(f, r)

Convert spectral radiance to Planck brightness temperture.

radiance2rayleighjeansTb(f, r)

Convert spectral radiance to Rayleight-Jeans brightness temperture.

rayleighjeans(f, T)

Calculates the Rayleigh-Jeans approximation of the Planck function.

rayleighjeans_wavelength(l, T)

Calculates the Rayleigh-Jeans approximation of the Planck function.

relative_humidity2vmr(RH, p, T[, e_eq])

Convert relative humidity into water vapor VMR.

snell(n1, n2, theta1)

Calculates the angle of the transmitted wave, according to Snell's law.

specific_humidity2mixing_ratio(q)

Convert specific humidity to mass mixing ratio.

specific_humidity2vmr(q)

Convert specific humidity to volume mixing ratio.

standard_atmosphere(z[, coordinates])

International Standard Atmosphere (ISA).

stefan_boltzmann_law(T)

Compute Stefan Boltzmann law for given temperature

vmr2mixing_ratio(x)

Convert volume mixing ratio to mass mixing ratio.

vmr2relative_humidity(vmr, p, T[, e_eq])

Convert water vapor VMR into relative humidity.

vmr2specific_humidity(x)

Convert volume mixing ratio to specific humidity.

wavelength2frequency(wavelength)

Convert wavelength to frequency.

wavelength2wavenumber(wavelength)

Convert wavelength to wavenumber.

wavenumber2frequency(wavenumber)

Convert wavenumber to frequency.

wavenumber2wavelength(wavenumber)

Convert wavenumber to wavelength.

zeeman_splitting(gu, gl, mu, ml[, H])

Zeeman splitting

zeeman_strength(ju, jl, mu, ml)

Zeeman line strength

zeeman_transitions(ju, jl, type)

Find possible mu and ml for valid ju and jl for a given transistion polarization

physics.metrology

Functions related to metrology

All functions in this module need sympy.

express_uncertainty(expr[, aliases, ...])

For a sympy expression, calculate uncertainty.

recursive_args(expr[, stop_at, partial_at])

Get arguments for expr, stopping at certain types