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

20010104: Virtual Frame Buffer




Mike,

You can obtain the Solaris binary for Xvfb from various locations
to create the virtual frame buffer:
http://www.unidata.ucar.edu/projects/coohl/mhonarc/MailArchives/gempak/msg03323.html

You can also use the non-X11 gif driver "gif" under GEMPAK 5.6A
(called "gif2" for GEMPAK 5.6). The hardware fonts available
from the X server using the "gf" driver will look better however.

Steve Chiswell
Unidata User Support


On Thu, 4 Jan 2001, Michael J. Brennan wrote:

> I have a cronjob runnign using GEMPAK to create some plots, and I'm
> having problems running it when I'm not logged into the workstation
> (Sun).  What is the best virtual frame buffer to use in this case?
> 
> Thanks,
> 
> Mike
> 
> #! /bin/csh
> #
> # Script to create a GEMPAK plot of THTW and MAG(GRAD(THTW))
> # Mike Brennan and Gary Lackmann
> # January 4, 2001
> setgem
> # new virtual frame buffer
> setenv DISPLAY :1.0
> cd /u1/mjb/gemscripts
> \rm gempak.gif
> #
> # Get the date (the -u option specified UTC)
> #
> set yy    = `date -u +%y`
> set mm    = `date -u +%m`
> set dd    = `date -u +%d`
> set hh    = `date -u +%H`
> set utc   = $yy$mm$dd"/"$hh
> set gfil = /fs/newdata/gempak/Realtime/$yy$mm$dd"00_eta211.gem"
> 
> #
> foreach gtime ( F00 F12 F24 F42 )
> #
> if ($gtime == "F00" ) set pan = 1/1//3
> if ($gtime == "F12" ) set pan = 2/1//3
> if ($gtime == "F24" ) set pan = 3/1//3
> if ($gtime == "F42" ) set pan = 4/1//3
> #
> set gdev = gf
> set glev = 700
> #
> #
> gdplot <<endinput
> 
> GDFILE   = $gfil
> GDATTIM  = $gtime
> GLEVEL   = $glev
> GVCORD   = PRES
> PANEL    = $pan
> SKIP     = 0
> SCALE    = 0
> GFUNC    = MAG(GRAD(mul(tmwk,exp(quo(1000,pres),KAPPA))))
> CTYPE          = F
> CINT   = 4
> FINT     = 4/16/
> FLINE    = 0;19;18;17;16;15;14;13;12;11
> SCALE    = 6
> LINE     = 1/1/1/2
> TITLE    = 1/-3/~ @ MAG(GRAD(THTW))*10**6
> CLEAR    = no 
> GAREA    = 25;-100;45;-70
> PROJ     = lcc
> MAP      = 8/1/1
> LATLON   = 0
> DEVICE   = $gdev
> STNPLT   = 
> SATFIL   = 
> RADFIL   = 
> TEXT     = .8/1//hw
> LUTFIL   = 
> CLRBAR   = 1
> run
> 
> GFUNC    = mul(tmwk,exp(quo(1000,pres),KAPPA))
> CTYPE    = C
> CONTUR   = 3
> CINT     = 1
> LINE     = 1/1/1/2
> TITLE    = 1/-2/~ @ THTW (K)
> TEXT     = .8/1//hw
> CLEAR    = NO
> SCALE    = 0
> run
> 
> exit
> endinput
> 
> end
> 
> gpend
>