Re: Saving viewport to file

From: Paul Graham <meteorpaul_at_nyahnyahspammersnyahnyah>
Date: Thu Mar 27 2014 - 21:34:55 MDT

Hi Dave,

Thanks for your help. For the time-being, I've decided to use Imagemagick
to crop the viewport.

Paul

On 27 March 2014 05:43, David Brown <dbrown@ucar.edu> wrote:

> Hi Paul,
> Unfortunately not very well at the present time. If you are okay with a
> square viewport you can set the vpXF to 0., vpYF to 1.0, vpWidthF to 1.0,
> and vpHeightF to 1.0 and save to PNG. If your plot is geographic, then NCL
> will by default keep the aspect ratio determined by the projection. If this
> is not square then you will end up with white space (actually titles and
> tick mark labels, etc -- although you could turn all that stuff off) above
> and below or left and right of the viewport. You can force the aspect ratio
> to the viewport dimensions you have set by setting the resource mpShapeMode
> to "FreeAspect". You could trim white space using a post-processing tool
> like ImageMagick convert.
>
> We hope to be able to have a way to save just the viewport at any aspect
> ratio, hopefully along with projection information, using a format like
> geo-tiff. But it is still a ways off.
> -dave
>
>
> On Mar 24, 2014, at 6:11 PM, Paul Graham <meteorpaul@gmail.com> wrote:
>
> > Hi Everyone,
> >
> > What is the best way in NCL to output only the viewport to a file? Can
> this be done?
> >
> > Thanks in advance,
> >
> > Paul
> >
> >
> > _______________________________________________
> > ncl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Mar 27 21:35:07 2014

This archive was generated by hypermail 2.1.8 : Mon Mar 31 2014 - 11:47:09 MDT