Package: SticsRFiles 1.5.0

Patrice Lecharpentier

SticsRFiles: Read and Modify 'STICS' Input/Output Files

Manipulating input and output files of the 'STICS' crop model. Files are either 'JavaSTICS' XML files or text files used by the model 'fortran' executable. Most basic functionalities are reading or writing parameter names and values in both XML or text input files, and getting data from output files. Advanced functionalities include XML files generation from XML templates and/or spreadsheets, or text files generation from XML files by using 'xslt' transformation.

Authors:Patrice Lecharpentier [aut, cre], Remi Vezy [aut], Samuel Buis [aut], Michel Giner [aut], Timothee Flutre [ctb], Thomas Robine [ctb], Amine Barkaoui [ctb], Patrick Chabrier [ctb], Julie Constantin [rev], Dominique Ripoche [rev], Marie Launay [rev], Alain Mollier [rev], Christine Le Bas [rev], Joel Leonard [rev]

SticsRFiles_1.5.0.tar.gz
SticsRFiles_1.5.0.zip(r-4.5)SticsRFiles_1.5.0.zip(r-4.4)SticsRFiles_1.5.0.zip(r-4.3)
SticsRFiles_1.5.0.tgz(r-4.4-any)SticsRFiles_1.5.0.tgz(r-4.3-any)
SticsRFiles_1.5.0.tar.gz(r-4.5-noble)SticsRFiles_1.5.0.tar.gz(r-4.4-noble)
SticsRFiles_1.5.0.tgz(r-4.4-emscripten)SticsRFiles_1.5.0.tgz(r-4.3-emscripten)
SticsRFiles.pdf |SticsRFiles.html
SticsRFiles/json (API)
NEWS

