';
$radar = 'N0R'; // Default radar type is set here
$radarLoc = 'oax'; // IMPORTAMT!!! Default radar location is set here
$imageWidth = 600; // Width of radar images
$iframeWidth = 617; // Default IFrame Width -- adjust as needed
$iframeHeight = 620; // Default IFrame Height -- adjust as needed
$autoRefresh = true; // Use Autorefresh? true or false -- Determines whether AutoRefresh even appears
$autoRefreshTime = 8; // Number of minutes between autorefreshes. IMPORTANT: use 2, 3, 4, 5, 6, 8, 10, 15, 20, or 30 ONLY!!!
$autoRefreshOff = false; // Begin with Autorefresh Off? true or false -- 'OFF' or 'ON"
$bgndColor = 'silver'; // Set HAniS Background Color Here
$btnColor = 'darkslategray'; // Set Button Color here
$btnTextColor = 'white'; // Set Button Text Color here
############################ New in Version 2 ##########################
$pauseSeconds = 2; // Pause on last image, in seconds
$animRate = 20; // Frame Rate of animation: 5 is glacial, 10 is slow, 15 is leisurely, 20 is good, and 50 is fast - set with integer
$numbImages = 12; // Number of Radar Images to Animate - 3 to around 25
############################ New in Version 3 ##########################
$smoothingOn = true; // Enable image smoothing - new in HAniS 2.5
}
if (isset($_POST['radar'])) {
$radar = $_POST['radar'];
}
if (isset($_POST['radarLoc'])) {
$radarLoc = $_POST['radarLoc'];
}
if (isset($_POST['imageWidth'])) {
$imageWidth = $_POST['imageWidth'];
}
if (isset($_POST['iframeWidth'])) {
$iframeWidth = $_POST['iframeWidth'];
}
if (isset($_POST['iframeHeight'])) {
$iframeHeight = $_POST['iframeHeight'];
}
if (isset($_POST['autoRefresh'])) {
$autoRefresh = $_POST['autoRefresh'];
}
if (isset($_POST['autoRefreshTime'])) {
$autoRefreshTime = $_POST['autoRefreshTime'];
}
if (isset($_POST['bgndColor'])) {
$bgndColor = $_POST['bgndColor'];
}
if (isset($_POST['autoRefreshOff'])) {
$autoRefreshOff = $_POST['autoRefreshOff'];
}
if (isset($_POST['btnColor'])) {
$btnColor = $_POST['btnColor'];
}
if (isset($_POST['btnTextColor'])) {
$btnTextColor = $_POST['btnTextColor'];
}
if (isset($_POST['animRate'])) {
$animRate = $_POST['animRate'];
}
if (isset($_POST['pauseSeconds'])) {
$pauseSeconds = $_POST['pauseSeconds'];
}
if (isset($_POST['numbImages'])) {
$numbImages = $_POST['numbImages'];
}
if (isset($_POST['smoothingOn'])) {
$smoothingOn = $_POST['smoothingOn'];
}
?>
Radar Site
>Birmingham
>E. Alabama
>Fort Rucker
>Mobile
>Nrn. Alabama
>Bethel
>Biorka Is.
>Fairbanks
>Kenai
>King Salmon
>Middleton Is.
>Nome
>Pedro Dome
>Sitka
>Flagstaff
>Phoenix
>Tucson
>Yuma
>Little Rock
>W. Ark./Ft. Smith
>Beale AFB
>Edwards AFB
>Eureka
>Hanford
>Los Angeles
>Sacramento
>San Diego
>San Francisco
>San Joaquin Vly.
>Santa Ana Mtns
>Vandenberg AFB
>Denver/Boulder
>Grand Junction
>Pueblo
>Dover AFB
>Eglin AFB
>Jacksonville
>Key West
>Melbourne
>Miami
>NW Florida
>Tallahassee
>Tampa Bay Area
>Atlanta
>Moody AFB
Peachtree City
>Robins AFB
>Andersen AFB
>Kauai
>Kohala
>Molokai
>South Shore
>Boise
>Pocatello
>Central IL
>Chicago
>Evansville
>Indianapolis
>Nrn. Indiana
>Des Moines
>Quad Cities
>Dodge City
>Goodland
>Topeka
>Wichita
>Fort Campbell
>Jackson
>Louisville
>Paducah
>Fort Polk
>Lake Charles
>New Orleans
>Shreveport
>Caribou
>Portland
>Baltimore
>Boston
>Detroit
>Gaylord
>Grand Rapids
>Marquette
>Duluth
>Minneapolis
>Columbus AFB
>Jackson
>Kansas City
>Springfield
>St. Louis
>Billings
>Glasgow
>Great Falls
>Missoula
>Hastings
>North Platte
>Omaha
>Elko
>Las Vegas
>Reno
>Mt. Holly
>Albuquerque
>Cannon AFB
>Holloman AFB
>Albany
>Binghamton
>Buffalo
>Montague
>New York City
Upton
>Durham
>Morehead City
Raleigh
>Wilmington
>Bismarck
>Grand Forks
>Minot AFB
>Cincinnati
>Cleveland
Dayton
Wilmington
>Frederick
>Oklahoma City
>Tulsa
>Vance AFB
>Medford
>Pendleton
>Portland
>Philadelphia
>Pittsburgh
>State College
>Puerto Rico/V.I.
>Charleston
>Columbia
>Greenville
Spartanburg
Greer
>Aberdeen
>Rapid City
>Sioux falls
>Knoxville
>Memphis
Morristown
>Nashville
>Tri Cities
>Amarillo
>Austin
>Brownsville
>Central Texas
>Corpus Christi
>Dallas
>Dyess AFB
>El Paso
Fort Worth
Galveston
>Houston
>Laughlin AFB
>Lubbock
>Midland/Odessa
>San Angelo
>San Antonio
>Cedar City
>Salt Lake City
>Burlington
Blacksburg
>Norfolk
Richmond
>Roanoke
>Sterling
>Wakefield
>Langley Hill
>Seattle
>Spokane
Tacoma
Washington
>Charleston
>Green Bay
>La Crosse
>Milwaukee
>Cheyenne
>Riverton
Radar Type
>Base Reflectivity
>Composite Reflectivity
>Base Velocity
>Storm Relative Velocity
>1 Hr. Precipitation
>Storm Precipitation
Image Number
'.$i.'';
} ?>
AutoRefresh
>ON
>OFF
AutoRefresh Interval
>2 Minutes
>3 Minutes
>4 Minutes
>5 Minutes
>6 Minutes
>8 Minutes
>10 Minutes
>15 Minutes
>20 Minutes
>30 Minutes
Refresh
array (
"bmx" => "Birmingham",
"mxx" => "Carville",
"eox" => "Fort Rucker",
"mob" => "Mobile",
"htx" => "Huntsville"),
"AK" => array (
"abc" => "Bethel",
"acg" => "Sitka/Biorka Is.",
"apd" => "Fairbanks/Pedro Dome",
"ahg" => "Kenai",
"akc" => "King Salmon",
"aih" => "Middleton Is.",
"aec" => "Nome"),
"AZ" => array (
"fsx" => "Flagstaff",
"iwa" => "Phoenix",
"emx" => "Tucson",
"yux" => "Yuma"),
"AR" => array (
"lzk" => "Little Rock",
"srx" => "W. Ark./Ft. Smith"),
"CA" => array (
"bbx" => "Beale AFB",
"eyx" => "Edwards AFB",
"bhx" => "Eureka",
"hnx" => "San Joaquin Vly./Hanford",
"vtx" => "Los Angeles",
"dax" => "Sacramento",
"nkx" => "San Diego",
"mux" => "San Francisco Bay Area",
"sox" => "Santa Ana Mtns",
"vbx" => "Vandenberg AFB"),
"CO" => array (
"ftg" => "Denver/Boulder",
"gjx" => "Grand Junction",
"pux" => "Pueblo"),
"DE" => array (
"dox" => "Dover AFB"),
"FL" => array (
"evx" => "Eglin AFB",
"jax" => "Jacksonville",
"byx" => "Key West",
"mlb" => "Melbourne",
"amx" => "Miami",
"tlh" => "Tallahassee",
"tbw" => "Tampa Bay Area"),
"GA" => array (
"ffc" => "Atlanta/Peachtree City",
"vax" => "Moody AFB",
"jgx" => "Robins AFB"),
"Guam" => array (
"gua" => "Andersen AFB"),
"HI" => array (
"hki" => "Kauai",
"hkm" => "Kohala",
"hmo" => "Molokai",
"hwa" => "South Shore"),
"ID" => array (
"cbx" => "Boise",
"sfx" => "Pocatello"),
"IL" => array (
"ilx" => "Lincoln",
"lot" => "Chicago"),
"IN" => array (
"vwx" => "Evansville",
"ind" => "Indianapolis",
"iwx" => "North Webster"),
"IA" => array (
"dmx" => "Des Moines",
"dvn" => "Quad Cities"),
"KS" => array (
"ddc" => "Dodge City",
"gld" => "Goodland",
"twx" => "Topeka",
"ict" => "Wichita"),
"KY" => array (
"hpx" => "Fort Campbell",
"jkl" => "Jackson",
"lvx" => "Louisville",
"pah" => "Paducah"),
"LA" => array (
"poe" => "Fort Polk",
"lch" => "Lake Charles",
"lix" => "New Orleans",
"shv" => "Shreveport"),
"ME" => array (
"cbw" => "Caribou",
"gyx" => "Portland"),
"MD" => array (
"lwx" => "Washington, DC/Baltimore"),
"MA" => array (
"box" => "Boston"),
"MI" => array (
"dtx" => "Detroit",
"apx" => "Gaylord",
"grr" => "Grand Rapids",
"mqt" => "Marquette"),
"MN" => array (
"dlh" => "Duluth",
"mpx" => "Minneapolis"),
"MS" => array (
"gwx" => "Columbus AFB",
"dgx" => "Jackson"),
"MO" => array (
"eax" => "Kansas City",
"sgf" => "Springfield",
"lsx" => "St. Louis"),
"MT" => array (
"blx" => "Billings",
"ggw" => "Glasgow",
"tfx" => "Great Falls",
"msx" => "Missoula"),
"NE" => array (
"uex" => "Hastings",
"lnx" => "North Platte",
"oax" => "Omaha/Valley"),
"NV" => array (
"lrx" => "Elko",
"esx" => "Las Vegas",
"rgx" => "Reno"),
"NM" => array (
"abx" => "Albuquerque",
"fdx" => "Cannon AFB",
"hdx" => "Holloman AFB"),
"NY" => array (
"enx" => "Albany",
"bgm" => "Binghamton",
"buf" => "Buffalo",
"tyx" => "Montague",
"okx" => "New York City/Upton"),
"NC" => array (
"rax" => "Raleigh/Durham",
"mhx" => "Morehead City",
"ltx" => "Wilmington"),
"ND" => array (
"bis" => "Bismarck",
"mvx" => "Grand Forks",
"mbx" => "Minot AFB"),
"OH" => array (
"cle" => "Cleveland",
"iln" => "Cinci/Dayton/Wilm"),
"OK" => array (
"fdr" => "Frederick",
"tlx" => "Oklahoma City",
"inx" => "Tulsa",
"vnx" => "Vance AFB"),
"OR" => array (
"max" => "Medford",
"pdt" => "Pendleton",
"rtx" => "Portland"),
"PA" => array (
"dix" => "Mt. Holly, NJ/Philadelphia",
"pbz" => "Pittsburgh",
"ccx" => "State College"),
"PR" => array (
"jua" => "V.I./San Juan"),
"SC" => array (
"clx" => "Charleston",
"cae" => "Columbia",
"gsp" => "Greenville/Spartanburg/Greer"),
"SD" => array (
"abr" => "Aberdeen",
"udx" => "Rapid City",
"fsd" => "Sioux falls"),
"TN" => array (
"mrx" => "Knoxville",
"nqa" => "Memphis",
"mrx" => "Knoxville/Morristown/Tri Cities",
"ohx" => "Nashville"),
"TX" => array (
"ama" => "Amarillo",
"bro" => "Brownsville",
"grk" => "Central Texas",
"crp" => "Corpus Christi",
"fws" => "Dallas/Fort Worth",
"dyx" => "Dyess AFB",
"epz" => "El Paso",
"hgx" => "Houston/Galveston",
"dfx" => "Laughlin AFB",
"lbb" => "Lubbock",
"maf" => "Midland/Odessa",
"sjt" => "San Angelo",
"ewx" => "San Antonio/Austin"),
"UT" => array (
"icx" => "Cedar City",
"mtx" => "Salt Lake City"),
"VT" => array (
"cxx" => "Burlington"),
"VA" => array (
"fcx" => "Roanoke/Blacksburg",
"akq" => "Norfolk/Richmond",
"lwx" => "Sterling"),
"WA" => array (
"lgx" => "Langley Hill",
"atx" => "Seattle",
"otx" => "Spokane",
"atx" => "Tacoma"),
"WV" => array (
"rlx" => "Charleston"),
"WI" => array (
"grb" => "Green Bay",
"arx" => "La Crosse",
"mkx" => "Milwaukee"),
"WY" => array (
"cys" => "Cheyenne",
"riw" => "Riverton")
);
$ridgeRadars = array (
"N0R" => "Base Reflectivity",
"NCR" => "Composite Reflectivity",
"N0V" => "Base Velocity",
"N0S" => "Storm Relative Velocity",
"N1P" => "1 Hr. Precipitation",
"NTP" => "Storm Precipitation"
);
$ourRadar = '';
$ourState = '';
$ourCity = '';
$ourRadar=$ridgeRadars[$radar];
foreach ($states as $key => $liststate) {
$ourState = $key;
foreach ($liststate as $key => $listcity) {
if ($key === $radarLoc) {
$ourCity = $listcity;
break;
}
} if (strlen($ourCity)>0) break;
if (strlen($ourCity)>0) break;
}
$radarPrefix = ($ourState=='HI'or $ourState=='AK' or $ourState=='Guam' or $ourState=='PR')?'P':'K';
$statRadar = $radarPrefix.strtoupper($radarLoc);
?>