Re: crappy png output

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu Oct 20 2011 - 15:14:05 MDT

I also had problems. You can always use the following approach:

         pltDir = "./" ; this is the default
         pltType = "ps"
         pltName = "UGO"
         pltPath = pltDir+pltName
         pltPathType = pltPath+"."+pltType

         wks = gsn_open_wks(pltType,pltPath)

[snip]; after plot complete

         if (pltType.ne."x11") then
             pltPathPng = pltDir+pltName+".png"
             system("convert -density 128 -trim +repage "+pltPathType+"
"+pltPath.png")
             system("/bin/rm "+pltPathType)
         end if

google: ImageMagick convert density

The default is -density 72

On 10/20/2011 02:17 PM, Dave Allured wrote:
> Ugo,
>
> Please do not use the word "crappy" on the NCL list. In U.S.
> English it is a swear word, so it is rude and unprofessional. I say
> this because I assume you did not know this.
>
> I tried to look at your sample output file. I had the same problem
> that Mary did. There is no PNG file in the download.
>
> When you reply, please change the subject line to something more
> polite. Thank you.
>
> --Dave
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
======================================================
Dennis J. Shea                  tel: 303-497-1361    |
P.O. Box 3000                   fax: 303-497-1333    |
Climate Analysis Section                             |
Climate & Global Dynamics Div.                       |
National Center for Atmospheric Research             |
Boulder, CO  80307                                   |
USA                        email: shea 'at' ucar.edu |
======================================================
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Oct 20 15:14:12 2011

This archive was generated by hypermail 2.1.8 : Mon Oct 24 2011 - 09:29:35 MDT