Re: boundary crop

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue Sep 17 2013 - 14:04:48 MDT

You could do this from within the NCL script.
Also, remove the original plot [if desired].
This goes from ps =>png

Modify s needed.

   pltType = "ps" ; "pdf" "eps" "epsi" "ps" "x11"
   pltName = "FOO"

   wks = gsn_open_wks(pltType, pltName) ; ==> FOO.ps

   pltSource = pltName+"."+pltType
   pltDest = pltName+".png"
   system("convert -alpha off -background white -density 300 -trim " \
          +pltSource+" "+pltDest+" ; /bin/rm -f "+pltSource)

On 9/17/13 1:51 PM, 朱学明 wrote:
> That's great. Thanks,Karin.
>
> 2013-09-18
>
>
>
> 朱学明
>
>
>
> 发件人:Karin Meier-Fleischer <meier-fleischer@dkrz.de>
> 发送时间:2013-09-18 03:49
> 主题:Re: [ncl-talk] boundary crop
> 收件人:"朱学明"<557xiaozhu@163.com>
> 抄送:"ncl-talk@ucar.edu USERS"<ncl-talk@ucar.edu>
>
> Hi,
>
>
> try ImageMagicks program convert to crop white space around the plot:
>
>
> convert -alpha off -background white -density 300 -trim <input file> <output file>
>
>
> Bye,
> Karin
>
>
> Am 17.09.2013 um 21:35 schrieb 朱学明 <557xiaozhu@163.com>:
>
>
> Hi all,
> Anyone know how to crop the borders of pictures in NCL? There are too many blank areas in my pictures.
>
> Thanks.
>
> 2013-09-18
>
>
>
> 朱学明
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
> _________________________________
> Karin Meier-Fleischer
> Deutsches Klimarechenzentrum GmbH
>
> Application Support
> Visualization
> Bundesstrasse 45a
> D-20146 Hamburg, Germany
>
> E-Mail: meier-fleischer@dkrz.de
> Internet: http://www.dkrz.de/
> Phone: +49 40 460094 126
> Fax: +49 40 460094 270
>
>
>
> _______________________________________________
> 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 Tue Sep 17 14:04:59 2013

This archive was generated by hypermail 2.1.8 : Wed Sep 18 2013 - 17:07:30 MDT