Skip to content
Snippets Groups Projects
Commit 9f4a9c77 authored by xo30xoqa's avatar xo30xoqa
Browse files

Updated README

parent 791ff1d8
Branches
Tags
No related merge requests found
# Persefone.jl # Persefone.jl
![Persefone.jl splash screen](docs/persefonejl_logo_v3_splash.png)
**A multidisciplinary mechanistic model of agricultural landscapes and ecosystems in Europe.** **A multidisciplinary mechanistic model of agricultural landscapes and ecosystems in Europe.**
## Description ## Description
[Persefone.jl](https://git.idiv.de/persefone/persefone-model) models agricultural practice and [Persefone.jl](https://persefone-model.eu/) models agricultural practice and
how it impacts animal species at a landscape scale. It includes a farm submodel, a crop how it impacts animal species at a landscape scale. It includes a farm submodel, a crop
growth submodel, and individual-based models of multiple indicator species. Its aim is to growth submodel, and individual-based models of multiple indicator species. Its aim is to
investigate how changes in farm operations (e.g. through policy changes in the CAP) investigate how changes in farm operations (e.g. through policy changes in the CAP)
...@@ -15,8 +17,8 @@ framework. It is currently in the early stages of development. ...@@ -15,8 +17,8 @@ framework. It is currently in the early stages of development.
## Usage ## Usage
*For the full documentation, open `docs/documentation.html` in a browser, or visit *For the full documentation, or visit the [website](https://persefone-model.eu/documentation).
[https://persefone-model.eu/documentation](https://persefone-model.eu/documentation).* To use Persefone.jl with a graphical user interface, see [here](https://git.idiv.de/persefone/persefone-desktop).*
### Installation ### Installation
......
...@@ -28,6 +28,8 @@ function visualisemap(model::AgentBasedModel,date=nothing,landcover=nothing) ...@@ -28,6 +28,8 @@ function visualisemap(model::AgentBasedModel,date=nothing,landcover=nothing)
return f return f
end end
isnothing(date) && (date = inds.Date[end]) isnothing(date) && (date = inds.Date[end])
#XXX other colour schemes: :tab10, :Accent_8, :Dark2_8, :Paired_12, :Set1_9
# https://juliagraphics.github.io/ColorSchemes.jl/stable/catalogue/
update_theme!(palette=(color=cgrad(:seaborn_bright, update_theme!(palette=(color=cgrad(:seaborn_bright,
length(@param(nature.targetspecies))),), length(@param(nature.targetspecies))),),
cycle=[:color]) cycle=[:color])
...@@ -51,8 +53,8 @@ Returns a Makie figure object. ...@@ -51,8 +53,8 @@ Returns a Makie figure object.
""" """
function populationtrends(model::AgentBasedModel) function populationtrends(model::AgentBasedModel)
pops = model.datatables["populations"] pops = model.datatables["populations"]
# create the labels needed for the ticks on the X axis update_theme!(palette=(color=cgrad(:seaborn_bright,
update_theme!(palette=(color=cgrad(:seaborn_bright, length(unique(pops.Species))),), length(@param(nature.targetspecies))),),
cycle=[:color]) cycle=[:color])
f = Figure() f = Figure()
dates = @param(core.startdate):@param(core.enddate) dates = @param(core.startdate):@param(core.enddate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment