[ncl-talk] problem with gsn_csm_contour in drawing a globe

Guido Cioni guidocioni at gmail.com
Fri Apr 22 03:28:50 MDT 2016


Hey Frank,
I’m pretty sure (but not completely) that the first problem will be solved by setting gsnAddCyclic = False. For the second one it seems that you are correctly setting the gsnMaximize resource to True, so I don’t know what you could do… Can’t you just cut the resulting png file? It seems that changing the paper orientation wouldn't affect the plot since it is squared, but you can try to play around with the resources related to the Maximize option (maybe setting  gsnBoxMargin <https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnBoxMargin> to 0.0?); see hereinafter. 

gsnMaximize
If set to True, then any plot drawn by a gsn <https://www.ncl.ucar.edu/Document/Graphics/Interfaces/> function will be maximized in the workstation on which it is being drawn. For an X11 window or an NCGM file, this means the plot will be expanded to fill the biggest possible space within a square, with a small margin around all edges. You can get rid of this margin by setting gsnBoxMargin <https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnBoxMargin> to 0.0. The aspect ratio will be preserved. For a PostScript or PDF file, the plot will be expanded to fill the biggest possible space on an 8 1/2" x 11" sheet of paper.
For a PS or PDF file, you can change the default paper size, margins, or orientation with the resourcesgsnPaperOrientation <https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPaperOrientation>, gsnPaperMargin <https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPaperMargin>, gsnPaperWidth <https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPaperWidth>, and gsnPaperHeight <https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPaperHeight>
Guido Cioni
http://guidocioni.altervista.org <http://guidocioni.altervista.org/> 

> On 22 Apr 2016, at 11:19, Kreienkamp Frank <Frank.Kreienkamp at dwd.de> wrote:
> 
> Hello,
>  
> i am trying to draw a globe with a GCM orography. I nearly get what I want. Unfortunately I still have 1 interesting item. As you can see in the attached png-file I get at the Greenwich line no orography information. I have seen this before but I cant remember how to solve the problem.
>  
> A second but minor question is, how can I resize the drawing, that it fills nearly the complete drawing area. Not having a 20% black border an nearly each side.
>  
> How can this be solved? (I have also attached the ncl-file)
>  
> Thanks in advance
> Frank
>  
>  
>  
> <Globus_MPI_Oro.ncl><Globus_MPI_Oro.png>_______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <http://mailman.ucar.edu/mailman/listinfo/ncl-talk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160422/091614f1/attachment.html 


More information about the ncl-talk mailing list