xoa.sigma.ocean_sigma_coordinate#
- xoa.sigma.ocean_sigma_coordinate(sig, ssh, bathy, dask='parallelized', cache=None, ref='datum')[source]#
Convert from sigma [-1, 0] to z heights (positive up) in an ocean model
Note
This function is dask-aware since it delegates the core computation to
xarray.apply_ufunc().- Source:
- Formula:
- \[z = \eta + \sigma * (\eta+h)\]
- Sigma standard name:
ocean_sigma_coordinate- Formula terms:
sigma: var1 eta: var2 depth: var3
- Parameters:
sig (xarray.DataArray) – Sigma coordinates ranging from -1 to 0 (\(\sigma\) |
sigma)ssh (xarray.DataArray) – Sea surface height (\(\eta\) |
eta)bathy (xarray.DataArray) – Positive sea floor depth (\(h\) |
depth)ref ({"datum", "surface"}) – Reference of the heights: the fixed datum of the formula, where the sea surface height is zero so that the free surface is at
ssh, or the free surface, where the heights are zero (sshis subtracted).
- Returns:
xarray.DataArray – Height in m, negative in the ocean and positive up (\(z\))