Laserfiche WebLink
TSTool Documentation Examples of Use <br />6.2.3 Modeling — Filling Reservoir Targets with a Pattern File (Input = HydroBase, Output = StateMod) <br />The following example illustrates a command file for creating a StateMod reservoir target file, using <br />pattern filling. <br /># eom.commands.TSTool <br /># commands in this file either pull historical EOM content's from the CRDSS database <br /># (i.e. Rifle Gap) or from user - defined *.stm files <br />setOutputPeriod (10/1908,09/2005) <br />setOutputYearType(Water) <br />setPatternE'ile( "..ADiversions \fill2005.pat ") <br /># GREEN MOUNTAIN RESERVOIR <br />363543... MONTH - StateMod- 363543.stm <br /># UPPER BLUE RESERVOIR (ConHoosier) <br /># Data from HydroBase is used to better represent actual opperations of the reservoir in the <br />cm2005 update <br /># rather than setting the contents to its maximum as in previous model versions. <br />363570. DWR .ResMeasStorage.Day - HydroBase <br />IS ConHoosier363570 = newEndOfMonthTSFromDayTS( 363570 .DWR.ResMeasStorage.Day,16) <br />free( TSID=" 363570.DWR.ResMeasStorage.Day ") <br />fillPattern( TSList = LastMatchingTSID, TSID= "ConHoosier363570 ",PatternlD= "09037500 ") <br />setConstant( TSID=" ConHoosier363570 ",ConstantValue 0,SetEnd= "03/1962 ") <br />fillInterpolate (ConHoosier363570,0,Linear) <br /># CLINTON GULCH RESERVOIR <br /># Data from HydroBase is used to better represent actual opperations of the reservoir in the <br />cm2005 update <br /># rather than setting the contents to its maximum as in previous model versions. <br />363575. DWR .ResMeasStorage.Day - HydroBase <br />IS ClintonGulch363575 = newEndOfMonthTSFromDayTS( 363575 .DWR.ResMeasStorage.Day,16) <br />free( TSID=" 363575.DWR.ResMeasStorage.Day ") <br />fillInterpolate (ClintonGulch363575,0,Linear,10 /1992,9/2004) <br />fillPattern( TSList = LastMatchingTSID, TSID = "ClintonGulch363575 ",PatternlD = "09037500 ") <br />setConstant( TSID =" ClintonGulch363575 ",ConstantValue 0,SetEnd= "03/1977 ") <br />fillInterpolate (ClintonGulch363575,0,Linear) <br /># DILLON RESERVOIR <br />364512... MONTH - StateMod- 364512.stm <br /># WOLCOTT RESERVOIR <br />373639... MONTH - StateMod- zero.stm <br />similar commands for other reservoirs omitted... <br /># Fill remaining missing data with historical averages <br />fillHistMonthAverage (TSList= AllTS) <br />writeStateMod( TSList= Al1TS, OutputFile="..A statemod \cm2005.eom ",Preci'sion =0) <br />From Colorado_1_2007 CDSS data set <br />85 Examples - 5 <br />