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

20050606: 20050603: 20050603: DEVICE parameter specifications



Adam,

The starting point for writing batch scripts is in the tutorial:
http://my.unidata.ucar.edu/content/software/gempak/tutorial/batch.html
http://my.unidata.ucar.edu/content/software/gempak/tutorial/exam.html

A simple example script isprovided in the examples web section:
http://my.unidata.ucar.edu/content/software/gempak/examples/www/www.html

There are some more specific examples such as those shown for the gdradr images 
I produced:
http://my.unidata.ucar.edu/content/software/gempak/examples/gdradr/

Steve Chiswell
Unidata User Support


>From: "Adam Taylor" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200506032131.j53LVRZu015214

>Thanks.  I had looked and looked and I could not figure out why it wasn't
>working.  Is there a scripting-howto for gempak or something to that regard
>online?  
>
>Adam  
>
>-----Original Message-----
>From: Unidata Support [mailto:address@hidden] 
>Sent: Friday, June 03, 2005 4:31 PM
>To: Adam Taylor
>Cc: 'Unidata Support'
>Subject: 20050603: 20050603: DEVICE parameter specifications 
>
>
>Adam,
>
>you attached script is not calling gpend.
>Running gpend is necessary to flush the image from
>buffer to disk (eg,, no more overlays on that image will be done),
>and close down he current image, so that a new image with a different 
>data set or size can be created.
>
>Also, running gpend closes the message queues and gplt besides the 
>devide driver. If you have been killing processes, then you likely
>have a bunch of message queues hanging around, which you can remove with
>"cleanup -c". 
>
>Steve Chiswell
>Unidata User Support
>
>
>
>
>>From: "Adam Taylor" <address@hidden>
>>Organization: UCAR/Unidata
>>Keywords: 200506031756.j53Hu9Zu019116
>
>>Ok, using 500;500 for the DEVICE size I now have this problem.
>>
>>I can create the first image, with SHV and testshv.gif as the station and
>>filename.
>>
>>I can create the second image, with JAX and testjax.gif as the station and
>>filename.
>>
>>However, when I type in SHV and testshvagain.gif for the third run it looks
>>like everything worked ok but no file gets created.  The same thing hold
>>true with every other attempt after.
>>
>>There are also 3 instances of gplt and gif running when the third one
>>completes.  They don't seem to die and I have had to kill them off with sig
>>-9s just to get rid of them.
>>
>>Another thing is that if I change the sizes and re run the script without
>>killing the corresponding process mentioned above, it complaines of invalid
>>display coordinates.  Once I kill ALL of those process above it lets me
>>create another map.
>>
>>Any thoughts on why it is doing this?
>>
>>Adam
>>
>>-----Original Message-----
>>From: Unidata Support [mailto:address@hidden] 
>>Sent: Friday, June 03, 2005 12:56 PM
>>To: Adam Taylor
>Cc: 'Unidata Support'
>>Subject: 20050603: DEVICE parameter specifications 
>>
>>
>>Adam,
>>
>>The DEVICE size attributes for gif/gf/xw drivers are pixels,
>>so you are looking for a size like 500;500
>>for 500 by 500 pixels. Pixels are integer numbers (see phelp DEVICE).
>>
>>For the ps driver, the size is "inches", normally 8.5;11 (or 11;8.5)
>>for letter and 11;17 (17;11) for 11x17 paper if you have a printer with
>>the appropriate tray.
>>
>>Steve Chiswell
>>Unidata User Support
>>
>>
>>
>>>From: "Adam Taylor" <address@hidden>
>>>Organization: UCAR/Unidata
>>>Keywords: 200506031705.j53H5qZu012822
>>
>>>This is a multi-part message in MIME format.
>>>
>>>------=_NextPart_000_006D_01C56834.9BF2DCE0
>>>Content-Type: text/plain;
>>>     charset="US-ASCII"
>>>Content-Transfer-Encoding: 7bit
>>>
>>>I am trying to create a script for gpnexr2 so that you just have to hand
>it
>>>a station and a filename.  Here is my script below:
>>>
>>> 
>>>
>>>#!/bin/csh
>>>
>>> 
>>>
>>>source /home/users/weather/nawips/Gemenviron
>>>
>>> 
>>>
>>>set YMD=`date -u '+%y%m%d'`
>>>
>>> 
>>>
>>>echo -n "Enter the station ID to view: "
>>>
>>>set STATION=$<
>>>
>>> 
>>>
>>>echo -n "Enter the filename: "
>>>
>>>set FILENAME=$<
>>>
>>> 
>>>
>>>gpnexr2 << EOF
>>>
>>> MAP=6/1/1+3/1/2
>>>
>>> GAREA=${$STATION}+
>>>
>>> PROJ=RAD
>>>
>>> RADFIL=NEXRII|K${$STATION}
>>>
>>> LATLON=0
>>>
>>> TITLE=31
>>>
>>> TEXT=1
>>>
>>> CLEAR=YES
>>>
>>> DEVICE=GIF|/home/users/weather/${$FILENAME}.gif|???|C
>>>
>>> LUTFIL=default
>>>
>>> IMCBAR=31/V/LL/.005;.05/.85;.01|.7/1/1/hw
>>>
>>> TILT=.5
>>>
>>> RADPARM=dz
>>>
>>> RADTIM=last 
>>>
>>> r
>>>
>>> 
>>>
>>> e
>>>
>>>EOF
>>>
>>> 
>>>
>>>echo" "
>>>
>>>exit(0)
>>>
>>>#End of Shell Script
>>>
>>> 
>>>
>>>Now, I type in SHV into the first files and test into the second field the
>>>script asks.
>>>
>>> 
>>>
>>>It runs and I get my problem.  I have tried all combinations of x-y
>>>coordinates in the ??? part of the script and except for 1.0;1.0 I get
>this
>>>message:
>>>
>>> 
>>>
>>>[GEMPLT -60]  NIMCORD - Invalid image display coordinates.
>>>
>>> 
>>>
>>>I am at a lost to what coordinates that it wants.  If I do put 1.0;1.0 I
>>get
>>>a VERY small square as my gif file.
>>>
>>> 
>>>
>>>HELP!!!
>>>
>>> 
>>>
>>>Thanks
>>>
>>> 
>>>
>>>Adam Taylor
>>>
>>>Computing Center
>>>
>>>University of Louisiana at Monroe
>>>
>>> 
>>>
>>> 
>>>
>>>
>>>------=_NextPart_000_006D_01C56834.9BF2DCE0
>>>Content-Type: text/html;
>>>     charset="US-ASCII"
>>>Content-Transfer-Encoding: quoted-printable
>>>
>>><html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
>>>xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
>>>xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
>>>xmlns=3D"http://www.w3.org/TR/REC-html40";>
>>>
>>><head>
>>><meta http-equiv=3DContent-Type content=3D"text/html; =
>>>charset=3Dus-ascii">
>>><meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
>>><o:SmartTagType =
>>>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
>>> name=3D"PlaceName"/>
>>><o:SmartTagType =
>>>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
>>> name=3D"PlaceType"/>
>>><o:SmartTagType =
>>>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
>>> name=3D"City"/>
>>><o:SmartTagType =
>>>namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"
>>> name=3D"place"/>
>>><!--[if !mso]>
>>><style>
>>>st1\:*{behavior:url(#default#ieooui) }
>>></style>
>>><![endif]-->
>>><style>
>>><!--
>>> /* Style Definitions */
>>> p.MsoNormal, li.MsoNormal, div.MsoNormal
>>>     {margin:0in;
>>>     margin-bottom:.0001pt;
>>>     font-size:12.0pt;
>>>     font-family:"Times New Roman";}
>>>a:link, span.MsoHyperlink
>>>     {color:blue;
>>>     text-decoration:underline;}
>>>a:visited, span.MsoHyperlinkFollowed
>>>     {color:purple;
>>>     text-decoration:underline;}
>>>span.EmailStyle17
>>>     {mso-style-type:personal-compose;
>>>     font-family:Arial;
>>>     color:windowtext;}
>>>@page Section1
>>>     {size:8.5in 11.0in;
>>>     margin:1.0in 1.25in 1.0in 1.25in;}
>>>div.Section1
>>>     {page:Section1;}
>>>-->
>>></style>
>>>
>>></head>
>>>
>>><body lang=3DEN-US link=3Dblue vlink=3Dpurple>
>>>
>>><div class=3DSection1>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>I am trying to create a script for gpnexr2 so that =
>>>you just
>>>have to hand it a station and a filename.&nbsp; Here is my script =
>>>below:<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>#!/bin/csh<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>source =
>>>/home/users/weather/nawips/Gemenviron<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>set YMD=3D`date -u =
>>>'+%y%m%d'`<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>echo -n &quot;Enter the station ID to view: =
>>>&quot;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>set STATION=3D$&lt;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>echo &#8211;n &#8220;Enter the filename: =
>>>&#8220;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>set FILENAME=3D$&lt;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>gpnexr2 &lt;&lt; EOF<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;MAP=3D6/1/1+3/1/2<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;GAREA=3D${$STATION}+<o:p></o:p></span></font></p=
>>>>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;PROJ=3DRAD<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;RADFIL=3DNEXRII|K${$STATION}<o:p></o:p></span></=
>>>font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;LATLON=3D0<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;TITLE=3D31<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;TEXT=3D1<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;CLEAR=3DYES<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;DEVICE=3DGIF|/home/users/weather/${$FILENAME}.gi=
>>>f|<b><span
>>>style=3D'font-weight:bold'>???</span></b>|C<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;LUTFIL=3Ddefault<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;IMCBAR=3D31/V/LL/.005;.05/.85;.01|.7/1/1/hw<o:p>=
>>></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;TILT=3D.5<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;RADPARM=3Ddz<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;RADTIM=3Dlast <o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;r<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;e<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>EOF<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>&nbsp;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>echo&quot; &quot;<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>exit(0)<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>#End of Shell Script<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>Now, I type in SHV into the first files and test into =
>>>the second
>>>field the script asks.<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>It runs and I get my problem.&nbsp; I have tried all
>>>combinations of x-y coordinates in the <b><span =
>>>style=3D'font-weight:bold'>???</span></b>
>>>part of the script and except for 1.0;1.0 I get this =
>>>message:<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>[GEMPLT -60]&nbsp; NIMCORD - Invalid image display
>>>coordinates.<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>I am at a lost to what coordinates that it =
>>>wants.&nbsp; If I
>>>do put 1.0;1.0 I get a VERY small square as my gif =
>>>file.<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>HELP!!!<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>Thanks<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>Adam Taylor<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'>Computing Center<o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><st1:PlaceType w:st=3D"on"><font size=3D2 =
>>>face=3DArial><span
>>> =
>>>style=3D'font-size:10.0pt;font-family:Arial'>University</span></font></st=
>>>1:PlaceType><font
>>>size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;font-family:Arial'> of <st1:PlaceName
>>>w:st=3D"on">Louisiana</st1:PlaceName> at <st1:City =
>>>w:st=3D"on"><st1:place =
>>>w:st=3D"on">Monroe</st1:place></st1:City><o:p></o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>><p class=3DMsoNormal><font size=3D2 face=3DArial><span =
>>>style=3D'font-size:10.0pt;
>>>font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>
>>>
>>></div>
>>>
>>></body>
>>>
>>></html>
>>>
>>>------=_NextPart_000_006D_01C56834.9BF2DCE0--
>>>
>>--
>>***************************************************************************
>*
>><
>>Unidata User Support                                    UCAR Unidata
>Program
>><
>>(303)497-8643                                                  P.O. Box
>3000
>><
>>address@hidden                                   Boulder, CO
>80307
>><
>>---------------------------------------------------------------------------
>-
>><
>>Unidata WWW Service              http://my.unidata.ucar.edu/content/support
>><
>>---------------------------------------------------------------------------
>-
>><
>>NOTE: All email exchanges with Unidata User Support are recorded in the
>>Unidata inquiry tracking system and then made publicly available
>>through the web.  If you do not want to have your interactions made
>>available in this way, you must let us know in each email you send to us.
>>
>--
>****************************************************************************
><
>Unidata User Support                                    UCAR Unidata Program
><
>(303)497-8643                                                  P.O. Box 3000
><
>address@hidden                                   Boulder, CO 80307
><
>----------------------------------------------------------------------------
><
>Unidata WWW Service              http://my.unidata.ucar.edu/content/support
><
>----------------------------------------------------------------------------
><
>NOTE: All email exchanges with Unidata User Support are recorded in the
>Unidata inquiry tracking system and then made publicly available
>through the web.  If you do not want to have your interactions made
>available in this way, you must let us know in each email you send to us.
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web.  If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.