[gradsusr] How do I get a map to fill the entire output PNG?

Lynnes, Christopher S. (GSFC-6102) christopher.s.lynnes at nasa.gov
Thu Jun 5 18:15:04 EDT 2014

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:
'sdfopen timeAvg.AIRX3STD_006_Temperature_A.20120101-20120101.180W_90S_180E_90N.925hPa.nc'
'set mproj off'
'set gxout shaded'
'set frame off'
'set grid off'
'set mpdraw off'
'set xlab off'
'set ylab off'
'set grads off'
'd airx3std_006_te'
'printim out.png x360 y180'

But it still leaves margins around the edges, even if I use the -geometry arg on the command line (-geometry 360x180+0+0).

[cid:178304D5-EBB5-4964-886F-88814FEDF811 at gsfc.nasa.gov]
Dr. Christopher Lynnes     NASA/GSFC, Code 610.2    phone: 301-614-5185
"Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity." -- C. Mingus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140605/9b3cc316/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: out.png
Type: image/png
Size: 6631 bytes
Desc: out.png
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20140605/9b3cc316/attachment.png 

More information about the gradsusr mailing list