This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
>From: Unidata User Support <address@hidden> >Organization: UCAR/Unidata >Keywords: 200010232223.e9NMNeg18948 gembud non-member submission Larry, The email that you attempted to post to the gembud email list describing PDF support for GEMPAK bounced. The email address you submitted this message from was: address@hidden. You are subscribed with the address: address@hidden. In order to successfully post to this and other Unidata-maintained lists, your the email address you submit from must match the one with which you are subscribed. Tom >From address@hidden Mon Oct 23 16:23:38 2000 >Received: from roper.uwyo.edu (pmdf@[129.72.10.8]) > by unidata.ucar.edu (UCAR/Unidata) with ESMTP id e9NMNc418935 > for <address@hidden>; Mon, 23 Oct 2000 16:23:38 -0600 (MDT) >Keywords: 200010232223.e9NMNc418935 >Received: from asuwlink.uwyo.edu (asuwlink.uwyo.edu [129.72.10.2]) > by ROPER.UWYO.EDU (PMDF V5.2-32 #33749) > with ESMTP id <address@hidden> for address@hidden; > Mon, 23 Oct 2000 16:23:01 -0600 (MDT) >Received: from coyote.uwyo.edu (address@hidden [129.72.27.38]) > by asuwlink.uwyo.edu (8.8.8/8.8.7) with ESMTP id QAA22131 for > <address@hidden>; Mon, 23 Oct 2000 16:23:01 -0600 (MDT) >Received: from uwyo.edu (IDENT:oolman@localhost.localdomain [127.0.0.1]) > by coyote.uwyo.edu (8.9.3/8.9.3) with ESMTP id QAA25130 for > <address@hidden>; Mon, 23 Oct 2000 16:23:01 -0600 >Date: Mon, 23 Oct 2000 16:23:01 -0600 >From: "Larry D. Oolman" <address@hidden> >Subject: PDF from GEMPAK >Sender: address@hidden To: address@hidden >Message-id: <address@hidden> >Organization: University of Wyoming >MIME-version: 1.0 >X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-3smp i686) >Content-type: multipart/mixed; boundary="------------A3E512D672ED7C7B1019FDB8" >X-Accept-Language: en > >This is a multi-part message in MIME format. >--------------A3E512D672ED7C7B1019FDB8 >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit > >Attached is a script I wrote that converts GEMPAK PostScript files that >are in landscape mode >to PDF. It uses ghostscript (gs). I thought it may be useful to >others. > >Larry Oolman >Department of Atmospheric Science >University of Wyoming >address@hidden >http://www-das.uwyo.edu >--------------A3E512D672ED7C7B1019FDB8 >Content-Type: text/plain; charset=us-ascii; > name="gemps2pdf" >Content-Transfer-Encoding: 7bit >Content-Disposition: inline; > filename="gemps2pdf" > >#!/bin/sh > ># ># Convert GEMPAK PostScript files in landscape mode to PDF. ># Requires that ghostscript (gs) is installed and in the execution PATH. ># ># Uses sed to strip out the page translation and rotation and then ># pipes the output to gs to convert to pdf using a page size of 11x8.5 inches. ># ># Written L.Oolman/UWYO 10/2000 ># > >function usage { > echo > echo gemps2pdf - convert GEMPAK landscape PostScript to PDF. > echo > echo usage: > echo " gemps2pdf psfile" > echo " where psfile is the name of the PostScript file" > echo > echo The PDF file has the same basename as the PostScript file with > echo an extenstin of .ps stripped and an extension of .pdf added. > echo > exit >} > >if [ "$1" = "" ] >then > usage >fi >if [ ! -f $1 ] >then > echo > echo "File: $1 does not exist." > usage >fi > >sed -e 's/8\.25/.25/' -e 's/translate 90 rotate/translate/' $1 | \ >gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=`basename $1 .ps`.pdf \ > -g7920x6120 -c save pop -f - > >--------------A3E512D672ED7C7B1019FDB8-- >