polaris.ocean.eos.convert_tracer_pair

polaris.ocean.eos.convert_tracer_pair(temperature: DataArray | ndarray | float, salinity: DataArray | ndarray | float, target: str, pressure: DataArray | float, lon: DataArray | ndarray | float, lat: DataArray | ndarray | float) tuple[DataArray, DataArray][source]

Convert a single temperature and salinity pair to the target convention.

This is the array-level counterpart of convert_tracers(), for callers that have tracers in hand rather than in a dataset. See that function for the accuracy of pressure.

Parameters:
Returns:

  • temperature (xarray.DataArray) – The temperature in the target convention.

  • salinity (xarray.DataArray) – The salinity in the target convention.