Getting Started

For Users

Installation

First, download and install Julia by following the instructions at https://julialang.org/downloads/. Then, you can install the ClimaLand package by doing:

julia> ] # Enter Package REPL mode
Pkg> add ClimaLand # Install ClimaLand
Pkg> # Go back to Julia REPL mode
Julia> using ClimaLand

A typical land simulation employs several different parameterizations to model the various land-surface processes. Let's start our journet into ClimaLand by looking at one of those.

Parameterization

Let's start with a basic example: compute canopy gross photosynthesis (GPP).

julia> using ClimaLand
julia> @doc ClimaLand.Canopy.compute_GPP compute_GPP(An::FT, K::FT, LAI::FT, Ω::FT) where {FT} Computes the total canopy photosynthesis (GPP) as a function of the total net carbon assimilation (An), the extinction coefficient (K), leaf area index (LAI) and the clumping index (Ω).

As you can see, our parameterization for GPP is located in the Canopy Module, and requires four arguments. For example, with An = 5 µmol m⁻² s⁻¹, K = 0.5, LAI = 3 m² m⁻², Ω = 0.7, you can compute GPP like below:

julia> import ClimaLand.Canopy as canopy
julia> canopy.compute_GPP(5.0, 0.5, 3.0, 0.7)9.28660358412635

Et voilà!

Note that our package ParamViz allows interactive visualisation of our parameterizations. See examples in the standalone models pages.

ClimaLand structure

ClimaLand contains multiple modules. They are listed below:

julia> using MethodAnalysis, ClimaLand
julia> child_modules(ClimaLand)13-element Vector{Module}: ClimaLand ClimaLand.Artifacts ClimaLand.Bucket ClimaLand.Canopy ClimaLand.Canopy.PlantHydraulics ClimaLand.Diagnostics ClimaLand.Domains ClimaLand.Parameters ClimaLand.Pond ClimaLand.Snow ClimaLand.Soil ClimaLand.Soil.Biogeochemistry ClimaLand.Soil.Runoff

To explore what modules, functions and types are exported in a particular module, you can use About.jl:

julia> using ClimaLand
julia> using About
julia> about(ClimaLand.Soil.Biogeochemistry)Module ClimaLand.Soil.Biogeochemistry Re-exports 13 names (from ClimaLand): • Biogeochemistry • AtmosCO2StateBC • SoilCO2ModelParameters • co2_diffusivity • MicrobeProduction • SoilCO2StateBC • microbe_source • PrescribedMet • SoilDrivers • volumetric_air_content • SoilCO2FluxBC • AbstractSoilDriver • SoilCO2Model

To see the documentation about a particular module, function or type, you can use ? to go in help mode in the REPL, or @doc as in Parameterization above.