GJT Web Cat - JOES VALLEY

Hydrologic Indicators
JVDU1 HIICAZZ (joes valley dam )
JVDU1 HIICBZZ (joes valley dam )
JVDU1 HIICCZZ (joes valley dam )
JVDU1 HIICGZZ (joes valley dam )
JVDU1 HIICDZZ (joes valley dam )
JVDU1 HIICEZZ (joes valley dam )

Reservoir Level Data
JVDU1 HPIRGZZ (joes valley dam )

Flow Data

Precipitation Data
JVDU1 PCIRGZZ (joes valley dam )
GLUU1 PCIRGZZ (grassy lake nr ephraim )
JVAU1 PCIRGZZ (joes valley )

Variables
# define values .... value name can be arbitrary
# (keyword: IN/FT/HR/MIN/SEC is required)
	VALRES21 = 6988.0 ft
	VALRES22 = 6990.0 ft
	VALRES23 = 6993.5 ft
	VALRES24 = 6996.0 ft
	VALREL21 = 1100 ft
	VALREL22 = 1800 ft
 	VALREL23 = 3000 ft
	VALREL24 = 4500 ft
        RATE21 = 1.0 in per 120 min
        RATE22 = 2.5 in per 120 min
        RATE23 = 2.0 in per 180 min
        RATE24 = 4.0 in per 180 min
        RATE25 = 3.0 in per 360 min
        RATE26 = 6.0 in per 360 min
	RATE27   = 0.50 ft per 120 min
	RATE28   = 1.00 ft per 120 min

Rules
	BEGIN OPERATION RESERV          SENSOR = JVDU1,HIICAZZ
		IF JVDU1,HPIRGZZ <= VALRES21 then score = 1
		IF JVDU1,HPIRGZZ >  VALRES21 then score = 2
		IF JVDU1,HPIRGZZ >  VALRES22 then score = 3
		IF JVDU1,HPIRGZZ >  VALRES23 then score = 4
		IF JVDU1,HPIRGZZ >  VALRES24 then score = 5
	END OPERATION
	BEGIN OPERATION PRECIP           SENSOR = JVDU1,HIICBZZ
		If rate(JVDU1,PCIRGZZ) <  RATE21 or rate(GLUU1,PCIRGZZ) <  RATE21 or
		   rate(JVAU1,PCIRGZZ) <  RATE21 or  
		   rate(JVDU1,PCIRGZZ) <  RATE23 or rate(GLUU1,PCIRGZZ) <  RATE23 or
		   rate(JVAU1,PCIRGZZ) <  RATE23 or 
		   rate(JVDU1,PCIRGZZ) <  RATE25 or rate(GLUU1,PCIRGZZ) <  RATE25 or
		   rate(JVAU1,PCIRGZZ) <  RATE25 then score=1
		If rate(JVDU1,PCIRGZZ) >= RATE21 or rate(GLUU1,PCIRGZZ) >= RATE21 or
		   rate(JVAU1,PCIRGZZ) >= RATE21 or  
		   rate(JVDU1,PCIRGZZ) >= RATE23 or rate(GLUU1,PCIRGZZ) >= RATE23 or
		   rate(JVAU1,PCIRGZZ) >= RATE23 or 
		   rate(JVDU1,PCIRGZZ) >= RATE25 or rate(GLUU1,PCIRGZZ) >= RATE25 or
		   rate(JVAU1,PCIRGZZ) >= RATE25 then score=2
		If rate(JVDU1,PCIRGZZ) >  RATE22 or rate(GLUU1,PCIRGZZ) >  RATE22 or
		   rate(JVAU1,PCIRGZZ) >  RATE22 or  
		   rate(JVDU1,PCIRGZZ) >  RATE24 or rate(GLUU1,PCIRGZZ) >  RATE24 or
		   rate(JVAU1,PCIRGZZ) >  RATE24 or 
		   rate(JVDU1,PCIRGZZ) >  RATE26 or rate(GLUU1,PCIRGZZ) >  RATE26 or
		   rate(JVAU1,PCIRGZZ) >  RATE26 then score=3
	END OPERATION
	BEGIN OPERATION INFLOW          SENSOR = JVDU1,HIICCZZ
		If rate(JVDU1,HPIRGZZ) <  RATE27  then score= 1
		If rate(JVDU1,HPIRGZZ) >= RATE27  then score= 2
		If rate(JVDU1,HPIRGZZ) >= RATE28  then score= 3
	END OPERATION
	BEGIN OPERATION RESERV_REL      SENSOR = JVDU1,HIICGZZ
		IF JVDU1,QTIRRZZ <  VALREL21 then score = 1
		IF JVDU1,QTIRRZZ >= VALREL21 then score = 2
		IF JVDU1,QTIRRZZ >= VALREL22 then score = 3
		IF JVDU1,QTIRRZZ >= VALREL23 then score = 4
		IF JVDU1,QTIRRZZ >= VALREL24 then score = 5
	END OPERATION
	BEGIN OPERATION RESERV&INFLOW    SENSOR = JVDU1,HIICDZZ
		If JVDU1,HIICAZZ = one                     then score = 1
		If JVDU1,HIICAZZ = two   AND JVDU1,HIICCZZ = one    then score = 2
		If JVDU1,HIICAZZ = two   AND JVDU1,HIICCZZ = two    then score = 2
		If JVDU1,HIICAZZ = two   AND JVDU1,HIICCZZ = three  then score = 3
		If JVDU1,HIICAZZ = three AND JVDU1,HIICCZZ = one    then score = 3
		If JVDU1,HIICAZZ = three AND JVDU1,HIICCZZ = two    then score = 3
		If JVDU1,HIICAZZ = three AND JVDU1,HIICCZZ = three  then score = 4
		If JVDU1,HIICAZZ = four  AND JVDU1,HIICCZZ = one    then score = 4
		If JVDU1,HIICAZZ = four  AND JVDU1,HIICCZZ = two    then score = 4
		If JVDU1,HIICAZZ = four  AND JVDU1,HIICCZZ = three  then score = 5
		If JVDU1,HIICAZZ = five                    then score = 5
	END OPERATION
	BEGIN OPERATION RESERV&PRECIP   SENSOR = JVDU1,HIICEZZ
		If JVDU1,HIICAZZ = one                     then score = 1
		If JVDU1,HIICAZZ = two   AND JVDU1,HIICBZZ = one    then score = 2
		If JVDU1,HIICAZZ = two   AND JVDU1,HIICBZZ = two    then score = 2
		If JVDU1,HIICAZZ = two   AND JVDU1,HIICBZZ = three  then score = 3
		If JVDU1,HIICAZZ = three AND JVDU1,HIICBZZ = one    then score = 3
		If JVDU1,HIICAZZ = three AND JVDU1,HIICBZZ = two    then score = 3
		If JVDU1,HIICAZZ = three AND JVDU1,HIICBZZ = three  then score = 4
		If JVDU1,HIICAZZ = four  AND JVDU1,HIICBZZ = one    then score = 4
		If JVDU1,HIICAZZ = four  AND JVDU1,HIICBZZ = two    then score = 4
		If JVDU1,HIICAZZ = four  AND JVDU1,HIICBZZ = three  then score = 5
		If JVDU1,HIICAZZ = five                    then score = 5
	END OPERATION