easyclimate.field.ocean._gsw_wrap

Small xarray-friendly wrapper around GSW-Python.

This module provides the xarray-aware subset of GSW-Python used by the ocean field calculations.

Functions

p_from_z(z, lat)

Calculate sea pressure from height using GSW-Python.

SA_from_SP(SP, p, lon, lat)

Calculate Absolute Salinity from Practical Salinity.

CT_from_t(SA, t, p)

Calculate Conservative Temperature from in-situ temperature.

Nsquared(SA, CT, p[, lat, axis])

Calculate buoyancy frequency squared and midpoint pressure.

pot_rho_t_exact(SA, t, p, p_ref)

Calculate potential density from in-situ temperature.

rho(SA, CT, p)

Calculate in-situ density.

Module Contents

easyclimate.field.ocean._gsw_wrap.p_from_z(z, lat)

Calculate sea pressure from height using GSW-Python.

easyclimate.field.ocean._gsw_wrap.SA_from_SP(SP, p, lon, lat)

Calculate Absolute Salinity from Practical Salinity.

easyclimate.field.ocean._gsw_wrap.CT_from_t(SA, t, p)

Calculate Conservative Temperature from in-situ temperature.

easyclimate.field.ocean._gsw_wrap.Nsquared(SA, CT, p, lat=None, axis=0)

Calculate buoyancy frequency squared and midpoint pressure.

easyclimate.field.ocean._gsw_wrap.pot_rho_t_exact(SA, t, p, p_ref)

Calculate potential density from in-situ temperature.

easyclimate.field.ocean._gsw_wrap.rho(SA, CT, p)

Calculate in-situ density.