File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2436mngt_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
You can’t perform that action at this time.
0 commit comments