[ncl-talk] BUG: ncl_convert2nc and paths with spaces

David Brown dbrown at ucar.edu
Thu Oct 20 09:21:03 MDT 2016


Hi Steve,
We do know this is a problem with ncl_convert2nc and ncl_filedump. We
are working on a fix.
 -dave

On Tue, Oct 18, 2016 at 1:35 AM, Steve Jones <steve.jones at uib.no> wrote:
> Hi,
>
> I've been using ncl_convert2nc to convert some grib files. I've
> discovered that if the files are in a directory that has spaces in its
> name, the program will fail with the error:
>
> if: Expression Syntax
>
> This is because it doesn't escape the spaces (or quote the path, or
> whatever csh needs to do), so the structure of the if statement gets
> broken. I don't have the exact line that fails to hand, but running
>
> csh -x ncl_convert2nc <file>
>
> will give the line that fails.
>
>
> I assume that this will also fail for files with spaces in their names,
> but I haven't tried it.
>
> I haven't tried any other NCL commands to know how widespread the
> problem is.
>
> Cheers,
> Steve.
> _______________________________________________
> 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