if (FALSE) {
# Write simulation one by one
setSimulationPath("C:/Users/MyUser/Mystudy", 1)
writeAntaresH5(path="PATH_TO_YOUR_STUDY")
# Write all simulations
setSimulationPath("C:/Users/MyUser/Mystudy")
writeAntaresH5(path="PATH_TO_YOUR_STUDY", writeAllSimulations = TRUE)
# Choose timestep to write
setSimulationPath("C:/Users/MyUser/Mystudy", 1)
writeAntaresH5(path="PATH_TO_YOUR_STUDY", timeSteps = "hourly")
# Write with additionnal information
writeAntaresH5(path="PATH_TO_YOUR_STUDY", timeSteps = "hourly",
misc = TRUE, thermalAvailabilities = TRUE,
hydroStorage = TRUE, hydroStorageMaxPower = TRUE, reserve = TRUE,
linkCapacity = TRUE, mustRun = TRUE, thermalModulation = TRUE)
# Write all data with a shorcut
writeAntaresH5(path="PATH_TO_YOUR_STUDY", allData = TRUE)
#Remove virtuals areas
writeAntaresH5(path="PATH_TO_YOUR_STUDY", timeSteps = "hourly", overwrite = TRUE,
writeMcAll = FALSE, removeVirtualAreas = TRUE,
storageFlexibility = "psp in-2",
production = NULL, reassignCosts =FALSE, newCols = TRUE)
#Remove virtuals areas more than one call
writeAntaresH5(
path="PATH_TO_YOUR_STUDY",
timeSteps = "hourly",
overwrite = TRUE,
writeMcAll = FALSE,
removeVirtualAreas = TRUE,
storageFlexibility = list("psp out", "psp in-2"),
production = list(NULL, NULL),
reassignCosts = list(TRUE, FALSE),
newCols = list(FALSE, TRUE)
)
}
Run the code above in your browser using DataLab