Getting started
GrasslandTraitSim.jl is a Julia package for simulating plant dynamics in managed grasslands.
Author: Felix Nößler.
The model description and a calibration and validation of the GrasslandTraitSim.jl model to European grassland data sets is published in Geoscientific Model Development (Nößler et al., 2025). Please cite this publication when using the model in your work.
Licence: GPL-3.0
Please contact me if you have any questions about using the model or if you would like to collaborate. You can write me an email or open an issue on Github.
Installation
Launch Julia and type
julia
import Pkg
Pkg.add("GrasslandTraitSim")For the tutorials you will also need several other Julia packages:
julia
Pkg.add(["CairoMakie", "GLMakie", "Unitful", "Statistics", "DimensionalData"])Run simulations
For more details, see the tutorials on preparing inputs and analysing outputs.
julia
import GrasslandTraitSim as sim
input_obj = sim.create_input("HEG01");
p = sim.SimulationParameter();
sol = sim.solve_prob(; input_obj, p);
sol.output.biomass┌ 6210×70 DimArray{Unitful.Quantity{Float64, 𝐌 𝐋^-2, Unitful.FreeUnits{(ha^-1, kg), 𝐌 𝐋^-2, nothing}}, 2} state_biomass ┐
├──────────────────────────────────────────────────────────────────────── dims ┤
↓ time Sampled{Dates.Date} Dates.Date("2006-01-01"):Dates.Day(1):Dates.Date("2023-01-01") ForwardOrdered Regular Points,
→ species Sampled{Int64} 1:70 ForwardOrdered Regular Points
└──────────────────────────────────────────────────────────────────────────────┘
↓ → 1 … 70
2006-01-01 142.0 kg ha^-1 142.0 kg ha^-1
2006-01-02 141.813 kg ha^-1 141.49 kg ha^-1
2006-01-03 141.626 kg ha^-1 140.981 kg ha^-1
2006-01-04 141.44 kg ha^-1 140.475 kg ha^-1
⋮ ⋱ ⋮
2022-12-29 0.011162 kg ha^-1 4.97722 kg ha^-1
2022-12-30 0.01114 kg ha^-1 4.95627 kg ha^-1
2022-12-31 0.011118 kg ha^-1 4.93311 kg ha^-1
2023-01-01 0.0110961 kg ha^-1 … 4.91106 kg ha^-1