read_param.Rd
Read STICS model input parameters from a pre-existing STICS input
file. Generally used after calling set_usm()
.
read_param(dirpath = getwd(), param = NULL, ...) read_ini(filepath = "ficini.txt") read_general(filepath = "tempopar.sti") read_tmp(filepath = "tempoparv6.sti") read_plant(filepath = "ficplt1.txt", variety = NULL, max_variety = 30) read_tec( filepath = "fictec1.txt", several_fert = T, several_thin = T, is_pasture = F ) read_soil(filepath = "param.sol") read_station(filepath = "station.txt") read_usm(filepath = "new_travail.usm") read_out_var(filepath = "var.mod")
dirpath | Directory path |
---|---|
param | Parameter name. Optional, if not provided, the function return an object with all parameters |
... | Helper to pass arguments from |
filepath | File path |
variety | Integer (index of the variety) or character (name of the variety) to filter by variety. |
max_variety | Maximum number of variety authorized (this is only for STICS compatibility) |
several_fert | Is there several fertilization in the USM ? |
several_thin | Is there several thinning in the USM ? |
is_pasture | Is the plant a pasture ? |
A list of all parameters:
Initialization parameters
General parameters
Technical parameters
Plant parameters
Soil parameters
Station parameters
The output variables the user require from STICS
Users generally only use read_param
that identify parameters for
other functions and call them.
if (FALSE) { # Read the interrow distance parameter: library(sticRs) read_param(param='interrang') }