How much methane removal is required to avoid overshooting 1.5°C?
收藏资源简介:
This repository reproduces the results from Smith & Mathison, submitted. Code is available from GitHub at https://github.com/chrisroadmap/methane-mitigation. The Zenodo version includes the results directory, which are datasets that are too large for GitHub. Reproduction steps Set up conda repository This assumes that you are using anaconda and python. Currently, fair and fair-calibrate appear to be most stable with python versions 3.8, 3.9, 3.10 and 3.11. Others may work, but these ones are tested. 1. Create your environment: $ conda env create -f environment.yml 2. If you want to make nice version-control friendly notebooks, which will remove all output and data upon committing, run $ nbstripout --install Run and reproduce results 1. Fire up jupyter notebook $ jupyter notebook 2. Inside notebook, navigate to notebooks directory. Run the notebooks in this order: - adaptive-removal-1.4.0.ipynb: this does the data crunching. It will likely take between 6 and 24 hours, depending on your machine. - zec-1.4.0.ipynb: calculate ZEC and carbon cycle metrics - analyse-1.4.0.ipynb: produce the results and plots reported in the paper
本仓库复现了Smith与Mathison已投稿论文的研究成果。代码托管于GitHub,地址为https://github.com/chrisroadmap/methane-mitigation。Zenodo版本包含了结果目录,其中的数据集体积过大,无法上传至GitHub。 #### 复现步骤 ##### 配置Conda环境 本流程假设你已安装并使用Anaconda与Python。目前`fair`与`fair-calibrate`在Python 3.8、3.9、3.10及3.11版本下运行最为稳定,其他Python版本或可正常运行,但尚未经过官方测试。 1. 创建运行环境: $ conda env create -f environment.yml 2. 若需创建适配版本控制的Jupyter Notebook(提交代码时将自动移除所有输出与数据),请执行以下命令: $ nbstripout --install #### 运行与复现研究结果 1. 启动Jupyter Notebook: $ jupyter notebook 2. 在Notebook中导航至`notebooks`目录,按以下顺序运行脚本: - `adaptive-removal-1.4.0.ipynb`:执行数据处理工作,根据硬件性能差异,运行耗时约6至24小时。 - `zec-1.4.0.ipynb`:计算ZEC与碳循环指标 - `analyse-1.4.0.ipynb`:生成论文中报告的研究结果与图表。



