writeInputTS | R Documentation |
This function writes input time series in an Antares project.
writeInputTS(
data,
type = c("load", "hydroROR", "hydroSTOR", "mingen", "wind", "solar", "tsLink"),
area = NULL,
link = NULL,
overwrite = TRUE,
opts = antaresRead::simOptions()
)
data |
A 8760*N matrix of hourly time series, except when |
type |
Serie to write: If type == |
area |
The area where to write the input time series. |
link |
Link for which writing transmission capacities time series,
must like |
overwrite |
Logical. Overwrite the values if a file already exists. |
opts |
List of simulation parameters returned by the function
|
An updated list containing various information about the simulation.
You cannot use area
and link
arguments at the same time.
For an Antares version >= 860, control of data consistency between mingen.txt
and mod.txt
can be executed.
These controls depend on the values you find in hydro.ini
file.
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 in mod.txt
If the mod.txt
file is empty or has one column, then there is no dimension constraint
## Not run:
# Write solar time series
writeInputTS(
area = "fictive_area",
type = "solar",
data = matrix(rep(4, 8760*2), nrow = 8760)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.