TSTool / Command / ShiftTimeByInterval
ShiftTimeByInterval command shifts a time series in time.
This command can be used to perform a simple shift (e.g., to shift hourly data because the
Disaggregate command did not
result in data being set at the desired hours) and to perform simple routing.
The following dialog is used to edit the command and illustrates the syntax of the command.
ShiftTimeByInterval Command Editor (see also the full-size image)
The command syntax is as follows:
||Indicates the list of time series to be processed, one of:
||The time series identifier or alias for the time series to be processed, using the
||The ensemble to be processed, if processing an ensemble. Can be specified using
||Interval,multiplier tuples to apply to the data to perform the shift. All values should be separated by commas. An interval of
||None – at least 1
See the automated tests.
A sample command file to shift a time series from the State of Colorado’s HydroBase database is as follows:
# 08213500 - RIO GRANDE RIVER AT THIRTY MILE BRIDGE NEAR CREEDE 08213500.DWR.Streamflow.Day~HydroBase ShiftTimeByInterval(TSList=AllMatchingTSID,TSID="08213500.DWR.Streamflow.Day",ShiftData="-1,1") 08213500.DWR.Streamflow.Day~HydroBase
The following is the result.
ShiftTimeByInterval Command (see also the full-size image)