Crop submodel

Eventually, Persephone will include a full-blown crop-growth model (an adaptation of AquaCrop, created by the FAO). At the moment, we are only working with a very basic mock-up.

crops.jl

This includes the types and functions needed for all crop growth model, which are also referenced by the other submodels.

Persephone.FarmPlotType
FarmPlot

This represents one field, i.e. a collection of pixels with the same management. This is the spatial unit with which the crop growth model and the farm model work.

source
Persephone.cropheightMethod
cropheight(model, position)

Return the height of the crop at this position, or nothing if there is no crop here (utility wrapper).

source
Persephone.croptypeMethod
croptype(model, position)

Return the crop at this position, or nothing if there is no crop here (utility wrapper).

source