| createFBTS | R Documentation |
This function defines for each studied day in an Antares study the most
representative typical flow-based day, and finally creates daily time series.
To establish this correlation, the inputs of the function must include
a probability matrix (calculated for each set of typical days with the package
fbClust) and the path to the Antares study to provide flow-based
domains with. The probability matrix
will be used to compute a weighted draw among the possible typical days.
createFBTS(
opts,
probabilityMatrix,
multiplier,
firstDay,
seed = 123456,
silent = FALSE,
outputPath = getwd(),
calendar = system.file("calendar/calendar.txt", package = "fbAntares")
)
opts |
|
probabilityMatrix |
|
multiplier |
|
firstDay |
|
seed |
|
silent |
|
outputPath |
|
calendar |
|
## Not run:
library(antaresRead)
library(data.table)
matProb <- readRDS(system.file("testdata/MatProb.rds", package = "fbAntares"))
# Set the probabilityMatrix names and coefficients
matProb <- setNamesProbabilityMatrix(matProb, c("FR_load", "DE_wind", "DE_solar"),
c("fr@load", "de@wind", "de@solar"))
multiplier <- data.frame(variable = c("fr@load", "de@wind", "de@solar"),
coef = c(1, 71900, 61900))
# Set the path to Antares study inputs
# Change it for the path of a study you have on your computer
opts <- antaresRead::setSimulationPath("../../Pour Julien/blop/MT_base_nucM2_2023/",
simulation = 17)
# calendar
# first day identified based on the input data of the
# Antares study designated by opts
firstDay <- identifyFirstDay(opts)
# calendar in a csv file with all dates of one year and their classes
calendar <- system.file("calendar/calendar.txt", package = "fbAntares")
# Generate flow-based time series
ts <- createFBTS(opts = opts, probabilityMatrix = matProb, multiplier = multiplier,
calendar = calendar, firstDay = firstDay, outputPath = getwd())
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.