# TNET Services, Inc. # # Copyright: (c) 1992-2007 Copyright TNET Services, Inc. ############################################################################ # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ############################################################################ # This document uses Tab 4 Settings ############################################################################ ############################################################################ if ( isset($_REQUEST['sce']) && strtolower($_REQUEST['sce']) == 'view' ) { //--self downloader -- $filenameReal = __FILE__; $download_size = filesize($filenameReal); header('Pragma: public'); header('Cache-Control: private'); header('Cache-Control: no-cache, must-revalidate'); header("Content-type: text/plain"); header("Accept-Ranges: bytes"); header("Content-Length: $download_size"); header('Connection: close'); readfile($filenameReal); exit; } ############################################################################ error_reporting(0); require_once("Settings.php"); require_once("common.php"); ############################################################################ $TITLE = langtransstr($SITE['organ']) . " - " .langtransstr('NWS US Graphical Forecast Maps'); $showGizmo = true; // set to false to exclude the gizmo include("top.php"); ############################################################################ ?> '; # Debug Code echo 'Default TZ is '.date_default_timezone_get().'
'; # Debug Code echo 'Default Date("T") is '.date('T').'
'; # Debug code echo 'Hour is now '.date('H').'.
Changing TZ.
';# Debug Code echo 'gmdate("H") is now '.gmdate('H').'.
'; # Debug Code ### End of Debug Code Section ### */ date_default_timezone_set("US/Eastern"); # The NWS calculations are based on US/Eastern Timezone /* ### Debug Code ### echo 'Date("T") is now '.date('T').'
'; # Debug code echo 'New TZ is '.date_default_timezone_get().'
'; # Debug Code echo 'Hour is now '.date('H').'
'; # Debug Code ### End of Debug Code ### */ for ($i=0; $i<10; $i++) { # Over ten 12 hour periods, $_year[$i] = date('Y', mktime('H'+($i*12))); # Determine Present & Future Year, $_month[$i] = date('m', mktime('H'+($i*12))); # Month, $_day[$i] = date('d', mktime('H'+($i*12))); # Day of Month, $_dow[$i] = date('D', mktime('H'+($i*12))); # Day of Week $_hour[$i] = date('H')+($i*12); # and Hour. } /* #### Debug Code - Displays the arrays ### for ($i=0; $i<9; $i++) echo "Year +".($i*12)." hours is ".$_year[$i]."
"; for ($i=0; $i<9; $i++) echo "Month +".($i*12)." hours is ".$_month[$i]."
"; for ($i=0; $i<9; $i++) echo "Day +".($i*12)." hours is ".$_day[$i]."
"; for ($i=0; $i<9; $i++) echo "Day +".($i*12)." hours is ".$_dow[$i]."
"; for ($i=0; $i<9; $i++) echo "Hour +".($i*12)." hours is ".$_hour[$i]."
"; ### End of Debug Code ### */ for ($i=0; $i<10; $i++) { # Create Mapstrings if ($i < 2 ) { # The first two mapstrings are different! if ($_hour[0] < 12) { # Before noon US/Eastern time set these mapstrings $mapstring[0] = 'MaxT1'; # 'Today' $mapstring[0] $mapstring[1] = 'MinT1'; # 'Tonight' $mapstring[1] } else { # otherwise until 7pm we need a 'MaxT1' string, at night not so. $mapstring[0] = ($_hour[0] >6 && $_hour[0]<19) ? 'MaxT1' : 'MinT1'; # $mapstring[0] unused after 7pm. $mapstring[1] = 'MinT1'; } /* ### Debug Code ### echo "
Mapstring ".$i." is ".$mapstring[$i].". Day of Week is ".$_dow[$i]."."; # Debug code to display $mapstrings ### End of Debug Code ### */ } else { # These next seven mapstrings are what works, however complex. $mapstring[$i] = ((fmod($_hour[$i],24)<7 || fmod($_hour[$i],24)>18) ? 'MinT_' : 'MaxT_').$_year[$i].$_month[$i].$_day[$i].((fmod($_hour[$i],24)>6 && fmod($_hour[$i],24)<19) ?'00':'12'); # Note that before 7am and after 6pm the mapstrings' order for each day is reversed! /* ### Debug Code ### echo "
Mapstring ".$i." is ".$mapstring[$i].". Day of Week is ".$_dow[$i]."."; # Debug code to display $mapstrings ### End of Debug Code ### */ } } # End of Next Several Days' Map String Script - Begin Page Display. ?>


  Click On Map or Link Below for New Zoomed-In Tab
18 || $_hour[0]<7)? (($_dow[0]<>$_dow[1])?'T2':'MinT1'): 'MaxT1').'_conus.png"'.' name="shorttermpic" alt="Graphic Forecast of Temperatures Across the US from the National Digital Forecast Database" border="0" usemap="#ifpsmap" height="424" width="515"/>'?>
blank image
Alaska     ·     Hawaii     ·     Guam    ·     Puerto Rico/Virgin Islands
blank image
Pacific Northwest in New Tab Pacific Southwest in New Tab Northern Rockies Central Rockies Southern Rockies Northern Plains Central Plains Southern Plains Upper Mississippi Valley Central Mississippi Valley Southern Mississippi Valley Southeast Central Great Lakes Mid Atlantic Eastern Great Lakes Northeast National Oceanic & Atmospheric Administration Web Site National Weather Service Web Site National Digital Forecast Database Information Northeast Metropolitan Area in New Tab Pacific Southwest Pacific Southwest


Click on a map or link to open new tab displaying area of interest.
Maps and Data Courtesy of NOAA NWS

'; # Debug Code ### End of Debug Code ### ############################################################################ include("footer.php"); ############################################################################ # End of Page ############################################################################ ?>