calc¶
This module contains a variety of meteorological calculations.
Dry Thermodynamics¶
| 
 | Calculate the pressure at a certain height above another pressure level. | 
| 
 | Calculate the height at a certain pressure above another height. | 
| 
 | Calculate density. | 
| 
 | Calculate the temperature at a level assuming only dry processes. | 
| 
 | Calculate the dry static energy of parcels. | 
| 
 | Compute height from a given geopotential. | 
| 
 | Compute geopotential for a given height. | 
| 
 | Convert height data to pressures using the U.S. | 
| 
 | Calculate pressure-weighted mean of an arbitrary variable through a layer. | 
| 
 | Calculate the potential temperature. | 
| 
 | Convert pressure data to heights using the U.S. | 
| 
 | Calculate pressure from sigma values. | 
| 
 | Calculate the static stability within a vertical profile. | 
| Calculate the temperature from a given potential temperature. | |
| 
 | Calculate the thickness of a layer via the hypsometric equation. | 
Moist Thermodynamics¶
| 
 | Calculate the ambient dewpoint given the vapor pressure. | 
| Calculate the dewpoint from specific humidity, temperature, and pressure. | |
| 
 | Calculate the ambient dewpoint given air temperature and relative humidity. | 
| 
 | Calculate equivalent potential temperature. | 
| 
 | Calculate the mixing ratio of a gas. | 
| Calculate the mixing ratio from relative humidity, temperature, and pressure. | |
| Calculate the mixing ratio from specific humidity. | |
| 
 | Calculate the temperature at a level assuming liquid saturation processes. | 
| 
 | Calculate the moist static energy of parcels. | 
| 
 | Calculate precipitable water through the depth of a sounding. | 
| 
 | Calculate the vapor pressure with wet bulb and dry bulb temperatures. | 
| 
 | Calculate the relative humidity. | 
| Calculate the relative humidity from mixing ratio, temperature, and pressure. | |
| Calculate the relative humidity from specific humidity, temperature, and pressure. | |
| Calculate the relative humidity with wet bulb and dry bulb temperatures. | |
| Calculate saturation equivalent potential temperature. | |
| 
 | Calculate the saturation mixing ratio of water vapor. | 
| 
 | Calculate the saturation water vapor (partial) pressure. | 
| 
 | Calculate the specific humidity from the mixing ratio. | 
| Calculate the thickness of a layer given pressure, temperature and relative humidity. | |
| 
 | Calculate water vapor (partial) pressure. | 
| 
 | Calculate w from omega assuming hydrostatic conditions. | 
| 
 | Calculate omega from w assuming hydrostatic conditions. | 
| 
 | Calculate virtual potential temperature. | 
| 
 | Calculate virtual temperature. | 
| 
 | Calculate the wet-bulb temperature using Normand’s rule. | 
Soundings¶
| 
 | Calculate bulk shear through a layer. | 
| 
 | Calculate the Bunkers right-mover and left-mover storm motions and sfc-6km mean flow. | 
| 
 | Calculate CAPE and CIN. | 
| 
 | Calculate the critical angle. | 
| 
 | Calculate the equilibrium level. | 
| 
 | Calculate the lifted condensation level (LCL) using from the starting point. | 
| 
 | Calculate the level of free convection (LFC). | 
| 
 | Mix variable(s) over a layer, yielding a mass-weighted average. | 
| 
 | Calculate the properties of a parcel mixed from a layer. | 
| 
 | Calculate most unstable CAPE/CIN. | 
| 
 | Determine the most unstable parcel in a layer. | 
| 
 | Calculate the profile a parcel takes through the atmosphere. | 
| 
 | Calculate the profile a parcel takes through the atmosphere. | 
| 
 | Calculate the significant tornado parameter (fixed layer). | 
| 
 | Calculate storm relative helicity. | 
| 
 | Calculate the supercell composite parameter. | 
| 
 | Calculate surface-based CAPE and CIN. | 
Dynamic/Kinematic¶
| 
 | Calculate cross-sectional absolute momentum (also called pseudoangular momentum). | 
| 
 | Calculate the absolute vorticity of the horizontal wind. | 
