Closed pvictor closed 6 years ago
Hi, I want to read the hydro storage time series for a given area, but the timestamp between Antares and readInputTS is not the same :
readInputTS
readInputTS(hydroStorage = "fr" , timeStep = "monthly")
readInputTS(hydroStorage = "fr" , timeStep = "monthly") # 'antaresDataTable' object with dimension 24 x 6 # area timeId time month tsId hydroStorage # 1: fr 1 2017-07 JUL 1 1 # 2: fr 2 2017-08 AUG 1 2 # 3: fr 3 2017-09 SEP 1 3 # 4: fr 4 2017-10 OCT 1 4 # 5: fr 5 2017-11 NOV 1 5 # 6: fr 6 2017-12 DEC 1 6 # 7: fr 7 2018-01 JAN 1 7 # 8: fr 8 2018-02 FEB 1 8 # 9: fr 9 2018-03 MAR 1 9 # 10: fr 10 2018-04 APR 1 10 # 11: fr 11 2018-05 MAY 1 11 # 12: fr 12 2018-06 JUN 1 12 # 13: fr 1 2017-07 JUL 2 13 # 14: fr 2 2017-08 AUG 2 14 # 15: fr 3 2017-09 SEP 2 15 # 16: fr 4 2017-10 OCT 2 16 # 17: fr 5 2017-11 NOV 2 17 # 18: fr 6 2017-12 DEC 2 18 # 19: fr 7 2018-01 JAN 2 19 # 20: fr 8 2018-02 FEB 2 20 # 21: fr 9 2018-03 MAR 2 21 # 22: fr 10 2018-04 APR 2 22 # 23: fr 11 2018-05 MAY 2 23 # 24: fr 12 2018-06 JUN 2 24 # area timeId time month tsId hydroStorage
A solution could be to copy and modify getOption("antares")$start before calling .importInputTS here
getOption("antares")$start
.importInputTS
Or sort timeRange by months num here if inputTimeStep is monthly.
timeRange
inputTimeStep
Victor
@pvictor , I think now it's ok on develop. I will send the new version to CRAN in may. You can test if you want...
done
Hi, I want to read the hydro storage time series for a given area, but the timestamp between Antares and
readInputTS
is not the same :readInputTS(hydroStorage = "fr" , timeStep = "monthly")
: data are sorted from July to June (my study starts in July), e.g. :A solution could be to copy and modify
getOption("antares")$start
before calling.importInputTS
hereOr sort
timeRange
by months num here ifinputTimeStep
is monthly.Victor