Re: Convert

From: Gustavo Correa <gus_at_nyahnyahspammersnyahnyah>
Date: Sun Apr 15 2012 - 16:24:48 MDT

Hi Guilherme

1) On the top of your program snippet you declared the variable 'name' [in English],
on the bottom, when you form the string 'remove', you use variable 'nome' [in Portuguese].
Is this a typo in your email or in the program?

2) The string 'remove'=... seems to have too many double quotes.
Did you mean to write this perhaps? [assuming the variable is 'nome' ...]
remove = "convert -trim FIG."+nome+".ps FIG."+nome+".png"

I hope this helps,
Gus Correa

On Apr 13, 2012, at 7:58 PM, Guilherme Martins wrote:

> Hi users
>
> I'm using the convert to change the extension of my files ".ps", but when I use it inside loop, I get error.
>
> May anyone help me?
>
> Thanks,
>
> Guilherme.
>
> do j = 8,9
> name = "H"
> .
> .
> .
> remove = "convert -trim "FIG."+nome+".ps" "FIG."+nome+".png""
> system(remove)
>
> end do
> end
>
> --
> Guilherme Martins
> http://guilhermemartins.hd1.com.br/
>
>
>
> _______________________________________________
> 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 Sun Apr 15 16:25:08 2012

This archive was generated by hypermail 2.1.8 : Fri Apr 20 2012 - 16:21:18 MDT