Write waterValues, reservoirLevels, maxpower, inflowPattern and creditModulations data for a given area.
writeHydroValues(
area,
type,
data,
overwrite = TRUE,
opts = antaresRead::simOptions()
)
The area where to add the values.
Type of hydro file, it can be "waterValues", "reservoir", "maxpower", "inflowPattern" or "creditmodulations".
The data must have specific dimension depending on the type of file :
waterValues
: a 365x101 numeric matrix:
marginal values for the stored energy based on date (365 days)
and on the reservoir level (101 round percentage values ranging from
0% to 100%). OR a 3-column matrix with 365x101 rows. In this latter case the 3 columns must
be 'date', 'level' and 'value' (in this order), and the rows must be sorted by:
ascending day, ascending level.
reservoir
: a 365x3 numeric matrix. The columns contains respectively the levels min, avg and max.
maxpower
: a 365x4 numeric matrix.
inflowPattern
: a 365x1 numeric matrix.
creditmodulations
: a 2x101 numeric matrix.
Logical. Overwrite the values if a file already exists.
List of simulation parameters returned by the function
antaresRead::setSimulationPath()
.
For an Antares version >= 860, control of data consistency between mingen.txt
and maxpower_<area>.txt
can be executed.
This control depends on the values you find in hydro.ini
file.