Laserfiche WebLink
TSTool Documentation Examples of Use <br />6.2.3 Modeling – Filling Reservoir End of Month Co ntents with a Pattern File (Input=HydroBase, <br />Output=StateMod) <br /> <br />The following example illustrates a command file for creating a StateMod reservoir historical end of <br />month file, using pattern filling. <br /> <br /># eom.commands.TSTool <br /># <br /># commands in this file either pull historical EOM contents from the CRDSS database <br /># (i.e. Rifle Gap) or from user-defined *.stm files <br /># <br />SetOutputPeriod(OutputStart="10/1908",OutputEnd="09/2005") <br />SetOutputYearType(OutputYearType=Water) <br />ReadPatternFile(PatternFile="..\Diversions\fill2005.pat") <br /># <br /># GREEN MOUNTAIN RESERVOIR <br />363543...MONTH~StateMod~363543.stm <br /># <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 />NewEndOfMonthTSFromDayTS(DayTSID="363570.DWR.ResMeasStorage.Day",Alias="ConHoosier363570", <br /> Bracket=16) <br />Free(TSList=LastMatchingTSID,TSID="363570.DWR.ResMeasStorage.Day") <br />FillPattern(TSList=LastMatchingTSID,TSID="ConHoosier363570",PatternID="09037500") <br />SetConstant(TSList=LastMatchingTSID,TSID="ConHoosier363570",ConstantValue=0,SetEnd="03/1962") <br />FillInterpolate(TSList=LastMatchingTSID,TSID="ConHoosier363570",MaxIntervals=0, <br /> Transformation=None) <br /># <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 />NewEndOfMonthTSFromDayTS(DayTSID="363575.DWR.ResMeasStorage.Day",Alias="ClintonGulch363575", <br /> Bracket=16) <br />Free(TSList=LastMatchingTSID,TSID="363575.DWR.ResMeasStorage.Day") <br />FillInterpolate(TSList=AllMatchingTSID,TSID="ClintonGulch363575",MaxIntervals=0) <br />FillPattern(TSList=LastMatchingTSID,TSID="ClintonGulch363575",PatternID="09037500") <br />SetConstant(TSList=LastMatchingTSID,TSID="ClintonGulch363575",ConstantValue=0, <br /> SetEnd="03/1977") <br />FillInterpolate(TSList=LastMatchingTSID,TSID="ClintonGulch363575",MaxIntervals=0, <br /> Transformation=None) <br /># <br /># DILLON RESERVOIR <br />364512...MONTH~StateMod~364512.stm <br /># <br /># WOLCOTT RESERVOIR <br />373639...MONTH~StateMod~zero.stm <br />… similar commands for other reservoirs omitted… <br /># <br /># Fill remaining missing data with historical averages <br />FillHistMonthAverage(TSList=AllTS) <br /># <br />WriteStateMod(TSList=AllTS,OutputFile="..\statemod\cm2005.eom",Precision=0) <br /> <br />Example_Reservoir_EOM.TSTool - From Colorado_1_2007 CDSS data set <br /> <br /> Examples - 5 85