Skip to content

Commit 5ab4357

Browse files
demo update
1 parent 5f9016a commit 5ab4357

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

inst/examples/workflow_experiment_ochsenwasen.R

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,31 @@
1313
##
1414
## -----------------------------------------------------------------------------------
1515

16+
###----- Install/load package --------------------------------------------------------
17+
18+
# Install devtools if you haven't already
19+
install.packages("devtools")
20+
# Install the package
21+
devtools::install_github("leroy-bml/csmTools")
22+
# Load the package
23+
library(csmTools)
24+
1625
###----- Crop management/manually input data (template) ------------------------------
1726
## -----------------------------------------------------------------------------------
1827
## This section demonstrates the import of ICASA-compliant field (meta)data via the
1928
## manual csmTemplate
2029
##
2130
## -----------------------------------------------------------------------------------
2231

32+
template_path <-
33+
"C:/Users/bmlle/Documents/0_DATA/TUM/HEF/FAIRagro/2-UseCases/UC6_IntegratedModeling/Workflows/csmTools/inst/extdata/template_icasa_vba.xlsm"
34+
2335
# Extract template data
2436
mngt_obs_icasa <- get_field_data(
25-
path = "./inst/extdata/template_icasa_vba.xlsm",
37+
path = template_path,
2638
exp_id = "HWOC2501",
2739
headers = "long",
28-
keep_null_events = FALSE,
29-
output_path = "./archive/tmp_expdata_icasa.json"
40+
keep_null_events = FALSE
3041
)
3142

3243
# Retrieve cultivation season temporal coverage to identify weather requirements

0 commit comments

Comments
 (0)