View source: R/writeHydroValues.R
writeHydroValues | R Documentation |
Write waterValues, reservoirLevels, maxpower, inflowPattern and creditModulations data for a given area.
writeHydroValues(
area,
type,
data,
overwrite = TRUE,
opts = antaresRead::simOptions()
)
area |
The area where to add the values. |
type |
Type of hydro file, it can be "waterValues", "reservoir", "maxpower", "inflowPattern" or "creditmodulations". |
data |
The data must have specific dimension depending on the type of file :
|
overwrite |
Logical. Overwrite the values if a file already exists. |
opts |
List of simulation parameters returned by the function
|
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.
## Not run:
writeHydroValues("fictive_area", type = "inflowPattern", data = matrix(rep(0, 365*1), nrow = 365))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.