# state and city definitions %States = ( "co" => { "boulder" => { "key" => "BROOMFIELD", "city" => "Boulder, CO", "file" => "$dir/boulder.inc", #"query" => "COZ039.php?warncounty=COC013&city=Boulder" "query" => "?CityName=Boulder&state=CO&site=BOU" }, "denver" => { "key" => "DENVER INTL AP", "city" => "Denver, CO", "file" => "$dir/denver.inc", #"query" => "COZ040.php?warncounty=COC031&city=Denver+International+Airport" "query" => "?CityName=Denver+International+Airport&state=CO&site=BOU" }, "golden" => { "key" => "BROOMFIELD", "city" => "Golden, CO", "file" => "$dir/golden.inc", #"query" => "COZ039.php?warncounty=COC059&city=Golden" "query" => "?CityName=Golden&state=CO&site=BOU" }, }, "dc" => { "dc" => { "key" => "WASH NATIONAL", "city" => "Washington, DC", "file" => "$dir/dc.inc", #"query" => "DCZ001.php?warncounty=DCC001&city=Washington" "query" => "?CityName=Washington&state=DC&site=LWX" } } ); # month definitions %months = ( "JAN", "01", "FEB", "02", "MAR", "03", "APR", "04", "MAY", "05", "JUN", "06", "JUL", "07", "AUG", "08", "SEP", "09", "OCT", "10", "NOV", "11", "DEC", "12", ); # weather images %wxmap = ( "BLIZZARD" => [ "Blizzard", "blizzard.gif", "blizzard.gif" ] ,"INCREASING CLOUDS" => [ "Increasing Clouds", "mcloudy.gif", "mcloudyn.gif" ] ,"HAZE" => [ "Haze", "hazy.gif", "hazy.gif" ] ,"HAZY" => [ "Hazy", "hazy.gif", "hazy.gif" ] ,"SUN AND CLOUD" => [ "Partly Cloudy", "pcloudy.gif", "pcloudyn.gif" ] ,"WINDY" => [ "Windy", "wind.gif", "wind.gif" ] ,"SLEET" => [ "Sleet", "sleet.gif", "sleet.gif" ] ,"PARTIAL CLEARING" => [ "Partial Clearing", "mcloudy.gif", "mcloudyn.gif" ] ,"CLEARING" => [ "Clearing", "pcloudy.gif", "pcloudyn.gif" ] ,"CLEAR" => [ "Clear", "fair.gif", "fair.gif" ] ,"VARIABLE CLOUDINESS" => [ "Partly Cloudy", "pcloudy.gif", "pcloudyn.gif" ] ,"VARIABLE CLOUDS" => [ "Variable Clouds", "pcloudy.gif", "pcloudyn.gif" ] ,"BLOWING SNOW" => [ "Blowing Snow", "blowingsnow.gif", "blowingsnow.gif" ] ,"DRIFTING SNOW" => [ "Drifting Snow", "blowingsnow.gif", "blowingsnow.gif" ] ,"RAIN AND SNOW" => [ "Rain/Snow", "rainandsnow.gif", "rainandsnow.gif" ] ,"SNOW AND RAIN" => [ "Rain/Snow", "rainandsnow.gif", "rainandsnow.gif" ] ,"rain or snow" => [ "Rain-or Snow", "rainandsnow.gif", "rainandsnow.gif" ] ,"LIGHT RAIN" => [ "Light Rain", "showers.gif", "showers.gif" ] ,"RAIN SHOWER" => [ "Rain Showers", "showers.gif", "showers.gif" ] ,"SNOW SHOWER" => [ "Snow Showers", "snowshowers.gif", "snowshowers.gif" ] ,"THUNDERSTORM" => [ "Thunder storms", "tstorm.gif", "tstormn.gif" ] # Added 08/13/2001 FMM: need to match this pattern too. ,"THUNDER STORMS" => [ "Thunder storms", "tstorm.gif", "tstormn.gif" ] ,"SHOWER" => [ "Showers", "showers.gif", "showers.gif" ] ,"FREEZING DRIZZLE" => [ "Freezing Drizzle", "freezingrain.gif", "freezingrain.gif" ] ,"FREEZING RAIN" => [ "Freezing Rain", "freezingrain.gif", "freezingrain.gif" ] ,"DRIZZLE" => [ "Drizzle", "drizzle.gif", "drizzle.gif" ] ,"MAINLY CLOUDY" => [ "Mostly Cloudy", "mcloudy.gif", "mcloudyn.gif" ] ,"CLOUDY PERIODS" => [ "Cloudy Periods", "pcloudy.gif", "pcloudyn.gif" ] ,"FLURR" => [ "Flurries", "flurries.gif", "flurries.gif" ] ,"FAIR" => [ "Fair", "fair.gif", "pcloudyn.gif" ] ,"light snow" => [ "Light Snow", "snowshowers.gif", "snowshowers.gif" ] ,"LIGHT SNOW" => [ "Light Snow", "snowshowers.gif", "snowshowers.gif" ] ,"SNOW" => [ "Snow", "snow.gif", "snow.gif" ] ,"RAIN" => [ "Rain", "rain.gif", "rain.gif" ] ,"DRY" => [ "Dry", "sunny.gif", "sunnyn.gif" ] ,"Variable high cloudiness" => [ "Variable Cloudiness", "pcloudy.gif", "pcloudyn.gif" ] ,"PARTLY CLOUDY" => [ "Partly Cloudy", "pcloudy.gif", "pcloudyn.gif" ] ,"MOSTLY CLOUDY" => [ "Mostly Cloudy", "mcloudy.gif", "mcloudyn.gif" ] ,"MOSTLY SUNNY" => [ "Mostly Sunny", "sunny.gif", "sunnyn.gif" ] ,"PARTLY SUNNY" => [ "Partly Sunny", "mcloudy.gif", "mcloudyn.gif" ] ,"SUNNY" => [ "Sunny", "sunny.gif", "sunnyn.gif" ] ,"INCREASING CLOUDINESS" => [ "Increasing Clouds", "mcloudy.gif", "mcloudyn.gif" ] ,"CLOUDY" => [ "Cloudy", "cloudy.gif", "cloudy.gif" ] ,"Occasional Sunshine" => [ "Occasional Sunshine", "mcloudy.gif", "mcloudyn.gif" ] ,"Partial Sunshine" => [ "Partial Sunshine", "mcloudy.gif", "mcloudyn.gif" ] ,"CLOUDS?" => [ "Clouds", "mcloudy.gif", "mcloudyn.gif" ] ,"FOG" => [ "Fog", "fog.gif", "fog.gif" ] ,"SMOKE" => [ "Smoke", "smoke.gif", "smoke.gif" ] ,"MIST" => [ "Mist", "drizzle.gif", "drizzle.gif" ] ,"towering cumulus clouds observed" => [ "Partly Cloudy", "mcloudy.gif", "mcloudyn.gif" ] ,"overcast" => [ "Overcast", "cloudy.gif", "cloudy.gif" ] ,"PWS" => [ "Weather Station", "pws.gif", "pws.gif" ] ,"NA" => ["N/A", "na.gif", "na.gif" ] ); # weather types @wxtypes =( "BLIZZARD" , "INCREASING CLOUDS" , "HAZE" , "HAZY" , "SUN AND CLOUD" , "WINDY" , "SLEET" , "PARTIAL CLEARING" , "CLEARING" , "CLEAR" , "VARIABLE CLOUDINESS" , "VARIABLE CLOUDS" , "BLOWING SNOW" , "DRIFTING SNOW" , "RAIN AND SNOW" , "SNOW AND RAIN" , "rain or snow" , "LIGHT RAIN" , "RAIN SHOWER" , "SNOW SHOWER" , "THUNDERSTORM" # Added 08/13/2001 FMM: need to match this pattern too. , "THUNDER STORMS" , "SHOWER" , "FREEZING DRIZZLE" , "FREEZING RAIN" , "DRIZZLE" , "MAINLY CLOUDY" , "CLOUDY PERIODS" , "FLURR" , "FAIR" , "light snow" # Added 01/05/2005 FMM: need to match this pattern too (the one below this line). , "LIGHT SNOW" , "SNOW" , "RAIN" , "DRY" , "Variable high cloudiness" , "PARTLY CLOUDY" , "MOSTLY CLOUDY" , "MOSTLY SUNNY" , "PARTLY SUNNY" , "SUNNY" , "INCREASING CLOUDINESS" , "CLOUDY" , "Occasional Sunshine" , "Partial Sunshine" , "CLOUDS?" , "FOG" , "SMOKE" , "MIST" , "towering cumulus clouds observed" , "overcast" , "PWS" ); 1;