GJT Web Cat - STATELINE

Hydrologic Indicators
SDUW4 HIICAZZ (stateline dam )
SDUW4 HIICBZZ (stateline dam )
SDUW4 HIICCZZ (stateline dam )
SDUW4 HIICDZZ (stateline dam )
SDUW4 HIICEZZ (stateline dam )
SDUW4 HIICGZZ (stateline dam )

Reservoir Level Data
SDUW4 HPIRGZZ (stateline dam )

Flow Data
SFRW4 HGIRGZZ (ef smiths fork - robertson, nr )

Precipitation Data
HWAU1 PCIRGZZ (hewinta )

Variables

Rules
	BEGIN OPERATION RESERV         SENSOR = SDUW4,HIICAZZ
		IF SDUW4,HPIRGZZ <= VALRES41 then score = 1
		IF SDUW4,HPIRGZZ >  VALRES41 then score = 2
		IF SDUW4,HPIRGZZ >  VALRES42 then score = 3
		IF SDUW4,HPIRGZZ >  VALRES43 then score = 4
		IF SDUW4,HPIRGZZ >  VALRES44 then score = 5
	END OPERATION
	BEGIN OPERATION PRECIP           SENSOR = SDUW4,HIICBZZ
		If rate(HWAU1,PCIRGZZ) <  RATE41 or rate(HWAU1,PCIRGZZ) <  RATE43 or
		   rate(HWAU1,PCIRGZZ) <  RATE45 then score = 1
		If rate(HWAU1,PCIRGZZ) >= RATE41 or rate(HWAU1,PCIRGZZ) >= RATE43 or
		   rate(HWAU1,PCIRGZZ) >= RATE45 then score = 2
		If rate(HWAU1,PCIRGZZ) >  RATE42 or rate(HWAU1,PCIRGZZ) >  RATE44 or
		   rate(HWAU1,PCIRGZZ) >  RATE46 then score = 3
	END OPERATION
	BEGIN OPERATION INFLOW          SENSOR = SDUW4,HIICCZZ
		If rate(SDUW4,HPIRGZZ) <  RATE47  then score= 1
		If rate(SDUW4,HPIRGZZ) >= RATE47  then score= 2
		If rate(SDUW4,HPIRGZZ) >= RATE48  then score= 3
	END OPERATION
	BEGIN OPERATION RESERV&INFLOW	SENSOR = SDUW4,HIICDZZ
               IF SDUW4,HIICAZZ = one                    then score= 1
               IF SDUW4,HIICAZZ = two   AND SDUW4,HIICCZZ = one   then score= 2
               IF SDUW4,HIICAZZ = two   AND SDUW4,HIICCZZ = two   then score= 2
               IF SDUW4,HIICAZZ = two   AND SDUW4,HIICCZZ = three then score= 3
               IF SDUW4,HIICAZZ = three AND SDUW4,HIICCZZ = one   then score= 3
               IF SDUW4,HIICAZZ = three AND SDUW4,HIICCZZ = two   then score= 3
               IF SDUW4,HIICAZZ = three AND SDUW4,HIICCZZ = three then score= 4 
               IF SDUW4,HIICAZZ = four  AND SDUW4,HIICCZZ = one   then score= 4
               IF SDUW4,HIICAZZ = four  AND SDUW4,HIICCZZ = two   then score= 4
               IF SDUW4,HIICAZZ = four  AND SDUW4,HIICCZZ = three then score= 5
               IF SDUW4,HIICAZZ = five                   then score= 5                        
	END OPERATION 
	BEGIN OPERATION RESERV&PRECIP   SENSOR = SDUW4,HIICEZZ
               IF SDUW4,HIICAZZ = one                    then score= 1
               IF SDUW4,HIICAZZ = two   AND SDUW4,HIICBZZ = one   then score= 2
               IF SDUW4,HIICAZZ = two   AND SDUW4,HIICBZZ = two   then score= 3
               IF SDUW4,HIICAZZ = two   AND SDUW4,HIICBZZ = three then score= 3
               IF SDUW4,HIICAZZ = three AND SDUW4,HIICBZZ = one   then score= 3
               IF SDUW4,HIICAZZ = three AND SDUW4,HIICBZZ = two   then score= 4
               IF SDUW4,HIICAZZ = three AND SDUW4,HIICBZZ = three then score= 4 
               IF SDUW4,HIICAZZ = four  AND SDUW4,HIICBZZ = one   then score= 4
               IF SDUW4,HIICAZZ = four  AND SDUW4,HIICBZZ = two   then score= 5
               IF SDUW4,HIICAZZ = four  AND SDUW4,HIICBZZ = three then score= 5 
               IF SDUW4,HIICAZZ = five                   then score= 5         
	END OPERATION
	BEGIN OPERATION RESERV_REL      SENSOR = SDUW4,HIICGZZ
		IF SFRW4,HGIRGZZ <  VALREL41 then score = 1
		IF SFRW4,HGIRGZZ >= VALREL41 then score = 2
		IF SFRW4,HGIRGZZ >= VALREL42 then score = 3
		IF SFRW4,HGIRGZZ >= VALREL43 then score = 4
		IF SFRW4,HGIRGZZ >= VALREL44 then score = 5
	END OPERATION