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

[GEMPAK #DQP-871228]: Blank satellite image



Jamie,

One problem I see below is you have defined lutfil=$GEMTBL/visgray.tbl.
That is not the location of the table in GEMPAK, and would prevent the program
from looking in the $GEMTBL/luts directory for visgray.tbl. You should instead 
just
have lutfil=visgray.tbl, or lutfil=default. Since the color table is likely
not being found, that may be the root cause of your blank image.

Other possibilities are you have hung some gplt
processes along the way. Try running the gempak script "cleanup -c"
to remove message queues and semaphores along with killing off ang gplt
processes. You can review the GEMPAK tutorial regarding the unix "ipcs" command 
and the
way GEMPAK processes communicate using message queues.

Steve Chiswell
Unidata User Support



> I have been using a script that creates a png file out of the WEST-CONUS sat
> data. It was working a week ago now when I run the csh it creates a blank 
> image
> with no title and no state lines at all, just a black image. I'm not sure how 
> to
> fix this and any help would be nice. Also, there is data in the directory and
> Ntl projects the west conus just fine.
> 
> SCRIPT
> #!/bin/csh
> 
> #####################################################################################
> 
> # Program:    vis_sat
> 
> # Purpose:    to make sat pngs for use with GRLevel3 from gempak routines
> 
> #             this script should be run 15 and 45 after the hour
> 
> # Version:    1.0
> 
> # Created:    edited from original script by Mark Laufersweiler  
> (address@hidden)
> 
> #
> 
> # Modified:   Mod from a file that creates gif for the web
> 
> #
> 
> #####################################################################################
> 
> # curiously, when run from crontab, the following statement is required.
> 
> #see: 
> http://www.unidata.ucar.edu/support/help/MailArchives/gempak/msg00343.html
> 
> setenv DISPLAY :1.0
> 
> set timenow=`/bin/date`
> 
> cd /home/uas/Scripts #put PNGs in a folder
> 
> source /home/uas/Scripts/Gemenviron
> 
> 
> 
> #   set gempak parameters
> 
> set x = 1200 ; set y = 1200
> 
> set png = "vis_sat.png"
> 
> rm -f $png
> 
> #  enhancement tables, list of which are located in $GEMTBL
> 
> #  located at: /apps/nawips/NAWIPS/gempak/tables/luts
> 
> 
> 
> set lutfil = $GEMTBL/visgray.tbl
> 
> 
> 
> #  gemexe parameter set to blank but could be used to
> 
> #  overlay data on satellite
> 
> set sfparm = "blnk"
> 
> set clr =  "2;15;25;24;24;23;23;11;32;2"
> 
> set txt = "0.9/13/1/hw"
> 
> set map = "31/10"
> 
> set filt = .5
> 
> #  map boundaries
> 
> set maparea = "35.10;-109.10;42.10;-101.90"
> 
> #  map projection which needs to be set to sat
> 
> set map_proj = "SAT/90.0;-100.0;0.0"
> 
> #set map_proj = "sat"
> 
> 
> 
> 
> 
> #
> 
> # set data files and time for current DTG
> 
> #
> 
> #  current surface map
> 
> #
> 
> set cursao = `ls -t $SAO/*sao.gem | head -1`
> 
> #   current satellite image
> 
> #
> 
> set cursat = `ls -t /data/images/GINI/WEST-CONUS/1km/VIS/* |head -1`
> 
> #  get the hour/minute that the sat file is valid
> 
> set curtim = `ls -t /data/images/GINI/WEST-CONUS/1km/VIS/* |head -1 | cut -d_ 
> -f3`
> 
> #  get the current hour from the filename
> 
> set curhour = `ls -t /data/images/GINI/WEST-CONUS/1km/VIS/* |head -1 | cut -d_
> -f3 | cut -c1-2`
> 
> 
> 
> echo "$cursao"
> 
> echo "$cursat"
> 
> echo "$curtim"
> 
> 
> 
> #  get from system current year,month, and day
> 
> set curyear   = `date -u +%Y`
> 
> set curmon    = `date -u +%h`
> 
> set curday    = `date -u +%d`
> 
> 
> 
> sfmap << eof
> 
> AREA     = GAREA
> 
> GAREA    = $maparea
> 
> SATFIL   = $cursat
> 
> RADFIL   =
> 
> SFPARM   = $sfparm
> 
> DATTIM   = $curday/$curhour
> 
> SFFILE   = $cursao
> 
> COLORS   = $clr
> 
> MAP      = $map
> 
> LATLON   = 0
> 
> MARKER   = 0
> 
> TITLE    = 2/-1/WEST-CONUS VIS $curday$curmon$curyear $curtim UTC
> 
> CLEAR    = yes
> 
> PANEL    = 0
> 
> DEVICE   = png | $png | $x;$y
> 
> PROJ     = $map_proj
> 
> FILTER   = $filt
> 
> TEXT     = $txt
> 
> LUTFIL   = $lutfil
> 
> SKPMIS   = NO
> 
> STNPLT   =
> 
> 
> 
> run
> 
> exit
> 
> 
> 
> eof
> 
> 
> 
> gpend
> 
> 
> 
> 
> ===================================
> Jamie Lahowetz
> Undergraduate of Meteorology
> University of Nebraska - Lincoln
> P: 402-304-0766
> M:address@hidden
> 
> 


Ticket Details
===================
Ticket ID: DQP-871228
Department: Support GEMPAK
Priority: Normal
Status: Closed