Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Lighning Displays

The lightning images were generated using NLDN data and SFMAP. Each color represents lightning strikes observed during a single hour. The ldmbridge decoder DCNLDN stores lightning data in surface format data files. SFLIST and SFMAP are used to list and display lightning data files.

#!/bin/csh -f


@ START_COLOR = 30
@ STOP_HOUR = 23

@ HOUR = 0
@ COUNT = 0
@ COLOR = $START_COLOR
while($HOUR <= $STOP_HOUR)
   if($COUNT == 0) then
      set CLEAR='y'
      set MAP=1
   else
      set CLEAR='n'
      set MAP=0
   endif
   if($HOUR < 10) then
      set SFFILE=9510230${HOUR}.gem
   else
      set SFFILE=951023${HOUR}.gem
   endif 
   sfmap << EOF
   sfparm = 
   proj = nps
   garea = ia
   clear = $CLEAR
   dev = gf|lightning_plot.gif
   text = 1.2/23/1/hw
   title = ${MAP}/-2/Lightning Strikes Oct 23, 1995
   map = $MAP
   panel = .02;.02;.97;.97/1/1/4
   sffile = $SFFILE
   marker = ${COLOR}/2/.1/4/hw
   r
   
   e
EOF

   @ HOUR = $HOUR + 1
   @ COLOR = $COLOR - 1
   if($COLOR == 0) then
      set COLOR=$START_COLOR
   endif
   @ COUNT = $COUNT + 1
end

exit(0)
      

Return to the Walk Through Examples Table of Contents.
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690