[ncl-talk] Problem with ncl in cygwin
David Brown
dbrown at ucar.edu
Tue Jul 28 12:54:12 MDT 2015
Yes a workaround would be to create a symbolic link to your directory
with spaces using a name without spaces.
-dave
On Tue, Jul 28, 2015 at 12:46 PM, Lara Gunn <lara.n.gunn at gmail.com> wrote:
> Well that is interesting and here was i hoping i had just missed something
> obvious.
>
> I may write a work around, like just put another directory on the u drive!
>
> That's
>
> On Jul 28, 2015 7:33 PM, "David Brown" <dbrown at ucar.edu> wrote:
>>
>> I believe that this is more than just a problem with Cygwin. There is
>> a currently open ticket (NCL-1539) with the title:
>> "addfile and gsn_open_wks do not work with directory paths that have
>> spaces in the names (even when escaped properly)"
>>
>> We need to look into this further.
>> -dave
>>
>>
>>
>> On Tue, Jul 28, 2015 at 11:49 AM, Lara Gunn <lara.n.gunn at gmail.com> wrote:
>> > Hi Rick
>> >
>> > Thanks for that reply but yes I thought of that already and it didn't
>> > work.
>> > I also tried putting it in double quotes.
>> >
>> > Thanks though I am sure it will be along those lines when I eventually
>> > figure it out.
>> >
>> > Lara
>> >
>> > On Tuesday, July 28, 2015, Rick Brownrigg <brownrig at ucar.edu> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I don't have a cygwin box to test this, but perhaps you need to escape
>> >> the
>> >> spaces, even though they appear between quotations (?):
>> >>
>> >> filename = "/cygdrive/u/Trading\ -\ Power/image"
>> >>
>> >> HTH...
>> >> Rick
>> >>
>> >> On Tue, Jul 28, 2015 at 8:29 AM, Lara Gunn <lara.n.gunn at gmail.com>
>> >> wrote:
>> >>>
>> >>> Hi
>> >>>
>> >>> I am currently running ncl 6.2.1 in cygwin and I am having an issue
>> >>> writing to a folder on a mapped directory to my windows system.
>> >>>
>> >>> I can write a file to one directory (NOTE THIS CODE WORKS)
>> >>>
>> >>> filename = "/cygdrive/u/Meteorology/image"
>> >>> wks = gsn_open_wks("png",filename)
>> >>>
>> >>> but not to this one
>> >>>
>> >>> filename = "/cygdrive/u/Trading - Power/image"
>> >>>
>> >>> I have tried a few things including writing the image to a different
>> >>> directory then using a shell script to move it, but I am trying to set
>> >>> something up that needs to be done fast so the move takes too long.
>> >>>
>> >>> Does anyone have an idea of how I create a image in a directory that
>> >>> has
>> >>> spaces in the file anme please?
>> >>>
>> >>> Thanks for your time
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> ncl-talk mailing list
>> >>> ncl-talk at ucar.edu
>> >>> List instructions, subscriber options, unsubscribe:
>> >>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>> >>>
>> >>
>> >
>> > _______________________________________________
>> > ncl-talk mailing list
>> > ncl-talk at ucar.edu
>> > List instructions, subscriber options, unsubscribe:
>> > http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>> >
More information about the ncl-talk
mailing list