.wrapper1 { height:20px;width:100%;border:none 0px RED;overflow-x:scroll;overflow-y:hidden; } .div1 { height:20px; } .CSSTableGeneratorYellow { overflow-x:auto; margin:0px;padding:0px; margin-bottom:20px; width:100%; box-shadow: 10px 10px 5px #888888; border:1px solid #bfbf00; -moz-border-radius-bottomleft:0px; -webkit-border-bottom-left-radius:0px; border-bottom-left-radius:0px; -moz-border-radius-bottomright:0px; -webkit-border-bottom-right-radius:0px; border-bottom-right-radius:0px; -moz-border-radius-topright:0px; -webkit-border-top-right-radius:0px; border-top-right-radius:0px; -moz-border-radius-topleft:0px; -webkit-border-top-left-radius:0px; border-top-left-radius:0px; }.CSSTableGeneratorYellow table{ width:100%; margin:0px;padding:0px; }.CSSTableGeneratorYellow tr:last-child td:last-child { -moz-border-radius-bottomright:0px; -webkit-border-bottom-right-radius:0px; border-bottom-right-radius:0px; } .CSSTableGeneratorYellow table tr:first-child td:first-child { -moz-border-radius-topleft:0px; -webkit-border-top-left-radius:0px; border-top-left-radius:0px; } .CSSTableGeneratorYellow table tr:first-child td:last-child { -moz-border-radius-topright:0px; -webkit-border-top-right-radius:0px; border-top-right-radius:0px; }.CSSTableGeneratorYellow tr:last-child td:first-child{ -moz-border-radius-bottomleft:0px; -webkit-border-bottom-left-radius:0px; border-bottom-left-radius:0px; }.CSSTableGeneratorYellow tr:hover td{ } .CSSTableGeneratorYellow tr:nth-child(odd){ background-color:#ffffaa; } .CSSTableGeneratorYellow tr:nth-child(even) { background-color:#ffffff; } .CSSTableGeneratorYellow td{ vertical-align:middle; border:1px solid #bfbf00; border-width:0px 1px 1px 0px; text-align:left; padding:8px; font-size:14px; font-family:Arial; font-weight:bold; color:#000000; }.CSSTableGeneratorYellow tr:last-child td{ border-width:0px 1px 0px 0px; }.CSSTableGeneratorYellow tr td:last-child{ border-width:0px 0px 1px 0px; }.CSSTableGeneratorYellow tr:last-child td:last-child{ border-width:0px 0px 0px 0px; } .CSSTableGeneratorYellow tr:first-child th{ background:-o-linear-gradient(bottom, #ffff00 5%, #f2f287 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffff00), color-stop(1, #f2f287) ); background:-moz-linear-gradient( center top, #ffff00 5%, #f2f287 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffff00", endColorstr="#f2f287"); background: -o-linear-gradient(top,#ffff00,f2f287); background-color:#ffff00; border:0px solid #bfbf00; text-align:center; border-width:0px 0px 1px 1px; font-size:20px; font-family:Arial; font-weight:bold; color:#7f7f00; } .CSSTableGeneratorYellow tr:first-child:hover th{ background:-o-linear-gradient(bottom, #ffff00 5%, #f2f287 100%); background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ffff00), color-stop(1, #f2f287) ); background:-moz-linear-gradient( center top, #ffff00 5%, #f2f287 100% ); filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffff00", endColorstr="#f2f287"); background: -o-linear-gradient(top,#ffff00,f2f287); background-color:#ffff00; } .CSSTableGeneratorYellow tr:first-child td:first-child{ border-width:0px 0px 1px 0px; } .CSSTableGeneratorYellow tr:first-child td:last-child{ border-width:0px 0px 1px 1px; } ENDST; $sab = array( 'al','ak','az','ar','ca','co','ct','de','fl','ga', 'hi','id','il','in','ia','ks','ky','la','me','wy', 'md','ma','mi','mn','ms','mo','mt','ne','nv','nh', 'nj','nm','ny','nc','nd','oh','ok','or','pa','ri', 'sc','sd','tn','tx','ut','vt','va','wa','wv','wi','dc','gu','pr','as','mp','vi' ); $fsn = array( 'alabama','alaska','arizona','arkansas','california','colorado','connecticut','delaware','florida','georgia', 'hawaii','idaho','illinois','indiana','iowa','kansas','kentucky','louisiana','maine','wyoming', 'maryland','massachusetts','michigan','minnesota','mississippi','missouri','montana','nebraska','nevada','new hampshire', 'new jersey','new mexico','new york','north carolina','north dakota','ohio','oklahoma','oregon','pennsylvania','rhode island', 'south carolina','south dakota','tennessee','texas','utah','vermont','virginia','washington','west virginia','wisconsin','washington dc','guam','puerto rico','american samoa','northern mariana islands','virgin islands' ); if($EXT[1] == 'json' && $_POST['order']=='') { header('Status: 303 See Other'); header('HTTP/1.0 303 See Other'); header("Location: /weather/{$EXT[0]}/"); exit; } if($EXT[2] == 'json' && $_POST['order']=='') { header('Status: 303 See Other'); header('HTTP/1.0 303 See Other'); header("Location: /weather/s.a.m.e.-code/{$EXT[1]}/"); exit; } if($EXT[0] == '') { $page['title']="Weather Radio"; $page['description']="Index of NOAA Weather Radio Stations in the United States"; $LASTCHAR=substr($_SERVER['REQUEST_URI'],-1); if($LASTCHAR != '/') { header("HTTP/1.1 301 Moved Permanently"); header("Location: http://radiostationnet.com{$_SERVER['REQUEST_URI']}/");exit; } $alt[]=<< ENDALT; $SQL="SELECT count(DISTINCT callsign) as wxcount FROM wxradio_counties"; $RESP=dbget('radio',$SQL); $TOTALWX=number_format($RESP[0]['wxcount'],0,'.',','); $MAINCONTENT .= <<Weather Radio Stations

Your Information Resource for All NOAA Weather Radio Stations In The United States

There are {$TOTALWX} Weather radio stations operating throughout the U.S., broadcasting on 7 frequencies between 162.400 MHz to 162.550 MHz, known as the weather band, with facilities operating at a power of 5 watts to 1000 watts. Embedded signals inside audio alert messages contain what are known as S.A.M.E. codes (Specific Area Message Encoding) to flag weather radio receivers, configured with the correct code, when weather and other related messages are available from the National Weather Service.

All of our Weather Radio pages for each state will show the S.A.M.E. code needed to program your receiver for the correct code. These codes are specific to each state's County ("Parish" in Louisiana and "Borough" in Alaska).

Not all NWR (National Weather Radio) stations have audio or live broadcasts available on the Internet. Our online player's weather button will attempt to load any available weather audio for your nearest online local station, if available. In all cases however, we have configured the information screen to alert you of these S.A.M.E. encoded messages within the player.

NOAA Weather Radio

ENDMAIN; } if($EXT[0] != '') { $page['image']=''; $EXT[0]=str_replace('-',' ',$EXT[0]); $EXT[0]=str_replace('.html','',$EXT[0]); $i=0; //var_dump($EXT); if($EXT[0] != 's.a.m.e. code') { foreach($fsn as $sn) { $SP[strtoupper($sab[$i])]=str_replace(' ','-',$sn); if($EXT[0]==$sn) { $CS=strtoupper($sab[$i]);$STATE=ucwords($sn);$STATEPATH=str_replace(' ','-',$EXT[0]); } $i++; } if($CS != '') { $county_type = 'County'; if($CS == 'AK') { $county_type = 'Borough'; } if($CS == 'LA') { $county_type = 'Parish'; } $i=0; $page['title']="{$STATE} Weather Radio Stations"; $page['description']="Index of all Weather Radio Stations in the State of {$STATE}"; $page['keywords']=strtolower($STATE).', weather, radio, stations'; $alt[]=$STYLE3; if($_POST['order'] != '' && preg_match('|-|',$_POST['order'])) { list($FIELD,$DIR)=explode('-',$_POST['order']); $SQL="SELECT * FROM wxradio_counties WHERE wxstate='{$CS}' ORDER BY {$FIELD} {$DIR}"; } if($EXT[1]!='' && $EXT[1]!='json') { $SQL="SELECT * FROM wxradio_counties WHERE wxstate='{$CS}' AND nwrloc LIKE '%, {$CS}' AND callsign='{$EXT[1]}' LIMIT 1"; } if($SQL=='') { $SQL="SELECT * FROM wxradio_counties WHERE wxstate='{$CS}' ORDER BY wxcounty ASC"; } //echo "SQL: $SQL"; $RESP=dbget('radio',$SQL); $JSON=json_encode($RESP); $TOTALWX=count($RESP); $CSORD='ASC'; $FQORD='ASC'; $SLORD='ASC'; $PLORD='ASC'; if($FIELD=='callsign' && $DIR=='ASC') { $CSORD='DESC'; } if($FIELD=='rfreq' && $DIR=='ASC') { $FQORD='DESC'; } if($FIELD=='nwrloc' && $DIR=='ASC') { $NLORD='DESC'; } if($FIELD=='same' && $DIR=='ASC') { $SLORD='DESC'; } if($FIELD=='wxcounty' && $DIR=='ASC') { $CTORD='DESC'; } $table.= <<
ENDTS; if($EXT[1]!='' && $EXT[1]!='json') { $table= <<
Callsign
Frequency
{$STATE} {$county_type}
NWR Location
S.A.M.E. Code
ENDTS; } if($RESP) { foreach($RESP as $ST) { $OWNER=ucwords(strtolower($ST['Licensee'])); $CITY=ucwords(strtolower($ST['City'])); $PLACE=ucwords(strtolower("{$ST['City']}, {$EXT[0]}")); list($TTEMP,$RSTATE) = explode(', ',$ST['nwrloc']); $i=0; foreach($sab as $ab) { if(strtolower($RSTATE)==$ab) { $ST['SCS']=strtoupper($ab);$ST['STATE']=ucwords($fsn[$i]);$ST['STATEPATH']=str_replace(' ','-',$fsn[$i]); } $i++; } $TSTATEPATH=$SP[$RSTATE]; if($EXT[1]=='' || $EXT[1]=='json') { if($ST['thumbnail']!='') { $THUMB="{$ST["; } else { $THUMB='NOAA Weather Radio'; } $table.= "\t\t\t\t\t\t\t"; } if($EXT[1]!='' && $EXT[1]!='json') { $LSQL="SELECT lat,lon FROM nwrtowers WHERE callsign='{$ST['callsign']}'"; $LOC=dbget('radio',$LSQL); if($LOC) { foreach($LOC as $LR) { $LAT=$LR['lat'];$LON=$LR['lon']; } } //echo "LAT: $LAT LON: $LON"; if($ST['Service']=='FM') { $PARENT=$i; } if($ST['thumbnail']!='') { $THUMB="{$ST["; } else { $THUMB='NOAA Weather Radio'; } $table.= "\t\t\t\t\t\t\t"; $i++; } } $table.= "
Service Frequency Power Latitide Longitude
{$THUMB}{$ST['callsign']}{$ST['rfreq']}
{$ST['wxcounty']} {$county_type}
{$STATE}
{$ST['nwrloc']}{$ST['same']}
{$THUMB}Weather{$ST['rfreq']} MHz{$ST['watts']} Watts{$LAT}{$LON}
"; $table .= << $(function(){ $(".div1").width( $(".it2").width() ); $(".wrapper1").scroll(function(){ $(".wrapper2") .scrollLeft($(".wrapper1").scrollLeft()); }); $(".wrapper2").scroll(function(){ $(".wrapper1") .scrollLeft($(".wrapper2").scrollLeft()); }); if( $(".it2").width() <= $(".wrapper2").outerWidth() ) { $(".wrapper1").hide(); } $( window ).resize(function() { $(".wrapper1").show(); $(".div1").width( $(".it2").width() ); $(".wrapper1").scroll(function(){ $(".wrapper2") .scrollLeft($(".wrapper1").scrollLeft()); }); $(".wrapper2").scroll(function(){ $(".wrapper1") .scrollLeft($(".wrapper2").scrollLeft()); }); if( $(".it2").width() <= $(".wrapper2").outerWidth() ) { $(".wrapper1").hide(); } }); }); ENDSCROLL; //var_dump($JSON); } } } else { $check = false; if($EXT[1] && is_numeric($EXT[1])) { $check = dbget('radio',"SELECT * FROM wxradio_counties WHERE `same`=\"{$EXT[1]}\""); } if($check) { //var_dump($check); // We have a S.A.M.E. Code $same = $check[0]; $county_type = 'County'; if($same['wxstate'] == 'AK') { $county_type = 'Borough'; } if($same['wxstate'] == 'LA') { $county_type = 'Parish'; } $i=0; foreach($sab as $ab) { if(strtolower($same['wxstate'])==$ab) { $SCS=strtoupper($ab);$STATE=ucwords($fsn[$i]);$STATEPATH=str_replace(' ','-',$fsn[$i]); } $i++; } $page['title']="S.A.M.E. Code {$same['same']} - {$same['wxcounty']} {$county_type} {$SCS} - Weather Radio Stations"; $page['description']="Index of all Weather Radio Stations covering the S.A.M.E. code of {$EXT[1]} for the {$county_type} of {$same['wxcounty']} in {$STATE}."; $page['keywords']='S.A.M.E. '.$same['same'].', '.$same['wxcounty'].' '.$county_type.' '.$STATE.', weather radio, nwr'; $alt[]=$STYLE3; if($_POST['order'] != '' && preg_match('|-|',$_POST['order'])) { list($FIELD,$DIR)=explode('-',$_POST['order']); $SQL="SELECT * FROM wxradio_counties WHERE same='{$same['same']}' ORDER BY {$FIELD} {$DIR}"; } if($SQL=='') { $SQL="SELECT * FROM wxradio_counties WHERE same='{$same['same']}' ORDER BY rfreq ASC"; } //echo "SQL: $SQL"; $RRESP=dbget('radio',$SQL); $JSON=json_encode($RRESP); $TOTALWX=count($RRESP); $CSORD='ASC'; $FQORD='ASC'; $SLORD='ASC'; $PLORD='ASC'; if($FIELD=='callsign' && $DIR=='ASC') { $CSORD='DESC'; } if($FIELD=='rfreq' && $DIR=='ASC') { $FQORD='DESC'; } if($FIELD=='nwrloc' && $DIR=='ASC') { $NLORD='DESC'; } if($FIELD=='same' && $DIR=='ASC') { $SLORD='DESC'; } if($FIELD=='wxcounty' && $DIR=='ASC') { $CTORD='DESC'; } $table.= <<
ENDTS; if($RRESP) { foreach($RRESP as $ST) { $OWNER=ucwords(strtolower($ST['Licensee'])); $CITY=ucwords(strtolower($ST['City'])); $PLACE=ucwords(strtolower("{$ST['City']}, {$EXT[0]}")); list($TTEMP,$RSTATE) = explode(', ',$ST['nwrloc']); $i=0; foreach($sab as $ab) { if(strtolower($RSTATE)==$ab) { $ST['SCS']=strtoupper($ab);$ST['STATE']=ucwords($fsn[$i]);$ST['STATEPATH']=str_replace(' ','-',$fsn[$i]); } $i++; } $TSTATEPATH=$SP[$RSTATE]; if($EXT[2]=='' || $EXT[2]=='json') { if($ST['thumbnail']!='') { $THUMB="{$ST["; } else { $THUMB='NOAA Weather Radio'; } $table.= "\t\t\t\t\t\t\t"; } if($EXT[2]!='' && $EXT[2]!='json') { $LSQL="SELECT lat,lon FROM nwrtowers WHERE callsign='{$ST['callsign']}'"; $LOC=dbget('radio',$LSQL); if($LOC) { foreach($LOC as $LR) { $LAT=$LR['lat'];$LON=$LR['lon']; } } if($ST['thumbnail']!='') { $THUMB="{$ST["; } else { $THUMB='NOAA Weather Radio'; } $table.= "\t\t\t\t\t\t\t"; $i++; } } $table.= "
Callsign
Frequency
{$STATE} {$county_type}
NWR Location
S.A.M.E. Code
{$THUMB}{$ST['callsign']}{$ST['rfreq']}
{$ST['wxcounty']} {$county_type}
{$STATE}
{$ST['nwrloc']}{$ST['same']}
{$THUMB}Weather{$ST['rfreq']} MHz{$ST['watts']} Watts{$LAT}{$LON}
"; //var_dump($JSON); $table .= << $(function(){ $(".div1").width( $(".it2").width() ); $(".wrapper1").scroll(function(){ $(".wrapper2") .scrollLeft($(".wrapper1").scrollLeft()); }); $(".wrapper2").scroll(function(){ $(".wrapper1") .scrollLeft($(".wrapper2").scrollLeft()); }); if( $(".it2").width() <= $(".wrapper2").outerWidth() ) { $(".wrapper1").hide(); } $( window ).resize(function() { $(".wrapper1").show(); $(".div1").width( $(".it2").width() ); $(".wrapper1").scroll(function(){ $(".wrapper2") .scrollLeft($(".wrapper1").scrollLeft()); }); $(".wrapper2").scroll(function(){ $(".wrapper1") .scrollLeft($(".wrapper2").scrollLeft()); }); if( $(".it2").width() <= $(".wrapper2").outerWidth() ) { $(".wrapper1").hide(); } }); }); ENDSCROLL; } // END of RRESP conditional } else { // End code check //echo "S.A.M.E. Not Found"; } } // End Else for same status if($_POST['order'] != '' && preg_match('|-|',$_POST['order'])) { echo $table;exit; } //$page['onload']="showtable('callsign-asc');"; if($EXT[0] == 's.a.m.e. code' && $check) { if($TOTALWX == 1) { $isare = "is"; } else { $isare = "are"; } $MAINCONTENT = <<S.A.M.E. Code {$same['same']}
Weather Radio Stations

Index of all Weather Radio Stations covering the S.A.M.E. code of {$EXT[1]} for the {$county_type} of {$same['wxcounty']} in {$STATE}

There {$isare} {$TOTALWX} Weather radio stations covering the S.A.M.E. code {$same['same']}. You will want to tune your weather radio to the best signal on the frequencies show in the table below.
{$table}

Only the station(s) shown above cover the {$county_type} of {$same['wxcounty']} in {$STATE}. Other stations in the weather band WILL NOT broadcast watches, warnings or other alerts for this {$county_type}. You can modify the first digit of the S.A.M.E. code for specific parts of the {$county_type}. ENDMAIN; } if($EXT[0] == 's.a.m.e. code' && !$check && $EXT[1]=='') { $alt[]=$STYLE3; $page['title'] = 'S.A.M.E. Code Weather Radio Stations'; $MAINCONTENT = <<S.A.M.E. Code {$same['same']}
Weather Radio Stations

Specific Area Message Encoding (S.A.M.E.) is used in content delivered by the Emergency Alert Sytem (EAS) to your local over-the-air television and radio stations. Special weather radios can detect the S.A.M.E. codes and alert you immediately.

Most weather radios allow you to setup monitoring for this code in order to activate an alarm or turn the radio on automatically. This is especially helpful if the volume is loud enough for you to hear while sleeping. One or more weather radio stations local to you may be available which support multiple S.A.M.E. codes. You will want to ensure you are tuned into the best station frequency supporting your code.

The S.A.M.E. codes are actually well organized by states and counties across the United States. They are 6-digit codes. The first number in the code when zero means the code is for the entire county. When a non-zero number it indicates only a portion of the county.

First Digit Part of County
0 Entire County
1 North West
2 North or North Central
3 North East
4 West or West Central
5 Central
6 East of East Central
7 South West
8 South or South Central
9 South East

The second and third digit of the S.A.M.E. code represents the State while the rest of the digits indicate the county (or Borough in Alaska or Parish in Lousiana). Digits 2 thru 6 are equivalent to the standard 5 digit FIPS code.

The stations supporting your location might not be in the same State where you live, however we have included them in our State tables for your convenience.

Our pages show only the county wide first digit zero. If you set your weather radio to this code, you will get all messages for the entire county.

ENDMAIN; } if($EXT[1]=='' && $EXT[0] != 's.a.m.e. code') { $MAINCONTENT = <<{$STATE} Weather Radio Stations

Index of All Weather Radio Stations with coverage in the State of {$STATE}

There are {$TOTALWX} Weather radio stations in the State of {$STATE}, broadcasting on 7 channels in the weather band at 162 Mhz.
{$table}
ENDMAIN; } if($EXT[1]!='' && $EXT[0] != 's.a.m.e.-code') { if($RESP) { // Here we should know the state index values etc and bring up a callsign in /band/state/callsign style path //var_dump($RESP); if($PARENT != '') { $ST=$RESP[$PARENT]; } else { $ST=$RESP[0]; } $title=$page['title']="{$ST['callsign']} ({$ST['rfreq']}) {$ST['nwrloc']} - NOAA Weather Radio"; $des=$page['description']="Weather Radio station details for {$ST['callsign']}."; $SQL="SELECT * FROM wxlive WHERE station='{$ST['callsign']}'"; $BCAST=dbget('radio',$SQL); //var_dump($BCAST); if($BCAST[0]["mp3"] != '' && $BCAST[0]['status']=='1') { $ABOUTSTREAM="{$ST['callsign']} can be heard online using the Radio Station Net Player."; if($BCAST[0]['lstime'] > 1) { $LDATE=Date('D M jS Y h:i:s A',$ST['lstime']); } if($BCAST[0]['lsstat']==0) { $LASTSTATUS=""; } if($BCAST[0]['lsstat']==2) { $LASTSTATUS="{$BCAST[0]['callsign']} Last Detected as OFFLINE {$LDATE}"; } if($BCAST[0]['lsstat']==3) { $LASTSTATUS="{$BCAST[0]['callsign']} Stream Resource Malfunction Detected {$LDATE}"; } if($BCAST[0]['lsstat']==1) { $LASTSTATUS="Server: {$BCAST[0]['lssvr']} Encoding: {$BCAST[0]['lsct']} Bitrate: {$BCAST[0]['lsbr']}"; } $STREAMLINKS="Stream Links"; $STREAMINFO=<< Stream Status
Verifying {$ST['callsign']} Audio Stream ...
{$LASTSTATUS}
ENDSI; if($MODE == 'ADMIN') { $STREAMINFO .= var_export($BCAST,true); $STREAMINFO .=<< ENDSI; } $alt[]=""; //$ACTIVATOR="

Click here to Listen to this Weather Station!"; $ACTIVATOR="
{$STREAMLINKS}"; } else { $ABOUTSTREAM="We are not aware of any currently available online broadcast streams for this station."; } $MAPLINK="/images/wxmap/{$ST['callsign']}.png"; $MAPPNG=$_SERVER['DOCUMENT_ROOT']."/images/wxmap/{$ST['callsign']}.png"; $MAPFILE=$_SERVER['DOCUMENT_ROOT']."/images/wxmap/{$ST['callsign']}.gif"; $MAPURL="http://www.nws.noaa.gov/nwr/Maps/GIF/{$ST['callsign']}.gif"; if(!file_exists($MAPPNG)) { $MAPIMG=file_get_contents($MAPURL); file_put_contents($MAPFILE,$MAPIMG); if(file_exists($MAPFILE)) { image_resize($MAPFILE, $MAPPNG, 600, 776, 0); } } if(file_exists($MAPPNG)) { $MAPSHOW="{$ST["; } if($LAT=='') { $SQL="SELECT lat,lon FROM nwrtowers WHERE callsign='{$ST['callsign']}'"; $LOC=dbget('radio',$SQL); $LAT=$LOC[0]['lat']; $LON=$LOC[0]['lon']; } if($ST['twitter'] != '') { $TWITTER_BUTTON = ""; $TWITTER_FRAME = << ENDTWITTER; } if($ST['facebook'] != '') { $FACEBOOK_BUTTON = "facebook"; if(!preg_match('|/group|',$ST['facebook'])) { if($TWITTER_FRAME != '') { $FACEBOOK_FRAME1 = '
'; $TWITTER_FRAME = << ENDTWITTER; } else { $FACEBOOK_FRAME2 = '
'; } } } if($ST['youtube'] != '') { $YOUTUBE_BUTTON = ""; $YOUTUVE_FRAME = '
'; } $LICNAME=ucwords(strtolower($ST['Licensee'])); if($ST['logo']!='') { $LOGO="{$ST["; $page['image']='http://radiostationnet.com'.$ST['logo']; } else { $page['image']='http://radiostationnet.com/images/noaa.jpg'; } $SQL="SELECT DISTINCT wxcounty,wxstate,same FROM wxradio_counties WHERE callsign='{$ST['callsign']}'"; $COUNTIES=dbget('radio',$SQL); foreach($COUNTIES as $COUNTY) { $DC=" County"; if($COUNTY['wxstate']=='AK') { $DC=' Borough'; } if($COUNTY['wxstate']=='LA') { $DC=' Parish'; } if(preg_match('| city|i',$COUNTY['wxcounty'])) { $DC=''; } $SERVES[]=$COUNTY['wxcounty'].$DC.', '.$COUNTY['wxstate']; $SAMES[]="".$COUNTY['same'].''.$COUNTY['wxcounty']."{$COUNTY['wxstate']}\n"; } $SERVING=implode('; ',$SERVES); $SAMECODES="
\nNOAA Weather Radio {$ST['callsign']} S.A.M.E. Code(s):
\n
".implode('',$SAMES)."
S.A.M.E.{$county_type}State
\n
\n"; if($ST['weburl']) { $WEBSITE="You can learn more about the {$ST['Callsign']} radio station on their website: {$ST['weburl']}"; } else { $WEBSITE=""; } $TIME=time(); $alt[]=<< function OpenPlayer(stationid){ document.getElementById('playerspot').innerHTML="
"; document.getElementById('playerspot').style.display='block'; } ENDALT; if($ST['fac_address1'] != '') { if($ST['fac_zip2'] !='') { $ZIPCODE=$ST['fac_zip1'].'-'.$ST['fac_zip2']; } else { $ZIPCODE=$ST['fac_zip1']; } $ADDRESS="{$ST['Callsign']} FCC Facility Location:
{$ST['fac_address1']} {$ST['fac_address1']}, {$ST['fac_city']}, {$ST['fac_state']} {$ZIPCODE}
"; } $alt[] = ''; //$alt[] = ''; $alt[] = "\n"; $alt[] = "\n"; $alt[] = "\n"; $page['onload']="Load();"; $address = '[{"address": "'.$ST['fac_address1'].' '.$ST['fac_city'].', '.$ST['fac_state'].' '.$ST['fac_zip1'].'", "name": "'.$ST['Callsign'].'"}]'; $alt[] = ''; //$alt[] = ''; $alt[] = ''; $page['onload'] = 'initialize()'; $GOOGLEMAP = '
Loading Main Map for '.$ST['Callsign'].'...
'; $exclude="+-#"; $gkey = 'AI39si4PMfkNMp1VkrauEitfldpuW_Bghl5jpzOXgUMguIN_9vSo5thWY1ZVVsYGfqQ7z2k2Bv3a_ElI2BQzYIh6honfSqyhuQ'; list($FREQ,$SP) = explode(' ',$ST['Frequency']); $MAINCONTENT = <<
Radio Station Net
{$LOGO}

{$ST['callsign']} {$ST['rfreq']} NWR

{$des}

This radio station is licensed by the FCC to The Nationwal Weather Service for {$ST['nwrloc']} and serving the following areas:
{$SERVING}
{$ACTIVATOR}

{$ABOUTSTREAM} {$STREAMINFO}
Antenna Location: LAT: {$LAT} ~ LON: {$LON}
$GOOGLEMAP $SAMECODES {$FACEBOOK_FRAME1}
{$MAPSHOW} {$WEBSITE}
{$FACEBOOK_BUTTON}{$TWITTER_BUTTON}{$YOUTUBE_BUTTON}
{$FACEBOOK_FRAME2} {$TWITTER_FRAME} {$YOUTUBE_FRAME} {$COMMENTFORM}
$table
{$ADDRESS} ENDSTATION; }} } if($MAINCONTENT != '') { $html .= heading($page,$alt,$topleft,$TOPAD,FALSE); $html .= $MAINCONTENT; $html .= footer($page,$ADVALUE,$SOURCE,$AUTHOR); echo $html; exit; } function image_resize($src, $dst, $width, $height, $crop=0){ if(!list($w, $h) = getimagesize($src)) return "Unsupported picture type!"; $type = strtolower(substr(strrchr($src,"."),1)); if($type == 'jpeg') $type = 'jpg'; switch($type){ case 'bmp': $img = imagecreatefromwbmp($src); break; case 'gif': $img = imagecreatefromgif($src); break; case 'jpg': $img = imagecreatefromjpeg($src); break; case 'png': $img = imagecreatefrompng($src); break; default : return "Unsupported picture type!"; } // resize if($crop){ if($w < $width or $h < $height) return "Picture is too small!"; $ratio = max($width/$w, $height/$h); $h = $height / $ratio; $x = ($w - $width / $ratio) / 2; $w = $width / $ratio; } else{ if($w < $width and $h < $height) return "Picture is too small!"; $ratio = min($width/$w, $height/$h); $width = $w * $ratio; $height = $h * $ratio; $x = 0; } $new = imagecreatetruecolor($width, $height); // preserve transparency if($type == "gif" or $type == "png"){ imagecolortransparent($new, imagecolorallocatealpha($new, 0, 0, 0, 127)); imagealphablending($new, false); imagesavealpha($new, true); } imagecopyresampled($new, $img, 0, 0, $x, 0, $width, $height, $w, $h); //switch($type){ // case 'bmp': imagewbmp($new, $dst); break; // case 'gif': imagegif($new, $dst); break; // case 'jpg': imagejpeg($new, $dst); break; // case 'png': imagepng($new, $dst); break; //} imagepng($new, $dst); return true; } //exit; ?>

404 Not Found

Page Not Found

We are sorry, but we could not find the URL that you requested.
http://radiostationnet.com/weather/s.a.m.e.-code/ does not exist at this time.
Click Here to return to the Radio Station Net Homepage.