From 57d4da781cb7242b433f4f6d4235842e1dbff50c Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Wed, 18 Oct 2023 12:12:39 +0200 Subject: [PATCH] Update unit_conversions.jl with comment from #86 --- src/Utils/unit_conversions.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Utils/unit_conversions.jl b/src/Utils/unit_conversions.jl index a8c8752..d564d64 100644 --- a/src/Utils/unit_conversions.jl +++ b/src/Utils/unit_conversions.jl @@ -1,7 +1,8 @@ const year = 365.25 * 24. * 60. * 60. +# Multiplying by 2.13 converts from parts per million CO2 to Gigatonnes of carbon (https://web.archive.org/web/20170118004650/http://cdiac.ornl.gov/pns/convert.html) and then multiplying by `44/12` gets us back to mass of CO2 (12u + 2*16u = 44u compared to 12u for just elementary carbon). GtCO2_to_ppm(GtCO2) = GtCO2 / (2.13 * (44. /12.)) tCO2_to_ppm(tCO2) = GtCO2_to_ppm(tCO2) * 1.e-9 ppm_to_GtCO2(ppm) = ppm * (2.13 * (44. /12.)) -ppm_to_tCO2(ppm) = ppm_to_GtCO2(ppm) * 1.e9 \ No newline at end of file +ppm_to_tCO2(ppm) = ppm_to_GtCO2(ppm) * 1.e9