Re: problem with spaces in path

From: Xavier Corredor Llano <xcorredorl_at_nyahnyahspammersnyahnyah>
Date: Wed Aug 29 2012 - 12:36:45 MDT

On Mié 29 Aug 2012 12:13:47 PM Adam Phillips wrote:
> Hi Xavier,
> This behavior seems to be localized to gsn_open_wks.. Other NCL
> functions seem to accept directory names with spaces. I was able to
> specify a directory with spaces in asciiwrite, for instance. A NCL
> developer will have to look at this.
>
> The work around is to either change the name of your directory or to
> open a workstation window in a different directory and move the
> resulting file when the script is compete:
>
> opath = "/home/user/"
> fn = "map"
> wks = gsn_open_wks("png", opath+fn)
> .......
> delete(wks)
> npath = "/home/user/directory\ with\ spaces/"
> system("mv "+opath+fn".png "+npath+fn+".png")
>
> Hope that helps! Adam

mmm yeah works, it isn't the best solution but it works,

thanks Adam (and Alan)

-- 
Xavier Corredor Llano
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Aug 29 12:36:59 2012

This archive was generated by hypermail 2.1.8 : Tue Sep 11 2012 - 15:30:42 MDT