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

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

Re: Printing DIFAX maps.



On Tue, 18 Jan 2000, J. Christopher Clarke wrote:

> Hello everyone,
> 
> 	We have just upgraded our LDM server and found that
> we have lost all of our scripts needed to print DIFAX maps.  Does
> anyone know of a resource that we could use in order to print
> selected DIFAX maps as they come in?   We used to have a
> script that would do such a thing, but it was lost in the upgrade,
> and the link from UNIDATA is invalid.  Any ideas on how to proceed
> at this point?
> 
> Thanks
> 
> Chris Clarke

Hi Chris,

Try this. This works with Linux RH 6.0 using PBMPLUS. Should work with
other UNIX flavors. Call this from your pqact.conf with an "EXEC" to this
script, like:

DIFAX	^(2003).*	EXEC /home/scripts/convert_difax \1

#!/bin/sh
#
# Script to print the DIFAX charts.
#
LD_LIBRARY_PATH=/opt/SUNWspro/lib:/usr/openwin/lib:/usr/local/lib:/usr/ucblib
export LD_LIBRARY_PATH
dt=`/bin/date -u +%y%m%d`
/usr/bin/g3topbm /home/data/difax/$dt'_'$1.g3|/usr/bin/pnmtops|/usr/bin/lpr


 
 
  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