This function writes input time series in an Antares project.
Usage
writeInputTS(
data,
type = c("load", "hydroROR", "hydroSTOR", "mingen", "wind", "solar", "tsLink"),
area = NULL,
link = NULL,
overwrite = TRUE,
opts = antaresRead::simOptions()
)
Arguments
- data
A 8760*N matrix of hourly time series, except when
type
is"hydroSTOR"
. In this latter case"hydroSTOR"
data must have either be 365 rows (Antares v7) or 12 rows (v6 and earlier).- type
Serie to write:
"load"
,"hydroROR"
,"hydroSTOR"
,"wind"
,"solar"
,"tsLink"
or"mingen"
.If type ==
"mingen"
,"antaresVersion"
should be >= 860. Refers to note section below.- area
The area where to write the input time series.
- link
Link for which writing transmission capacities time series, must like
"area01%area02"
or"area01 - area02"
orc("area01", "area02")
.- overwrite
Logical. Overwrite the values if a file already exists.
- opts
List of simulation parameters returned by the function
antaresRead::setSimulationPath()
Note
For an Antares version >= 860, the mingen.txt
file is created.
The mingen.txt
file can be created under two conditions:
The number of columns must be equal to either
1
or the number inmod.txt
If the
mod.txt
file is empty or has one column, then there is no dimension constraint