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.
Neil, The xw (and therefore gf) drivers search for coltbl.xwp in the following order/location: <from fltbop.f> C* 1. filename (local) * C* 2. path/filename (TABLE as given) * <- not applicable here C* 3. $NCDESK/type/filename * C* 4. $NCSITE/type/filename * C* 5. $GEMTBL/type/filename * where type is the name "color", so the last location searched ins $GEMTBL/color. You could utilize the other locations, such as $NCDESK/colors/coltbl.xwp (where NCDESK is appropriate the the specific host nfs mounting the work directory). The name coltbl.xwp is used by the device driver, unless the program makes a specific call to the gplt routine GSCTBL to define the color table name- which none of the GEMPAK programs are doing, but could be done by. In the past, I have also done things such as edit the device driver code to search for an environmental variable name first before using the default coltbl.xwp file name (eg $GEMCOLTBL). Steve Chiswell >From: "Neil R. Smith" <address@hidden> >Organization: UCAR/Unidata >Keywords: 200307082251.h68MpOLd022632 > >--=-44/jBRIV/Tz0M5T1Mic6 >Content-Type: text/plain >Content-Transfer-Encoding: 7bit > >Hi folks. I sent this out last week to support and to the gembud list. >I got replies from a few gemuds but none from support@unidata. Would >you offer a suggestion or ruling on this please? >Thanks. -Neil >-- >Neil R. Smith, Comp. Sys. Mngr. address@hidden >Dept. Atmospheric Sci., Texas A&M Univ. 979/845-6272 FAX:979/862-4466 > >--=-44/jBRIV/Tz0M5T1Mic6 >Content-Disposition: inline >Content-Description: Forwarded message - scripted GEMPAK, and color table > selection >Content-Type: message/rfc822 > >Received: from smtp-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) > by ariel.met.tamu.edu (8.8.8+Sun/8.8.8) with ESMTP id QAA06091; Thu, 3 > Jul > 2003 16:37:38 -0500 (CDT) >Received: from unidata.ucar.edu (address@hidden > [128.117.140.62]) by smtp-relay.tamu.edu (8.12.9/8.12.9) with ESMTP id > h63LavYm028251; Thu, 3 Jul 2003 16:36:58 -0500 (CDT) >Received: (from majordo@localhost) by unidata.ucar.edu (UCAR/Unidata) id > h63LaGST023223 for gembud-out; Thu, 3 Jul 2003 15:36:16 -0600 (MDT) >Received: from ariel.met.tamu.edu (ariel.met.tamu.edu [128.194.104.175]) by > unidata.ucar.edu (UCAR/Unidata) with ESMTP id h63LaELd023209; Thu, 3 Ju > l > 2003 15:36:14 -0600 (MDT) >Organization: UCAR/Unidata >Keywords: 200307032136.h63LaELd023209 >Received: from penny.met.tamu.edu (penny [128.194.105.164]) by > ariel.met.tamu.edu (8.8.8+Sun/8.8.8) with ESMTP id QAA06070; Thu, 3 Jul > 2003 16:36:48 -0500 (CDT) >Subject: scripted GEMPAK, and color table selection >From: "Neil R. Smith" <address@hidden> >To: address@hidden >Cc: address@hidden >Content-Type: text/plain >Content-Transfer-Encoding: 7bit >X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) >Date: 03 Jul 2003 16:36:13 -0500 >Message-Id: <address@hidden> >Mime-Version: 1.0 >Sender: address@hidden >Precedence: bulk >X-UIDL: b304d0b10d71bb6b4088dd1baa462034 > >Hi, >In GEMPAK 5.6j : >Can you specify a customized color table in place of coltbl.xwp? > >I've got scripted gempak gif generation from an earlier gempak >version, 5.4 and earlier, which used a locally written program >(by Dr. John Nielsen-Gammon) to set the local custom color table >file to be used for gdplot, etc., in the script for that product >generation. The job environment had several scripts located in the >same directory with each cron'd to run at the given time. > >I see thru a search of the support archives that one can place a >custom version of coltbl.xwp, by that name, in the shell's present >working directory, and gdplot, etc., will read it before using >$GEMTBL/colors/coltbl.xwp. I can script an overwrite of 'coltbl.xwp' >in the PWD for that job run, but there may be more than one gdplot >script running at the same time, or more generally, more that one >computer running these scripts out of the network-mounted script >directory, leading to possible color table over-write at the >wrong time. > >Is there a way to specify a desired colortable by filename for any >given execution of a gempak routine? > >Thanks, >-Neil >-- >Neil R. Smith, Comp. Sys. Mngr. address@hidden >Dept. Atmospheric Sci., Texas A&M Univ. 979/845-6272 FAX:979/862-4466 > > > >--=-44/jBRIV/Tz0M5T1Mic6-- > >From address@hidden Thu Jul 3 16:57:39 2003 >Received: from ariel.met.tamu.edu (ariel.met.tamu.edu [128.194.104.175]) > by unidata.ucar.edu (UCAR/Unidata) with ESMTP id h63MvcLd007463; > Thu, 3 Jul 2003 16:57:38 -0600 (MDT) >Organization: UCAR/Unidata >Keywords: 200307032257.h63MvcLd007463 >Received: from penny.met.tamu.edu (penny [128.194.105.164]) > by ariel.met.tamu.edu (8.8.8+Sun/8.8.8) with ESMTP id RAA08591; > Thu, 3 Jul 2003 17:58:11 -0500 (CDT) >Subject: Re: scripted GEMPAK, and color table selection >From: "Neil R. Smith" <address@hidden> >To: "Patrick O'Reilly" <address@hidden> >Cc: address@hidden, address@hidden >In-Reply-To: <00ab01c341af$5b642d80$66f1a186@oreilly> >References: <address@hidden> > <00ab01c341af$5b642d80$66f1a186@oreilly> >Content-Type: text/plain >Content-Transfer-Encoding: 7bit >X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) >Date: 03 Jul 2003 17:57:37 -0500 >Message-Id: <address@hidden> >Mime-Version: 1.0 >X-Spam-Status: No, hits=-1.4 required=5.0 > tests=AWL,IN_REP_TO,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, > SIGNATURE_SHORT_DENSE,SPAM_PHRASE_01_02 > version=2.43 >X-Spam-Level: > >Thanks Pat, > >I was *Really* hoping I didn't have to put the scripts in their >separate directories. I've inherited this batch of scripts which >currently are rather large in number and complex (for generality), >and was looking for a way to 'port' them to gempak 5.6j in as close >to their current form as possible. > >Also, I had assumed that the gempak routines would be looking to read >the color table by specific filename: coltbl.xwp. But you seem to >suggest that gempak just wants to read any file of extension '.xwp'. >Is that right? > > >On Thu, 2003-07-03 at 17:06, Patrick O'Reilly wrote: >> Hi Neil, >> >> If you force the script to run in a directory created just for it, and then >> call the color table by filename you want, there shouldn't be a problem as >> each script will run in it's own directory, named whatever you want, then >> appended with the process number ($$). In the beginning of a nowrad script >> (csh) I run I have: >> >> #---------------------------------------------------------------------- >> # >> # Make a working directory for this script and move there >> # >> cd /export/home/gempak >> >> mkdir nowradwork.$$ >> >> cd nowradwork.$$ >> >> >> #---------------------------------------------------------------------- >> >> now everything runs in nowradwork.$$....Then remember to put at the end of >> the script: >> >> #---------------------------------------------------- >> # >> # Back out of working directory and remove it >> # >> cd .. >> >> rm -rf nowradwork.$$ >> >> #---------------------------------------------------- >> >> Then you can call your color table somewhere in the script before gempak >> programs run: >> >> cp coltbl_nowrad.xwp . >> >> Does this make sense? I have all my scripts run in their own directories to >> avoid such problems. I have 2 color tables coltbl_white.xwp and >> coltbl_black.xwp that seem to work this way. If I'm off base on the answer, >> let me know. >> >> Patrick >> _______________________________________ >> Patrick O'Reilly >> Meteorological Decision Support Scientist >> The STORM Project - University of Northern Iowa >> address@hidden ~ ph: 319-273-3789 >> http://www.uni.edu/storm >> >> "No trees were killed in the making of this e-mail...however, >> a large number of electrons were horribly inconvenienced." >> >> ----- Original Message ----- >> From: "Neil R. Smith" <address@hidden> >> To: <address@hidden> >> Cc: <address@hidden> >> Sent: Thursday, July 03, 2003 4:36 PM >> Subject: scripted GEMPAK, and color table selection >> >> >> > Hi, >> > In GEMPAK 5.6j : >> > Can you specify a customized color table in place of coltbl.xwp? >> > >> > I've got scripted gempak gif generation from an earlier gempak >> > version, 5.4 and earlier, which used a locally written program >> > (by Dr. John Nielsen-Gammon) to set the local custom color table >> > file to be used for gdplot, etc., in the script for that product >> > generation. The job environment had several scripts located in the >> > same directory with each cron'd to run at the given time. >> > >> > I see thru a search of the support archives that one can place a >> > custom version of coltbl.xwp, by that name, in the shell's present >> > working directory, and gdplot, etc., will read it before using >> > $GEMTBL/colors/coltbl.xwp. I can script an overwrite of 'coltbl.xwp' >> > in the PWD for that job run, but there may be more than one gdplot >> > script running at the same time, or more generally, more that one >> > computer running these scripts out of the network-mounted script >> > directory, leading to possible color table over-write at the >> > wrong time. >> > >> > Is there a way to specify a desired colortable by filename for any >> > given execution of a gempak routine? >> > >> > Thanks, >> > -Neil >> > -- >> > Neil R. Smith, Comp. Sys. Mngr. address@hidden >> > Dept. Atmospheric Sci., Texas A&M Univ. 979/845-6272 FAX:979/862-4466 >> > >> >> >-- >Neil R. Smith, Comp. Sys. Mngr. address@hidden >Dept. Atmospheric Sci., Texas A&M Univ. 979/845-6272 FAX:979/862-4466 > >From address@hidden Thu Jul 3 15:36:14 2003 >Received: from ariel.met.tamu.edu (ariel.met.tamu.edu [128.194.104.175]) > by unidata.ucar.edu (UCAR/Unidata) with ESMTP id h63LaELd023209; > Thu, 3 Jul 2003 15:36:14 -0600 (MDT) >Organization: UCAR/Unidata >Keywords: 200307032136.h63LaELd023209 >Received: from penny.met.tamu.edu (penny [128.194.105.164]) > by ariel.met.tamu.edu (8.8.8+Sun/8.8.8) with ESMTP id QAA06070; > Thu, 3 Jul 2003 16:36:48 -0500 (CDT) >Subject: scripted GEMPAK, and color table selection >From: "Neil R. Smith" <address@hidden> >To: address@hidden >Cc: address@hidden >Content-Type: text/plain >Content-Transfer-Encoding: 7bit >X-Mailer: Ximian Evolution 1.0.8 (1.0.8-10) >Date: 03 Jul 2003 16:36:13 -0500 >Message-Id: <address@hidden> >Mime-Version: 1.0 >X-Spam-Status: No, hits=-0.3 required=5.0 > tests=AWL,NOSPAM_INC,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_00_01 > version=2.43 >X-Spam-Level: > >Hi, >In GEMPAK 5.6j : >Can you specify a customized color table in place of coltbl.xwp? > >I've got scripted gempak gif generation from an earlier gempak >version, 5.4 and earlier, which used a locally written program >(by Dr. John Nielsen-Gammon) to set the local custom color table >file to be used for gdplot, etc., in the script for that product >generation. The job environment had several scripts located in the >same directory with each cron'd to run at the given time. > >I see thru a search of the support archives that one can place a >custom version of coltbl.xwp, by that name, in the shell's present >working directory, and gdplot, etc., will read it before using >$GEMTBL/colors/coltbl.xwp. I can script an overwrite of 'coltbl.xwp' >in the PWD for that job run, but there may be more than one gdplot >script running at the same time, or more generally, more that one >computer running these scripts out of the network-mounted script >directory, leading to possible color table over-write at the >wrong time. > >Is there a way to specify a desired colortable by filename for any >given execution of a gempak routine? > >Thanks, >-Neil >-- >Neil R. Smith, Comp. Sys. Mngr. address@hidden >Dept. Atmospheric Sci., Texas A&M Univ. 979/845-6272 FAX:979/862-4466 > >From address@hidden Thu Jul 3 16:05:04 2003 >Received: from cougar.uni.edu (cougar.uni.edu [134.161.1.40]) > by unidata.ucar.edu (UCAR/Unidata) with ESMTP id h63M54Ld019901; > Thu, 3 Jul 2003 16:05:04 -0600 (MDT) >Organization: UCAR/Unidata >Keywords: 200307032205.h63M54Ld019901 >Received: from oreilly ([134.161.241.102]) by uni.edu (PMDF V6.2-X9 #30763) > with SMTP id <address@hidden>; Thu, > 03 Jul 2003 17:05:02 -0500 (CDT) >Date: Thu, 03 Jul 2003 17:06:30 -0500 >From: "Patrick O'Reilly" <address@hidden> >Subject: Re: scripted GEMPAK, and color table selection >To: "Neil R. Smith" <address@hidden>, address@hidden >Cc: address@hidden >Message-id: <00ab01c341af$5b642d80$66f1a186@oreilly> >MIME-version: 1.0 >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 >X-Mailer: Microsoft Outlook Express 6.00.2800.1106 >Content-type: text/plain; charset=iso-8859-1 >Content-transfer-encoding: 7bit >X-Priority: 3 >X-MSMail-priority: Normal >References: <address@hidden> >X-Spam-Status: No, hits=-0.1 required=5.0 > tests=AWL,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, > SPAM_PHRASE_01_02,USER_AGENT_OE > version=2.43 >X-Spam-Level: > >Hi Neil, > >If you force the script to run in a directory created just for it, and then >call the color table by filename you want, there shouldn't be a problem as >each script will run in it's own directory, named whatever you want, then >appended with the process number ($$). In the beginning of a nowrad script >(csh) I run I have: > >#---------------------------------------------------------------------- ># ># Make a working directory for this script and move there ># >cd /export/home/gempak > >mkdir nowradwork.$$ > >cd nowradwork.$$ > > >#---------------------------------------------------------------------- > >now everything runs in nowradwork.$$....Then remember to put at the end of >the script: > >#---------------------------------------------------- ># ># Back out of working directory and remove it ># >cd .. > >rm -rf nowradwork.$$ > >#---------------------------------------------------- > >Then you can call your color table somewhere in the script before gempak >programs run: > >cp coltbl_nowrad.xwp . > >Does this make sense? I have all my scripts run in their own directories to >avoid such problems. I have 2 color tables coltbl_white.xwp and >coltbl_black.xwp that seem to work this way. If I'm off base on the answer, >let me know. > >Patrick >_______________________________________ >Patrick O'Reilly >Meteorological Decision Support Scientist >The STORM Project - University of Northern Iowa >address@hidden ~ ph: 319-273-3789 >http://www.uni.edu/storm > >"No trees were killed in the making of this e-mail...however, >a large number of electrons were horribly inconvenienced." > >----- Original Message ----- >From: "Neil R. Smith" <address@hidden> >To: <address@hidden> >Cc: <address@hidden> >Sent: Thursday, July 03, 2003 4:36 PM >Subject: scripted GEMPAK, and color table selection > > >> Hi, >> In GEMPAK 5.6j : >> Can you specify a customized color table in place of coltbl.xwp? >> >> I've got scripted gempak gif generation from an earlier gempak >> version, 5.4 and earlier, which used a locally written program >> (by Dr. John Nielsen-Gammon) to set the local custom color table >> file to be used for gdplot, etc., in the script for that product >> generation. The job environment had several scripts located in the >> same directory with each cron'd to run at the given time. >> >> I see thru a search of the support archives that one can place a >> custom version of coltbl.xwp, by that name, in the shell's present >> working directory, and gdplot, etc., will read it before using >> $GEMTBL/colors/coltbl.xwp. I can script an overwrite of 'coltbl.xwp' >> in the PWD for that job run, but there may be more than one gdplot >> script running at the same time, or more generally, more that one >> computer running these scripts out of the network-mounted script >> directory, leading to possible color table over-write at the >> wrong time. >> >> Is there a way to specify a desired colortable by filename for any >> given execution of a gempak routine? >> >> Thanks, >> -Neil >> -- >> Neil R. Smith, Comp. Sys. Mngr. address@hidden >> Dept. Atmospheric Sci., Texas A&M Univ. 979/845-6272 FAX:979/862-4466 >> >