wrf.slp¶
-
wrf.
slp
(height, tkel, pres, qv, meta=True, units='hPa')¶ Return the sea level pressure.
This is the raw computational algorithm and does not extract any variables from WRF output files. Use
wrf.getvar()
to both extract and compute diagnostic variables.Parameters: - height (
xarray.DataArray
ornumpy.ndarray
) – Geopotential height in [m] with the rightmost dimensions being bottom_top x south_north x west_east. - tkel (
xarray.DataArray
ornumpy.ndarray
) – Temperature in [K] with same dimensionality as height. - pres (
xarray.DataArray
ornumpy.ndarray
) –Full pressure (perturbation + base state pressure) in [Pa] with the same dimensionality as height.
Note
This variable must be supplied as a
xarray.DataArray
in order to copy the dimension names to the output. Otherwise, default names will be used. - qv (
xarray.DataArray
ornumpy.ndarray
) – Water vapor mixing ratio in [kg/kg] with the same dimensionality as height. - meta (
bool
) – Set to False to disable metadata and returnnumpy.ndarray
instead ofxarray.DataArray
. Default is True. - units (
str
) – The desired units. Refer to thegetvar()
product table for a list of available units for ‘slp’. Default is ‘hPa’.
Warning
The input arrays must not contain any missing/fill values or
numpy.nan
values.Returns: The sea level pressure. If xarray is enabled and the meta parameter is True, then the result will be an xarray.DataArray
object. Otherwise, the result will be anumpy.ndarray
object with no metadata.Return type: xarray.DataArray
ornumpy.ndarray
See also
wrf.getvar()
,wrf.temp()
,wrf.tk()
- height (