RE: [pyngl-talk] Changing resolution of PNG output

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu, 9 Jun 2005 08:55:27 -0600 (MDT)

Alex and John,

First, let me start off by saying that the PNG driver in PyNGL is
still under development, as we've had some problems with it not
producing the expected colors. One of the developers may need to
step in and elaborate here.

However, if you are having success with the PNG driver, then you can
set the size by setting the wkWidth and wkHeight resources when you
open the PYNGL workstation. For example:

     rlist = Ngl.Resources()
     rlist.wkWidth = 1000
     rlist.wkHeight = 1000
     wks_type = "png"
     wks = Ngl.open_wks (wks_type,"clmdiv",rlist)

--Mary

On Wed, 8 Jun 2005, Ertl, John wrote:

> Alex,
>
> I have had the same question but I use ps2png for a web service and it works
> fast, but I only do one image at a time. You could also look at PIL (Python
> Image Library) I have not used it for changing size but it looks straight
> forward. I have been using PIL for anouther project and it is really nice
> to use.
>
> John Ertl
> former NWS
>
> -----Original Message-----
> From: Alex Ross
> To: pyngl-talk_at_ucar.edu
> Sent: 6/8/05 2:37 PM
> Subject: Changing resolution of PNG output
>
> I am using PyNGL's PNG output for use with a web application. I'd like
> to make the image file a bit larger than the 512x512 pixels that PyNGL
> defaults to. I have been unable to find a mention of how to do this
> anywhere on the PyNGL website or on the NCL website. Is it even
> possible?
>
> Also, I know that I could just output to postscript and use a utility to
>
> render my PNG. That method is SLOW, and not a reasonable solution.
>
> Thank you for your time.
>
> - Alex Ross
> Student Hire, National Weather Service
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
> _______________________________________________
> pyngl-talk mailing list
> pyngl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Thu Jun 09 2005 - 08:55:27 MDT

This archive was generated by hypermail 2.2.0 : Thu Jan 19 2006 - 21:31:53 MST