*/ if (!isset($wfo)&&!isset($prediction)) { $wfo='oax'; $divWidth = '656'; // They are used for testing only $prediction = "StormTotalSnowWeb"; $leftMargin = 50; // Left margin to display text $mapPath = './images/'; $_SESSION['CSSwidescreen'] = false; $standAlone = true; } /* End of testing code defaults and section to comment out */ if (isset($_POST['wfo'])) { # Are we using AJAX??? $wfo = $_POST['wfo']; # If so, set wfo. if ($_SERVER["REMOTE_ADDR"]=='127.0.0.1') { include ('Settings.php'); // AJAX forgets these on localhost! } } if (isset($_POST['divWidth'])) { # Are we using AJAX??? $divWidth = $_POST['divWidth']; # If so, set wfo. if ($_SERVER["REMOTE_ADDR"]=='127.0.0.1') { include ('Settings.php'); // AJAX forgets these on localhost! } } if (isset($_POST['prediction'])) { # Are we using AJAX??? $prediction = $_POST['prediction']; # If so, set wfo. if ($_SERVER["REMOTE_ADDR"]=='127.0.0.1') { include ('Settings.php'); // AJAX forgets these on localhost! } } if (isset($_POST['standAlone'])) { # Are we using AJAX??? $standAlone = $_POST['standAlone']; # If so, set wfo. if ($_SERVER["REMOTE_ADDR"]=='127.0.0.1') { include ('Settings.php'); // AJAX forgets these on localhost! } } if (isset($_SESSION['CSSwidescreen'])) { $divWidth = ($_SESSION['CSSwidescreen']==1 ? 'calc(100%-114)' : $divWidth); } if ($standAlone ) $divWidth = 1022; $locationArrays = array( /* array("afc","AK, Anchorage"), array("afg","AK, Fairbanks"), array("ajk","AK, Juneau"), array("bmx","AL, Birmingham"), array("mob","AL, Mobile"), array("hun","AL, Huntsville"), array("fgz","AZ, Flagstaff"), array("psr","AZ, Phoenix"), array("twc","AZ, Tucson"), */ array("lzk","AR, Little Rock"), array("eka","CA, Eureka"), array("hnx","CA, Hanford/San Joaquin Vly."), array("lox","CA, Los Angeles/Oxnard"), array("sto","CA, Sacramento"), array("sgx","CA, San Diego"), array("mtr","CA, San Francisco Bay/Monterey"), array("bou","CO, Denver/Boulder"), array("gjt","CO, Grand Junction"), array("pub","CO, Pueblo"), array("jax","FL, Jacksonville"), array("eyw","FL, Key West"), array("mlb","FL, Melbourne"), array("mfl","FL, Miami"), array("tae","FL, Tallahassee"), array("tbw","FL, Tampa Bay Area"), array("ffc","GA, Atlanta/Peachtree City"),/* array("pq","GU, Tiyan"), array("hnl","HI, Honolulu"),*/ array("boi","ID, Boise"), array("pih","ID, Pocatello"), array("ilx","IL, Lincoln"), array("lot","IL, Chicago"), array("ind","IN, Indianapolis"), array("iwx","IN, Northern Indiana"), array("dmx","IA, Des Moines"), array("dvn","IA, Quad Cities/Davenport"), array("ddc","KS, Dodge City"), array("gld","KS, Goodland"), array("top","KS, Topeka"), array("ict","KS, Wichita"), array("jkl","KY, Jackson"), array("lmk","KY, Louisville"), array("pah","KY, Paducah"), array("lch","LA, Lake Charles"), array("lix","LA, New Orleans"), array("shv","LA, Shreveport"), array("car","ME, Caribou"), array("gyx","ME, Portland"), array("box","MA, Boston/Norton"), array("dtx","MI, Detroit"), array("apx","MI, Gaylord"), array("grr","MI, Grand Rapids"), array("mqt","MI, Marquette"), array("dlh","MN, Duluth"), array("mpx","MN, Twin Cities/Chanhassen"), array("jan","MS, Jackson"), array("eax","MO, Kansas City"), array("sgf","MO, Springfield"), array("lsx","MO, St. Louis"), array("byz","MT, Billings"), array("ggw","MT, Glasgow"), array("tfx","MT, Great Falls"), array("mso","MT, Missoula"), array("gid","NE, Hastings"), array("lbf","NE, North Platte"), array("oax","NE, Omaha"), array("lkn","NV, Elko"), array("vef","NV, Las Vegas"), array("rev","NV, Reno"), array("abq","NM, Albuquerque"), array("aly","NY, Albany"), array("bgm","NY, Binghamton"), array("buf","NY, Buffalo"), array("okx","NY, New York City/Upton, NY"), array("rah","NC, Raleigh/Durham"), array("mhx","NC, Morehead City"), array("ilm","NC, Wilmington"), array("bis","ND, Bismarck"), array("fgf","ND, Grand Forks"), array("cle","OH, Cleveland"), array("iln","OH, Wilmington/Dayton"), array("oun","OK, Norman"), array("tsa","OK, Tulsa"), array("mfr","OR, Medford"), array("pdt","OR, Pendleton"), array("pqr","OR, Portland"), array("phi","PA, Philadelphia/Mt. Holly, NJ"), array("pbz","PA, Pittsburgh"), array("ctp","PA, State College"),/* array("sju","PR, San Juan"),*/ array("chs","SC, Charleston"), array("cae","SC, Columbia"), array("gsp","SC, Greenville/Spartanburg"), array("abr","SD, Aberdeen"), array("unr","SD, Rapid City"), array("fsd","SD, Sioux falls"), array("mrx","TN, Knoxville/Tri Cities"), array("meg","TN, Memphis"), array("ohx","TN, Nashville"), array("ama","TX, Amarillo"), array("bro","TX, Brownsville"), array("crp","TX, Corpus Christi"), array("fwd","TX, Dallas/Fort Worth"), array("epz","TX, El Paso"), array("hgx","TX, Houston/Galveston"), array("lub","TX, Lubbock"), array("sjt","TX, San Angelo"), array("ewx","TX, San Antonio/Austin"), array("slc","UT, Salt Lake City"), array("btv","VT, Burlington"), array("rnk","VA, Roanoke/Blacksburg"), array("akq","VA, Wakefield"), array("sew","WA, Seattle/Tacoma"), array("otx","WA, Spokane"), array("lwx","MD, Washington/Baltimore"), array("rlx","WV, Charleston"), array("grb","WI, Green Bay"), array("arx","WI, La Crosse"), array("mkx","WI, Milwaukee"), array("cys","WY, Cheyenne"), array("riw","WY, Riverton") ); foreach ($locationArrays as $key => $val) { if ($val[0] === $wfo) { $wfoText = $locationArrays[$key][1]; break; } } $matches = preg_split("/[,]+/",$wfoText); $city = trim($matches[1]); $state = $matches[0]; $wfoText = $city.', '.$state; ?> = 0.1 Inch Snowfall"), array("ProbSnowGe01","Chance >= 1 Inch Snowfall"), array("ProbSnowGe02","Chance >= 2 Inch Snowfall"), array("ProbSnowGe04","Chance >= 4 Inch Snowfall"), array("ProbSnowGe06","Chance >= 6 Inch Snowfall"), array("ProbSnowGe08","Chance >= 8 Inch Snowfall"), array("ProbSnowGe12","Chance >= 12 Inch Snowfall"), array("ProbSnowGe18","Chance >= 18 Inch Snowfall"), ); foreach ($predictionArrays as $key => $val) { if ($val[0] == $prediction) { $predictionText = $predictionArrays[$key][1]; break; } } ?>

for

To Select Another NWS Office or Prediction Type Choose from a List

Select Forecast Office:   Select prediction:  
'; echo '$divWidth: '.$divWidth.', $_SESSION[\'CSSwidescreen\']: '.($_SESSION['CSSwidescreen']==1?'true':'false').', $standAlone: '.($standAlone==1?'true':'false').'
'; /* End Debug Code */ ?>
Snowfall Prediction Missing

Winter Page for Weather Forecast Office

Predictions Courtesy of NOAA-NWS
WFO and predictions Scripts by SE Lincoln Weather with modifications by Thomas Abell.