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

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--
>
--
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.