https://github.com/AquaticEcoDynamics/libaed2/blob/0cdfaade1c6f510d9ffa8c4a97d963cdaf09952c/src/aed2_carbon.F90#L299