# Install 'SticsRFiles' in R:
install.packages('SticsRFiles', repos = c('https://sticsrpacks.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/sticsrpacks/sticsrfiles/issues

On CRAN:

7.98 score 3 stars 88 scripts 338 downloads 67 exports 31 dependencies

Last updated 9 days agofrom:d0649b240f. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 13 2024
R-4.5-winOKNov 13 2024
R-4.5-linuxOKNov 13 2024
R-4.4-winOKNov 13 2024
R-4.4-macOKNov 13 2024
R-4.3-winOKNov 13 2024
R-4.3-macOKNov 13 2024

Exports:compute_date_from_daycompute_day_from_dateconvert_xml2txtdownload_datadownload_usm_csvdownload_usm_xlforce_param_valuesgen_general_param_xmlgen_ini_xmlgen_obsgen_sols_xmlgen_sta_xmlgen_tec_xmlgen_usms_xmlgen_usms_xml2txtgen_varmodget_climate_txtget_cultivars_listget_cultivars_paramget_examples_pathget_general_txtget_ini_txtget_lai_forcingget_obsget_param_infoget_param_txtget_param_xmlget_plant_txtget_plants_nbget_report_resultsget_simget_soil_txtget_soils_listget_station_txtget_stics_versions_compatget_tec_txtget_tmp_txtget_usm_txtget_usms_filesget_usms_listget_var_infoget_varmodis_macis_stics_paramis_stics_varis_unixis_windowsread_params_tableset_general_txtset_ini_txtset_param_txtset_param_xmlset_plant_txtset_soil_txtset_station_txtset_tec_txtset_tmp_txtset_usm_txtupgrade_ini_xmlupgrade_param_gen_xmlupgrade_param_newform_xmlupgrade_plt_xmlupgrade_sols_xmlupgrade_sta_xmlupgrade_tec_xmlupgrade_usms_xmlupgrade_workspace_xml

Dependencies:clicpp11crayoncurldata.tabledplyrfansigenericsgluelifecyclelubridatemagrittrpillarpkgconfigpurrrR6Rcpprlangrstudioapistringistringrtibbletidyrtidyselecttimechangeutf8vctrswithrXMLxml2xslt

Generating STICS text files from XML files

Rendered fromGenerating_Stics_text_files.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-11-13
Started: 2020-01-20

Generating STICS XML files from tabulated data

Rendered fromGenerating_Stics_XML_files.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-11-13
Started: 2019-12-20

Manipulating STICS text files

Rendered fromManipulating_Stics_text_files.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2023-06-23
Started: 2020-01-24

Manipulating STICS XML files

Rendered fromManipulating_Stics_XML_files.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-11-13
Started: 2019-12-20

SticsRFiles

Rendered fromSticsRFiles.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-01-19
Started: 2020-01-16

Upgrading STICS XML files

Rendered fromUpgrading_STICS_XML_files.Rmdusingknitr::rmarkdownon Nov 13 2024.

Last update: 2024-11-13
Started: 2022-07-12

Readme and manuals

Help Manual

Help pageTopics
'[' method for 'cropr_simulation'[.cropr_simulation
Convert day number into datecompute_date_from_day
Convert date into day numbercompute_day_from_date
Transforming a STICS xml file into a text fileconvert_xml2txt
Download example USMsdownload_data
Downloading a CSV usms data file example into a directorydownload_usm_csv
Downloading an Excel usms data file example into a directorydownload_usm_xl
Generates files to force parameters values in STICS simulationsforce_param_values
Generate STICS general parameters xml file(s) from a template file according to a STICS versiongen_general_param_xml
Generate STICS ini xml file(s) from a template or an input filegen_ini_xml
Generating observation data files from a data.framegen_obs
Generate STICS sols xml file from a template or an input filegen_sols_xml
Generate STICS sta xml file(s) from a template or an input filegen_sta_xml
Generate STICS tec xml file(s) from a template or an input filegen_tec_xml
Generate STICS usms xml file from a template or an input filegen_usms_xml
Generating one or several usms directories from a javastics workspace contentgen_usms_xml2txt
Generating a var.mod type filegen_varmod
Read STICS input meteorology fileget_climate_txt
Get the cultivar names for an xml plant file (*_plt.xml)get_cultivars_list
Get the values of cultivar-specific parameters from an xml plant file (*_plt.xml)get_cultivars_param
Getting examples files path attached to a STICS version for a given file typeget_examples_path
Getting LAI forcing for each usmget_lai_forcing
Read STICS observation files (*.obs)get_obs
Finding parameters information using partial search wordsget_param_info
Read STICS input parameters from text filesget_general_txt get_ini_txt get_param_txt get_plant_txt get_soil_txt get_station_txt get_tec_txt get_tmp_txt get_usm_txt
Getting parameter values from xml filesget_param_xml
Getting plants number per usm for all usms or selected from a usm name vectorget_plants_nb
Extracting data from the STICS report fileget_report_results
Load and format STICS daily output file(s)get_sim
Get the soil names for an usms.xml fileget_soils_list
Get the compatible STICS versionsget_stics_versions_compat
Getting existing xml files path list per usm from an usms.xml fileget_usms_files
Getting usms names list for an usms.xml fileget_usms_list
Find STICS output variable names and descriptionget_var_info
Get desired STICS outputsget_varmod
Evaluating if the OS is a Mac OS typeis_mac
Search if a STICS parameter existis_stics_param
Search if a STICS variable existis_stics_var
Evaluating if the OS is a unix like typeis_unix
Evaluating if the OS is a windows typeis_windows
Getting parameters data from tables files (Excel sheet, csv)read_params_table
Set (replace) STICS input file parametersset_general_txt set_ini_txt set_param_txt set_plant_txt set_soil_txt set_station_txt set_tec_txt set_tmp_txt set_usm_txt
Setting parameter values into xml filesset_param_xml
Upgrading _ini.xml file(s) to a newer versionupgrade_ini_xml
Upgrading a param_gen.xml file to a newer versionupgrade_param_gen_xml
Upgrading a param_newform.xml file to a newer versionupgrade_param_newform_xml
Upgrading _plt.xml file(s) to a newer versionupgrade_plt_xml
Upgrading a sols.xml file to a newer versionupgrade_sols_xml
Upgrading _sta.xml file(s) to a newer versionupgrade_sta_xml
Upgrading _tec.xml file(s) to a newer versionupgrade_tec_xml
Upgrading a usms.xml file to a newer versionupgrade_usms_xml
Upgrading XML files of a JavaSTICS workspace directory to a newer STICS version formatupgrade_workspace_xml