| 
 | Calculate the advection of a scalar field by the wind. | 
| 
 | Calculate the ageostrophic wind given from the heights or geopotential. | 
| 
 | Calculate the coriolis parameter at each point. | 
| 
 | Calculate the horizontal divergence of the horizontal wind. | 
| 
 | Calculate the Exner function. | 
| 
 | Calculate the 2D kinematic frontogenesis of a temperature field. | 
| 
 | Calculate the geostrophic wind given from the heights or geopotential. | 
| 
 | Calculate the inertial advective wind. | 
| 
 | Compute the kinematic flux from two time series. | 
| 
 | Compute the Montgomery Streamfunction on isentropic surfaces. | 
| Calculate the baroclinic potential vorticity. | |
| 
 | Calculate the barotropic (Rossby) potential vorticity. | 
| 
 | Calculate Q-vector at a given pressure level using the u, v winds and temperature. | 
| 
 | Calculate the shearing deformation of the horizontal wind. | 
| 
 | Calculate the stretching deformation of the horizontal wind. | 
| 
 | Calculate the horizontal total deformation of the horizontal wind. | 
| 
 | Calculate the vertical vorticity of the horizontal wind. | 
| 
 | Calculate the U, V wind vector components from the speed and direction. | 
| 
 | Compute the wind direction from u and v-components. | 
| 
 | Compute the wind speed from u and v-components. | 
Boundary Layer/Turbulence¶
| 
 | Calculate the Brunt-Vaisala frequency. | 
| 
 | Calculate the square of the Brunt-Vaisala frequency. | 
| 
 | Calculate the Brunt-Vaisala period. | 
| 
 | Compute the friction velocity from the time series of velocity components. | 
| 
 | Compute turbulence kinetic energy. | 
Mathematical Functions¶
| 
 | Obtain the tangential and normal components of a cross-section of a vector field. | 
| 
 | Calculate the first derivative of a grid of values. | 
| 
 | Calculate the gradient of a grid of values. | 
| Calculate the horizontal deltas between grid points of a DataArray. | |
| 
 | Calculate the laplacian of a grid of values. | 
| 
 | Calculate the delta between grid points that are in a latitude/longitude format. | 
| 
 | Obtain the normal component of a cross-section of a vector field. | 
| 
 | Calculate the second derivative of a grid of values. | 
| 
 | Obtain the tangential component of a cross-section of a vector field. | 
| 
 | Calculate the unit tanget and unit normal vectors from a cross-section. | 
Apparent Temperature¶
| 
 | Calculate the current apparent temperature. | 
| 
 | Calculate the Heat Index from the current temperature and relative humidity. | 
| 
 | Calculate the Wind Chill Temperature Index (WCTI). | 
Other¶
| 
 | Find the indices surrounding the values within arr along axis. | 
| 
 | Calculate the best estimate of intersection. | 
| 
 | Return an atmospheric layer from upper air data with the requested bottom and depth. | 
| 
 | Return an atmospheric layer from upper air data with the requested bottom and depth. | 
| 
 | Compute the perturbation from the mean of a time series. | 
| 
 | Interpolate data in isobaric coordinates to isentropic coordinates. | 
| 
 | Determine the index of the point just before two lines with common x values. | 
| 
 | Calculate the meteorological angle from directional text. | 
| 
 | Return a mask to reduce the density of points in irregularly-spaced data. | 
| 
 | Return one-dimensional nearest-neighbor indexes based on user-specified centers. | 
| 
 | Filter with normal distribution of weights. | 
| 
 | Filter with normal distribution of weights. | 
Deprecated¶
Do not use these functions in new code, please see their documentation for their replacements.
| 
 | Calculate the U, V wind vector components from the speed and direction. | 
| 
 | Compute the wind direction from u and v-components. | 
| 
 | Compute the wind speed from u and v-components. | 
| 
 | Interpolates data with any shape over a specified axis. | 
| 
 | Interpolate NaN values in y. | 
| 
 | Calculate the distance between grid points that are in a latitude/longitude format. | 
| 
 | Interpolates data with logarithmic x-scale over a specified axis. |