[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gpwatch...



Steve,

Yet another question/problem for gpwarn/gpwatch.  I am using version of
the script that was posted with the gpwarn program to graph watches and
warnings. Several times now that a watch box has been issued, the box
outline itself does not show up on the map, yet the title information
does. I have yet to see the box itself be imposed on the image, yet one
of our users has told me that he has seen it on the map for an hour or
so - when it is first issued. Here is a copy of the scripts I am
running:

dalton% cat warn.csh
#!/bin/csh -f
#
#
cd /export/home/gempak/scripts/
source ~gempak/.cshrc
source ~gempak/GEMsetup

if ($#argv == 1) then
   set region = $argv[1]
else
   exit
endif

if ($region == us) then
   set garea = uslcc
   set mapf = "hipowo.cia"
   set file = warn
   set map = "32/1/1"
   set dproj = lcc
else if ($region == ky) then
   set garea = "30;-97.5;44.5;-75.5"
   set mapf = "hipowo.cia + hicnus.gsf"
   set file = warn_$region
   set map = "32/1/1 + 32/10/1"
   set dproj = mer
endif

set YYMMDD = `date "+%y%m%d/%H%M"`
set ddate = `date '+%A, %B %d, %Y, %H:%M:%S'`

set NOWATCH = 0
set NOWARN = 0

set STORM=$GEMDATA/storm/watches

set LATEST_W=`find $STORM/watches*.gem -mtime -1 -print`
if($#LATEST_W == 0) then
  set NOWATCH=1
else
  echo $LATEST_W latest file $YYMMDD
endif

set TORN_WARN=/ldmdata/gempak/nwx/watch_warn/torn_warn
set TSTRM_WARN=/ldmdata/gempak/nwx/watch_warn/tstrm_warn
set FLOOD_WTCH=/ldmdata/gempak/nwx/fflood/watch
set FLOOD_WARN=/ldmdata/gempak/nwx/fflood/warn
set WINTER_WX=/ldmdata/gempak/nwx/watch_warn/winter
set NON_PRCP=/ldmdata/gempak/nwx/watch_warn/noprcp
set SPECIAL=/ldmdata/gempak/nwx/watch_warn/special

set WARN=/export/home/gempak/scripts/tmp/warn.$$
set TORNADO=`find $TORN_WARN/*.torn -mtime -1 -print`
set SEVERE=`find $TSTRM_WARN/*.tstrm -mtime -1 -print`
set FLWTCH=`find $FLOOD_WTCH/*.wtch -mtime -1 -print`
set FLWARN=`find $FLOOD_WARN/*.warn -mtime -1 -print`
set WINTER=`find $WINTER_WX/*.winter -mtime -1 -print`
set NOPRCP=`find $NON_PRCP/*.noprcp -mtime -1 -print`
set SPEC=`find $SPECIAL/*.special -mtime -1 -print`

if(($#SPEC != 0)||($#NOPRCP != 0)||($#WINTER != 0)||($#FLWTCH !=
0)||($#FLWARN !
= 0)||($#SEVERE != 0)||($#TORNADO != 0)) then
   cat $SPEC $NOPRCP $FLWTCH $FLWARN $WINTER $SEVERE $TORNADO >! $WARN
endif

if((! -e /export/home/gempak/scripts/tmp/warn.$$)||(-z
/export/home/gempak/scrip
ts/tmp/warn.$$)) then
   set NOWARN=1
   if(-e /export/home/gempak/scripts/tmp/warn.$$) then
      rm -f /export/home/gempak/scripts/tmp/warn.$$
   endif
endif

#if(($NOWATCH == 1)&&($NOWARN == 1)) then
#   echo "No current watches or warnings"
#   exit
#endif


rm *.nts core warn.gif* warn_ky.gif*

if($NOWATCH == 0) then
gpwatch << EOF
   MAP      = 0
   GAREA    = $garea
   PROJ     = $dproj
   SATFIL   =
   RADFIL   =
   LATLON   = 0
   PANEL    = 0
   TITLE    = 3/-3/Current Watch Boxes
   TEXT     = 1.3/22/1/hw
   CLEAR    = yes
   DEVICE   = gfw|$file.gif|792;612
   WWFIL    = $LATEST_W
   WWS      = cur
   WWATT    = y
   r

   e
EOF

endif

gpwarn << EOF1
 GAREA    = $garea
 PROJ     = $dproj
 SATFIL   =
 RADFIL   =
 LATLON   = 0
 PANEL    = 0
 TITLE    = 2/2/National Weather Service Watches and Warnings
 TEXT     = 1.3/22/1/hw
 CLEAR    = no
 DEVICE   = gfw|$file.gif|792;612
 WWFIL    = $WARN
 WWS      = current
 WWATT    = 5/3600
 r

 e
EOF1
rm $WARN

gpmap << EOF2
 \$mapfil = $mapf
 MAP = $map
 PROJ = $dproj
 GAREA = $garea
 DEVICE   = gfw|$file.gif|792;612
 TITLE =32/1/Plot Valid Time $ddate EST
 r

 e
EOF2

$GEMEXE/gpend

/export/home/gempak/scripts/add_logo /export/home/gempak/scripts/$file
$file


I just ran it manually to see what the output was and it is finding the
file which has the watch box information. Any ideas?

In addition, there have been a couple warnings issued yesterday and
today that the gpwarn program couldn't decipher what they were. Here is
one of the latest messages for Trigg County:

999
WUUS1 KPAH 221235
SVRPAH
KYC221-221315-

BULLETIN - IMMEDIATE BROADCAST REQUESTED
SEVERE THUNDERSTORM WARNING
NATIONAL WEATHER SERVICE PADUCAH KY
635 AM CST FRI JAN 22 1999

THE NATIONAL WEATHER SERVICE IN PADUCAH HAS ISSUED A
* SEVERE THUNDERSTORM WARNING FOR...
  TRIGG COUNTY IN WESTERN KENTUCKY
* UNTIL 715 AM CST
* AT 631 AM CST...NATIONAL WEATHER SERVICE DOPPLER RADAR INDICATED A
  SEVERE THUNDERSTORM 45 MILES SOUTHEAST OF PADUCAH OR JUST EAST OF
  NEW CONCORD.  THE STORM WAS MOVING NORTHEAST AT 50 MPH. THE MAIN
  THREAT WITH THIS STORM WILL BE DAMAGING WINDS.

* THE SEVERE THUNDERSTORM(S) WILL BE NEAR...
  CLINTON BETWEEN 645 AM AND 650 AM CST

A TORNADO WATCH IS ALSO IN EFFECT FOR THE WARNED AREA. REMEMBER
THAT SEVERE THUNDERSTORMS CAN AND OCCASIONALLY DO PRODUCE TORNADOES
WITH LITTLE OR NO ADVANCE WARNING. IF YOU ARE IN THESE AREAS...SEEK
SAFETY IN A SMALL INTERIOR ROOM AWAY FROM WINDOWS. A BASEMENT OFFERS
THE BEST PROTECTION. REMAIN CALM BUT BE ALERT FOR RAPIDLY CHANGING
WEATHER CONDITIONS.

Any thoughts?

Thanks!

Maureen