polaris.ocean.heat_content.heat_content

polaris.ocean.heat_content.heat_content(temperature, weights)[source]

Get the vertically integrated ocean heat content per unit area

Parameters:
  • temperature (xarray.DataArray) – Conservative temperature in degC, with an nVertLevels dimension

  • weights (xarray.DataArray) – The mass per unit area of the part of each layer that is being integrated over, in kg m-2, zero outside it

Returns:

da (xarray.DataArray) – The heat content per unit area in J m-2, without an nVertLevels dimension, masked where the column holds no mass within the range