<div dir="ltr">Chris,<div><br></div><div>Here is another not well known trick. If you are using opengrads 2.0.2.oga.1 or earlier (which includes gxyat), you can create a naked image very simply with the -f option:</div><div>
<br></div><div><span style="font-family:arial,sans-serif;font-size:13px">&#39;d airx3std_006_te&#39;</span></div><div><font face="arial, sans-serif">&#39;gxyat -f -x 360 -y 180 out.png&#39;</font></div><div><font face="arial, sans-serif"><br>
</font></div><div><font face="arial, sans-serif">While on the screen you will see a labels, margins, etc, the image file created this way contains only the inner part, with no margins or labels of any kind, see attached. </font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">Notice that gxyat/printim has been dropped for grads 2.1 because gxprint provides similar functionality. However, I think gxprint does not yet include the -f option.</font></div>
<div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">     Arlindo</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><br></font><div><br>
</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 5, 2014 at 6:15 PM, Lynnes, Christopher S. (GSFC-6102) <span dir="ltr">&lt;<a href="mailto:christopher.s.lynnes@nasa.gov" target="_blank">christopher.s.lynnes@nasa.gov</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
I&#39;m trying to draw a map without decorations to a PNG file, and filling an entire area (so I can hand it off to a WMS server).  For a global 360x180 file, I am scripting:
<div>&#39;sdfopen <a href="http://timeAvg.AIRX3STD_006_Temperature_A.20120101-20120101.180W_90S_180E_90N.925hPa.nc" target="_blank">timeAvg.AIRX3STD_006_Temperature_A.20120101-20120101.180W_90S_180E_90N.925hPa.nc</a>&#39;<br>

&#39;set mproj off&#39;<br>
&#39;set gxout shaded&#39;<br>
&#39;set frame off&#39;<br>
&#39;set grid off&#39;<br>
&#39;set mpdraw off&#39;<br>
&#39;set xlab off&#39;<br>
&#39;set ylab off&#39;<br>
&#39;set grads off&#39;<br>
&#39;d airx3std_006_te&#39;<br>
&#39;printim out.png x360 y180&#39;<br>
&#39;quit&#39;<br>
<br>
</div>
<div>But it still leaves margins around the edges, even if I use the -geometry arg on the command line (-geometry 360x180+0+0).</div>
<div><br>
</div>
<div><img height="180" width="360" src="cid:178304D5-EBB5-4964-886F-88814FEDF811@gsfc.nasa.gov"></div>
<div>
<div>--<br>
Dr. Christopher Lynnes     NASA/GSFC, Code 610.2    phone: <a href="tel:301-614-5185" value="+13016145185" target="_blank">301-614-5185</a><br>
&quot;Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that&#39;s creativity.&quot; -- C. Mingus<br>
<br>
</div>
<br>
</div>
</div>

<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="&#39;comic sans ms&#39;, sans-serif" size="6" color="#006600"><span style="font-family:Helvetica;font-size:12px"></span><span></span><span></span>Arlindo da Silva</font><br>
<font size="4"><i><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a></i></font>
</div>