This repository contains the code and data supporting the two papers in the Hector calibration series:
- "Calibrating simple climate models to individual Earth system models: Lessons learned from calibrating Hector"
- "Calibrating the Hector simple climate model II: Bayesian calibration of Hector parameters"
The repository comprises the following subdirectories:
R: Code for thehectorcalpackage. This comprises all of the utility subroutines used by the analysis and calibration code.analysis: Code for doing analysis on the results of the calibration runs. This includes various experiments, plus the code for producing figures and tables from the two papers.data-raw: Raw data and code for processing it.data: R package data. All of this data is created as the output of code in thedata-rawsubdirectory.inst/scripts: Code for running the Bayesian Monte Carlo from Paper 2man: R help files for the functions in theRsubdir and the datasets in thedatasubdir. These are all accessible through the R help system when thehectorcalpackage is installed.tests: Tests for the subroutines in thehectorcalpackage. These are run with thetest_packagefunction from thetestthatpackage; trying tosourcethem in an R session won't work.
To reproduce the results in the papers:
- Clone this repository.
- From the top directory, install the package by running
R CMD INSTALL . - Run the code from
data-raw,analysis, orinst/scriptsas desired. (The latter has additional instructions in a README located therein.)