xoa.sigma.atmosphere_sigma_coordinate
- xoa.sigma.atmosphere_sigma_coordinate(sig, ps, ptop, dask='parallelized', cache=None)[source]
Convert from sigma [0, 1] to pressure in an atmopsheric model
Note
This function is dask-aware since it delegates the core computation to
xarray.apply_ufunc()
.- Source:
- Formula:
- \[p = p_{top} + \sigma * (p_{surf}-p_{top})\]
- Sigma standard name:
atmosphere_sigma_coordinate
- Formula terms:
sigma: var1 ps: var2 ptop: var3
- Parameters:
sig (xarray.DataArray) – Sigma coordinates range from 0 to 1 (\(\sigma\) |
sigma
)ps (xarray.DataArray) – Surface air pressure (\(p_{surf}\) |
ps
)ptop (xarray.DataArray) – Air pressure at top of model (\(p_{top}\) |
ptop
)
- Returns:
xarray.DataArray – Air pressure in Pa (\(p\))