[ncl-talk] add some nc file at once
Dennis Shea
shea at ucar.edu
Fri Nov 8 13:23:04 MST 2019
Setereh: Please read the *systemfunc* and *addfiles* documentation
I am sure you have local support to explain linux/unix expansion (re:
200[0-3] )
[i]
diri = "./" ; input directory
fili = "khuzetan_DUST04.200[0-3].nc" ; 2000, 2001, 2002, 2003
pthi = diri+fili
print("pthi="+pthi)
fils = *systemfunc*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml> ("ls
"+pthi) ; file paths
print(fils)
[ii]
a = *addfiles*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml> (fils,
"r") ; eg: example 5
On Fri, Nov 8, 2019 at 11:41 AM Rashed Mahmood via ncl-talk <
ncl-talk at ucar.edu> wrote:
> did you look at addfiles function?
> https://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml
>
> Cheers,
> Rashed
>
> On Fri, Nov 8, 2019 at 9:32 AM Setareh Rahimi via ncl-talk <
> ncl-talk at ucar.edu> wrote:
>
>> Dear all,
>> I need to add some nc files at once. For example 2000,2001,2002,2003
>> using
>> systemfunc . Anybody knows how can I do so?
>> Many thanks in advance,
>>
>> --
>> S.Rahimi
>>
>> _______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20191108/b68992dd/attachment.html>
More information about the ncl-talk
mailing list