<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">'d airx3std_006_te'</span></div><div><font face="arial, sans-serif">'gxyat -f -x 360 -y 180 out.png'</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"><<a href="mailto:christopher.s.lynnes@nasa.gov" target="_blank">christopher.s.lynnes@nasa.gov</a>></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'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>'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>'<br>
'set mproj off'<br>
'set gxout shaded'<br>
'set frame off'<br>
'set grid off'<br>
'set mpdraw off'<br>
'set xlab off'<br>
'set ylab off'<br>
'set grads off'<br>
'd airx3std_006_te'<br>
'printim out.png x360 y180'<br>
'quit'<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>
"Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity." -- 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="'comic sans ms', 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>