Skip to content
Snippets Groups Projects
Commit 9d43f793 authored by Marco Matthies's avatar Marco Matthies
Browse files

Fix units for ALMaSS height

parent 9197dc16
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ using Persefone: ...@@ -11,7 +11,7 @@ using Persefone:
Management, Management,
FarmPlot, FarmPlot,
Length, Length,
m, cm,
SimulationModel, SimulationModel,
fertiliser, fertiliser,
maxtemp, maxtemp,
...@@ -133,7 +133,7 @@ function buildgrowthcurve(data::Vector{CSV.Row}) ...@@ -133,7 +133,7 @@ function buildgrowthcurve(data::Vector{CSV.Row})
append!(GDD[e.growth_phase], e.GDD) append!(GDD[e.growth_phase], e.GDD)
append!(LAItotal[e.growth_phase], e.LAI_total) append!(LAItotal[e.growth_phase], e.LAI_total)
append!(LAIgreen[e.growth_phase], e.LAI_green) 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 end
CropCurveParams(data[1].curve_id, data[1].nutrient_status=="high", CropCurveParams(data[1].curve_id, data[1].nutrient_status=="high",
GDD, LAItotal, LAIgreen, height) GDD, LAItotal, LAIgreen, height)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment