Generate PAR file for driving simulation
Inputs
Injection of external parameters has following specifications:
- injected data can be a fixed value or a time series (with step or ramp interpolation)
 - location of injected data can be defined:
- in the XML project (identified by its number
 - by a location code
 - several locations can be used for a data to be injected
 
 
Each injected data has a number which can be of interest if the location is specified by the XML project.
File format
Specification of par file format is here: https://sic.g-eau.fr/Format-du-fichier-par
Specification
A simulation should handle a list of injected data.
An injected data is composed with:
- a list of locations (eventually empty)
 - a fixed value or a time series (2-columns data.frame)
 
Implementation
Object SicInputs: a list of SicInput
Object SicInput: a list containing:
- an item 
locationswhich is a list ofSicLocationobjects which are lists with keys "Bf", "Sn", etc filled with numbers and a key "Car" with a character string - an item 
valuewhich is either a 1-length numeric or a data.frame with an attribute "interpolated" which is TRUE for ramp and FALSE for step.