For a given area, write its data in the hydro.ini file.
Usage
writeIniHydro(area, params, mode = "other", opts = antaresRead::simOptions())
Arguments
- area
The area where to edit the values.
- params
The list data must have specific names and specific types :
follow load
: logical or NULLuse heuristic
: logical or NULLuse water
: logical or NULLhard bounds
: logical or NULLuse leeway
: logical or NULLpower to level
: logical or NULLreservoir
: logical or NULLinter-daily-breakdown
: numeric, integer or NULLintra-daily-modulation
: numeric, integer or NULLinter-monthly-breakdown
: numeric, integer or NULLleeway low
: numeric, integer or NULLleeway up
: numeric, integer or NULLpumping efficiency
: numeric, integer or NULLinitialize reservoir date
: numeric, integer or NULLreservoir capacity
: numeric, integer or NULL
- mode
Execution mode. Useful when you create a new area or remove an existing area to avoid control on hydro data.
- opts
List of simulation parameters returned by the function
antaresRead::setSimulationPath()
.
Warning
For an Antares version >= 860, control of data consistency between mingen.txt
and mod.txt
can be executed.
For an Antares version >= 860, control of data consistency between mingen.txt
and maxpower_<area>.txt
can be executed.
These controls depend on the values you find in hydro.ini
file.
Examples
if (FALSE) { # \dontrun{
opts <- setSimulationPath(studypath, simulation = "input")
createArea("fictive_area")
writeIniHydro(area = "fictive_area"
, params = list("leeway low" = 2.5, "leeway up" = 25))
} # }