TSTool / Command / InsertTimeSeriesIntoEnsemble
InsertTimeSeriesIntoEnsemble command inserts 1+ time series into an ensemble.
The time series must have the same interval and data units as the time series in the ensemble.
For example, use the command to insert scenario time series into an ensemble.
The following dialog is used to edit the command and illustrates the syntax of the command.
InsertTimeSeriesIntoEnsemble 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 from which to retrieve time series, if inserting time series from an ensemble.||Required when
|The identifier for the ensemble that is receiving the time series.||None – must be specified.|
See the automated tests.
A sample command file to create an ensemble from user-defined time series is as follows:
# Test inserting time series into an ensemble from year interval time series NewPatternTimeSeries(Alias="ts1",NewTSID="ts1..Flow.Year",SetStart="1960",SetEnd="2000",Units="ACFT",PatternValues="1,2,5,8,,20") NewPatternTimeSeries(Alias="ts2",NewTSID="ts2..Flow.Year",SetStart="1950",SetEnd="2005",Units="ACFT",PatternValues="2,4,10,16,,40") NewEnsemble(TSList=AllTS,NewEnsembleID="TestEnsemble",NewEnsembleName="Test Ensemble") InsertTimeSeriesIntoEnsemble(Ensemble2=”TestEnsemble”)