Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emissions to concentrations Q (unit_conversions.jl) #86

Closed
declann opened this issue Aug 29, 2023 · 2 comments
Closed

emissions to concentrations Q (unit_conversions.jl) #86

declann opened this issue Aug 29, 2023 · 2 comments

Comments

@declann
Copy link

declann commented Aug 29, 2023

Hi guys!

Really like toying with ClimateMARGO and the informative notebooks and learning about a simple but useful climate model! Great work 🥳
Will like to release a simple climate model also, or recreate MARGO or do some exercises with it in a modelling langage (calculang) I develop - will reach out if I get results!


In my model I got stuck on method/assumptions to convert emissions to concentrations. I can see how MARGO does this in unit_conversions.jl:

const year = 365.25 * 24. * 60. * 60.

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

Can you please provide any info or sources for the parameters/approach used here? (i.e. factor 2.13 * (44. /12.)~=7.81)

Thanks!
Declan

@hdrake
Copy link
Collaborator

hdrake commented Aug 29, 2023

Hi @declann, that's great! Multiplying by 2.13 converts from parts per million CO2 to Gigatonnes of carbon and then multiplying by 44/12 gets us back to mass of CO2 (12u + 2*16u = 44u compared to 12u for just elementary carbon).

@declann
Copy link
Author

declann commented Aug 31, 2023

Perfect, exactly what I needed, thanks very much Henri !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants