<div dir="ltr"><div><div>Hi Matthias,<br><br></div>That is very odd -- it works for me, both at bash command line and using systemfunc() from within NCL. Can you get systemfunc to return files from a directory without using "{}" notation, .i.e, "ls *" for example? Or simply "ls foo" where the file foo is known to exist in the current directory?<br><br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 10, 2017 at 10:15 AM, Matthias Demuzere <span dir="ltr"><<a href="mailto:matthias.demuzere@ugent.be" target="_blank">matthias.demuzere@ugent.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Dear all,<br>
<br>
I am currently testing the CVDP
(<a class="m_-5343628534096017979moz-txt-link-freetext" href="http://www.cesm.ucar.edu/working_groups/CVC/cvdp/" target="_blank">http://www.cesm.ucar.edu/<wbr>working_groups/CVC/cvdp/</a>) which is written
in ncl.<br>
Currently the software does not run because it can't find the proper
datasets. <br>
<br>
Finding the data is driven by the <b>systemfunc</b> command using
curly brackets (multiple options).<br>
For example, within ncl, I want to list all files that have one of
the following extension: .nc, .hdf, .pdf.<br>
<br>
This I do with:<br>
myFiles = systemfunc("ls /DIRECTORY/*{.nc,.hdf,.pdf}")<br>
<br>
If I fo this in ncl, I get an error: ls: cannot access
'/DIRECTORY/*{.nc,.hdf,.pdf}': No such file or directory<br>
<br>
Yet, when pasting ls /DIRECTORY/*{.nc,.hdf,.pdf} directly in my
system (ubuntu 16.04, 64bit) terminal, I do get a list of the finals
with this extension. So the expected result.<br>
<br>
I have tested this in ncl-6.3.0 and 6.2.1, but I have the same
problem in both.<br>
Did anyone else notice this before? Any idea on how to fix this?<br>
<br>
Thanks!<br>
<br>
Regards,<br>
Matthias<br>
<br>
<br>
<pre class="m_-5343628534096017979moz-signature" cols="72">--
Post-doctoral Research Fellow
_____________________________
UGent [Home]
Department of Forest and Water Management
Laboratory for Hydrology and Water Management
Coupure links 653, B-9000 Ghent, Belgium
Email: <a class="m_-5343628534096017979moz-txt-link-abbreviated" href="mailto:Matthias.demuzere@UGent.be" target="_blank">Matthias.demuzere@UGent.be</a>
Web: <a class="m_-5343628534096017979moz-txt-link-freetext" href="http://www.ugent.be/bw/dfwm/en/research/LHWM/staff/matthias" target="_blank">http://www.ugent.be/bw/dfwm/<wbr>en/research/LHWM/staff/<wbr>matthias</a>
KU Leuven [Affiliated]
Department of Earth & Environmental Sciences
Division of Geography and Tourism / Regional climate studies
Celestijnenlaan 200E, B-3001 Heverlee (Leuven), Belgium
Email: <a class="m_-5343628534096017979moz-txt-link-abbreviated" href="mailto:matthias.demuzere@kuleuven.be" target="_blank">matthias.demuzere@kuleuven.be</a>
Web: <a class="m_-5343628534096017979moz-txt-link-freetext" href="https://ees.kuleuven.be/geography/rcs" target="_blank">https://ees.kuleuven.be/<wbr>geography/rcs</a></pre>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>