From 9d43f7934c102fd6d2537d9c90d2075c07a8f8de Mon Sep 17 00:00:00 2001 From: Marco Matthies <71844+marcom@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:17:57 +0200 Subject: [PATCH] Fix units for ALMaSS height --- src/crop/almass.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crop/almass.jl b/src/crop/almass.jl index fde9c96..a306348 100644 --- a/src/crop/almass.jl +++ b/src/crop/almass.jl @@ -11,7 +11,7 @@ using Persefone: Management, FarmPlot, Length, - m, + cm, SimulationModel, fertiliser, maxtemp, @@ -133,7 +133,7 @@ function buildgrowthcurve(data::Vector{CSV.Row}) append!(GDD[e.growth_phase], e.GDD) append!(LAItotal[e.growth_phase], e.LAI_total) append!(LAIgreen[e.growth_phase], e.LAI_green) - append!(height[e.growth_phase], e.height * m) # TODO: assumes original data is in units of `m` + append!(height[e.growth_phase], e.height * cm) # assumes `height` is in units of `cm` end CropCurveParams(data[1].curve_id, data[1].nutrient_status=="high", GDD, LAItotal, LAIgreen, height) -- GitLab