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 thehectorcal
package. 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-raw
subdirectory.inst/scripts
: Code for running the Bayesian Monte Carlo from Paper 2man
: R help files for the functions in theR
subdir and the datasets in thedata
subdir. These are all accessible through the R help system when thehectorcal
package is installed.tests
: Tests for the subroutines in thehectorcal
package. These are run with thetest_package
function from thetestthat
package; trying tosource
them 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/scripts
as desired. (The latter has additional instructions in a README located therein.)