polaris.ocean.eos.teos10.compute_specvol
- polaris.ocean.eos.teos10.compute_specvol(sa: DataArray, ct: DataArray, p: DataArray) DataArray[source]
Compute specific volume from co-located p, CT and SA.
Notes
- This function converts inputs to NumPy arrays and calls
gsw.specvoldirectly for performance. Inputs must fit in memory.
- Any parallelization should be handled by the caller (e.g., splitting
over outer dimensions and calling this function per chunk).
- Parameters:
sa (xarray.DataArray) – Absolute Salinity at the same points as p and ct.
ct (xarray.DataArray) – Conservative Temperature at the same points as p and sa.
p (xarray.DataArray) – Sea pressure in Pascals (Pa) at the same points as ct and sa.
- Returns:
xarray.DataArray – Specific volume with the same dims/coords as ct and sa (m^3/kg).