#errorCatcher Echo #set $YM="%Y %m" #set $D="%d" #set $M=" %b" #set $NODAY=" N/A" #set $Temp="%6.1f" #set $Wind="%6.1f" #set $Dir="%6.0f" #set $Count="%6d" #set $Pressure="%6.2f" #set $NONE=" N/A" #if $unit.unit_type_dict.group_temperature == "degree_F" #set $Hot =(90.0,"degree_F") #set $DayCold =(32.0,"degree_F") #set $Cold =(32.0,"degree_F") #set $VeryCold=(0.0, "degree_F") #else #set $Hot =(30.0,"degree_C") #set $DayCold =(25.0,"degree_C") #set $Cold =(20.0,"degree_C") #set $VeryCold=(15.0,"degree_C") #end if #if $unit.unit_type_dict.group_rain == "inch" #set $Trace =(0.01,"inch") #set $SomeRain =(0.1, "inch") #set $Soak =(1.0, "inch") #set $Rain="%6.2f" #elif $unit.unit_type_dict.group_rain == "mm" #set $Trace =(0.3, "mm") #set $SomeRain =(3.0, "mm") #set $Soak =(30.0,"mm") #set $Rain="%6.1f" #else #set $Trace =(.03,"cm") #set $SomeRain =(.3, "cm") #set $Soak =(3.0,"cm") #set $Rain="%6.2f" #end if #def ShowInt($T) $("%6d" % $T[0])#slurp #end def #def ShowFloat($R) $("%6.2f" % $R[0])#slurp #end def EXTREME WEATHER RECORDS for month Jan NAME: $station.location ELEV: $station.altitude LAT: $station.latitude[0]-$station.latitude[1] $station.latitude[2] LONG: $station.longitude[0]-$station.longitude[1] $station.longitude[2] TEMPERATURE ($unit.label.outTemp.strip()) & RAIN ($unit.label.rain.strip()) MAX TOTAL YR MAX MIN RAIN(24HR) RAIN ------------------------------------------------------------------------------------------------ #set $iter_cnt = 0 #for $month in $alltime.months #if $month.barometer.count.raw #if $month.start.format("%b") == 'Jan' $month.start.format("%Y") $month.outTemp.max.nolabel($Temp,$NONE)($month.outTemp.maxtime.format($D,$NODAY)) $month.outTemp.min.nolabel($Temp,$NONE)($month.outTemp.mintime.format($D,$NODAY)) $month.rain.maxsum.nolabel($Rain,$None)($month.rain.maxsumtime.format($D,$NODAY)) $month.rain.sum.nolabel($Rain,$None) #if $iter_cnt == 0 #set $ATR_maxtemp=$month.outTemp.max.raw #set $ATR_maxtemptime=$month.outTemp.maxtime.format("%d %b %Y",$NODAY) #set $ATR_mintemp=$month.outTemp.min.raw #set $ATR_mintemptime=$month.outTemp.mintime.format("%d %b %Y",$NODAY) #set $ATR_max24hrain=$month.rain.maxsum.raw #set $ATR_max24hraintime=$month.rain.maxsumtime.format("%d %b %Y",$NODAY) #set $ATR_maxmonthrain=$month.rain.sum.raw #set $ATR_maxmonthraintime=$month.rain.maxsumtime.format("%Y",$NODAY) #end if #if $iter_cnt > 0 #if $month.outTemp.max.raw > $ATR_maxtemp #set $ATR_maxtemp=$month.outTemp.max.raw #set $ATR_maxtemptime=$month.outTemp.maxtime.format("%d %b %Y",$NODAY) #end if #if $month.outTemp.min.raw < $ATR_mintemp #set $ATR_mintemp=$month.outTemp.min.raw #set $ATR_mintemptime=$month.outTemp.mintime.format("%d %b %Y",$NODAY) #end if #if $month.rain.maxsum.raw > $ATR_max24hrain #set $ATR_max24hrain=$month.rain.maxsum.raw #set $ATR_max24hraintime=$month.rain.maxsumtime.format("%d %b %Y",$NODAY) #end if #if $month.rain.sum.raw > $ATR_maxmonthrain #set $ATR_maxmonthrain=$month.rain.sum.raw #set $ATR_maxmonthraintime=$month.rain.maxsumtime.format("%Y",$NODAY) #end if #end if #end if #end if #set $iter_cnt = $iter_cnt+1 #end for ------------------------------------------------------------------------------------------------ ALL TIME #echo '%.1f' % $ATR_maxtemp# #echo '%.1f' % $ATR_mintemp# #echo '%.1f' % $ATR_max24hrain# #echo '%.1f' % $ATR_maxmonthrain# RECORD ($ATR_maxtemptime) ($ATR_mintemptime) ($ATR_max24hraintime) ($ATR_maxmonthraintime)