This tutorial helps to understand how to use AquaCrop.jl
calibrating crop parameters to real data. This tutorial is part of Persefone project.
We use data from RDWD and
Thüringer Landesamt für Statistik.
This code base is using the Julia Language and DrWatson to make a reproducible scientific project named
CropGrowthTutorial
To (locally) reproduce this project, do the following:
- Download this code base. Notice that raw data are typically not included in the git-history and may need to be downloaded independently.
- Open a Julia console and do:
julia> using Pkg julia> Pkg.add("DrWatson") # install globally, for using `quickactivate` julia> Pkg.activate("path/to/this/project") julia> Pkg.instantiate()
This will install all necessary packages for you to be able to run the scripts and everything should work out of the box, including correctly finding local paths.
You may notice that most scripts start with the commands:
using DrWatson
@quickactivate "CropGrowthTutorial"which auto-activate the project and enable local path handling from DrWatson.
In case you have problems runing the notbooks then run
using IJulia
IJulia.installkernel("Julia CropGrowthTutorial", "--project=$(Base.active_project())")
notebook(;dir=projectdir(), detached=true)then browse to the notebook that you want to run.
Inside a julia sesion you can do the following
using DrWatson
@quickactivate
include(scriptsdir("script_name.jl")) # change script_name.jl with the actual name of the script you want to run
main() # main() is the entry point to run the code on the script
We are adding the raw data to run the simulations in data/exp_raw,
and the result of the crop calibration on data/sims