I have subsurface temperature data for up to 300 m oceanic depth (at varying depth intervals). I want to calculate the ocean heat content for 0-300 m.
The formula is:
OHC = seawater density * Specific heat capacity * integrating the temperature over this depth.
But, the depth is not at the same interval. So I have read that there is a need to use weighted temperature. I want to ask two questions.
- Why do we have to use weighted temperature?
- Is there any module or code available to do this? So that it will help me to compute the OHC?