[gradsusr] How do I get a map to fill the entire output PNG?
James T. Potemra
jimp at hawaii.edu
Fri Jun 6 15:45:13 EDT 2014
Hi Rupak,
I think the extra steps you list are only needed if you draw the map.
In Christopher's case with "mproj off" and "mpdraw off" (ditto
labels/grids, etc.), all you need to do is specify the parea. So, if
you start grads in landscape, "set parea 0.0 11.0 0.0 8.5" added to
Christopher's script will make a image without a border.
Jim
On 6/5/14 11:23 PM, Rupak Rajbhandari wrote:
> HI,
>
> There was similar query earlier and Jennifer has already addressed the
> issue. You may search the archive and find out. At that time I thought
> it would be useful so I copied the text (tested the instructions) and
> saved it. The instruction file is attached.
>
> -rupak
>
>
>
> On Fri, Jun 6, 2014 at 4:43 AM, James T. Potemra <jimp at hawaii.edu
> <mailto:jimp at hawaii.edu>> wrote:
>
> Hi Christopher,
>
> You can use the command "set parea" to print right to the edge.
> Let me know if you need an example.
>
> Jim
>
>
> On 6/5/14 12:15 PM, Lynnes, Christopher S. (GSFC-6102) wrote:
>> 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
>> <http://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'
>> 'quit'
>>
>> But it still leaves margins around the edges, even if I use the
>> -geometry arg on the command line (-geometry 360x180+0+0).
>>
>> --
>> Dr. Christopher Lynnes NASA/GSFC, Code 610.2 phone:
>> 301-614-5185 <tel:301-614-5185>
>> "Making the simple complicated is commonplace; making the
>> complicated simple, awesomely simple, that's creativity." -- C.
>> Mingus
>>
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
>> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org <mailto:gradsusr at gradsusr.org>
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140606/fa1c6228/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 6631 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20140606/fa1c6228/attachment.png
More information about the gradsusr
mailing list