API

# LadeGCM.RCP3PDConstant.

Alias for the RCP3PDPathway constructor.

source

# LadeGCM.RCP45Constant.

Alias for the RCP45Pathway constructor.

source

# LadeGCM.RCP6Constant.

Alias for the RCP6Pathway constructor.

source

# LadeGCM.RCP85Constant.

Alias for the RCP85Pathway constructor.

source

# LadeGCM.calculateMethod.

calculate(rcp; [c=constants(), tspan=(1765., 2100.), solve_args...])

Entry point to the module. Will construct all required parameters and solve the DAE.

The tspan here is set to mimic the Lade et al. paper, but the emission parameters in each of the RCP files project out to 2500; meaning the 1765–2500 range is valid here.

Any flags you wish to pass to the solver can be added to the end of the call.

Examples

results_6 = calculate(RCP6);
results_45_grid = calculate(RCP45, reltol=1e-10, abstol=1e-10, saveat=1765:0.1:2100);

source

# LadeGCM.constantsMethod.

constants(<keyword arguments>)

A constructor to generate all required constants for the model, any of which can be overridden via a keyword argument.

Arguments

Examples

Obtaining the default set of constants

julia> constants()
LadeGCM.Constants(589.0, 1875.0, 900.0, 1.8, 4.0, 1.0, 12.5, 0.0423, 13.0, 0.032, 0.1, 0.1, 1.72, 55.0, 0.3)

Override $c_{a0}$ and $KC$ with custom values.

julia> constants(cₐ₀=600.0, KC=0.5)
LadeGCM.Constants(600.0, 1875.0, 900.0, 1.8, 4.0, 1.0, 12.5, 0.0423, 13.0, 0.032, 0.1, 0.1, 1.72, 55.0, 0.5)

source

# LadeGCM.ConstantsType.

Houses all constants for the model. See: constants.

source

# LadeGCM.PathwayType.

Representation of a Representative Concentration Pathway.

source

# LadeGCM.RCP3PDPathwayType.

RCP3PD Representation.

source

# LadeGCM.RCP45PathwayType.

RCP45 Representation.

source

# LadeGCM.RCP6PathwayType.

RCP6 Representation.

source

# LadeGCM.RCP85PathwayType.

RCP85 Representation.

source

# LadeGCM.ResultsType.

Storage for all model output. See results.

source

# LadeGCM.generate_emission_parametersMethod.

(E, LUC) = generate_emission_parameters(rcp)

For a given concentration pathway, generate continuous functions for fossil fuel emissions E(t) and land use emissions LUC(t).

Data comes from files on disk and is linearly interpolated to provide the continuous output.

source

# LadeGCM.load_pathway_dataMethod.

load_pathway_data(rcp)

Loads csv file for a given RCP scenario into a dataframe for processing. The information in these files comes from Meinshausen et al. (2011), which were generated using MAGICC6.

source

# LadeGCM.resultsMethod.

results(sol, c)

Collects all required outputs from the DAE solution.

source