TSTool / Command / SetToMax
Overview
The SetToMax
command sets a time series to contain, for each time step,
the maximum of its own values and those of one or more additional (independent) time series.
This command replaces the legacy SetMax
command.
See also the SetToMin
command.
Command Editor
The following dialog is used to edit the command and illustrates the syntax of the command.
SetToMax
Command Editor (see also the full-size image)
Command Syntax
The command syntax is as follows:
SetToMax(Parameter="Value",...)
Command Parameters
Parameter | Description | Default |
---|---|---|
TSID required |
The time series identifier or alias for the time series to be modified. | None – must be specified. |
IndependentTSList |
Indicates the list of time series to be processed, one of:
|
AllTS (the time series receiving the result will not be included) |
IndependentTSID |
The time series identifier or alias for the time series to be processed, using the * wildcard character to match multiple time series. Can be specified using ${Property} . |
Required if IndependentTSList=*TSID |
IndependentEnsembleID |
The ensemble to be processed, if processing an ensemble. Can be specified using ${Property} . |
Required if IndependentTSList=*EnsembleID |
Examples
See the automated tests.
A sample command file to process data from the State of Colorado’s HydroBase database is as follows:
# 08236000 - ALAMOSA RIVER ABOVE TERRACE RESERVOIR
08236000.DWR.Streamflow.Month~HydroBase
# 08236500 - ALAMOSA RIVER BELOW TERRACE RESERVOIR
08236500.DWR.Streamflow.Month~HydroBase
SetToMax(TSID="08236000.DWR.Streamflow.Month",IndependentTSList=SpecifiedTSID,IndependentTSID="08236500.DWR.Streamflow.Month")
Troubleshooting
See Also
SelectTimeSeries
commandSetToMin
command