# physics¶

Various physics-related modules.

 density(p, T[, R]) Calculates gas density by ideal gas law. e_eq_ice_mk(T) Calculate the equilibrium water vapor pressure over ice. e_eq_water_mk(T) Calculate the equilibrium water vapor pressure over water. frequency2wavelength(frequency) Convert frequency to wavelength. frequency2wavenumber(frequency) Convert frequency to wavenumber. fresnel(n1, n2, theta1) Fresnel formulas for surface reflection. mixing_ratio2specific_humidity(w) Convert mass mixing ratio to specific humidity. mixing_ratio2vmr(w) Convert mass mixing ratio to volume mixing ratio. 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. 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. 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. vmr2mixing_ratio(x) Convert volume mixing ratio to mass mixing ratio. 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.

# physics.metrology¶

Functions related to metrology

All functions in this module need sympy.

 express_uncertainty(expr[, aliases, …]) For a sympy expression, calculate uncertainty.