[ncl-talk] (no subject)

Dennis Shea shea at ucar.edu
Tue Feb 26 06:18:43 MST 2019


[1] PLEASE put appropriate text in the "Subject" Henceforth, no one will
answer your question(s).

[2] PLEASE read ncl documentation *including the examples:*

     diri = "./"      ; input directory
     fils = *systemfunc*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml>("cd
"+diri+" ; ls foo*nc")  ; 'foo' is a core name
     nfils = *dimsizes*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/dimsizes.shtml>(fils)
     print("nfils="+nfils)

     do nf=0,nfils-1
          f = *addfile*
<https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml>(diri+fili(nf),
"r")
         x *:=* f->Variable_Name   ;  Use := if size may change
         ...
         ...
     end do

=====

There is also *addfiles*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/addfiles.shtml>

     diri = "./"      ; input directory
     fils = *systemfunc*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/systemfunc.shtml>("cd
"+diri+" ; ls foo*nc")  ; 'foo' is a core name
     nfils = *dimsizes*
<http://www.ncl.ucar.edu/Document/Functions/Built-in/dimsizes.shtml>(fils)
     print("nfils="+nfils)

     f = *addfiles*(diri+fili, "r")
     x = f[:]->Variable_Name

====
We do expect you to put in the effort to learn the language rather than
hust sending email after email.

Please reads: https://www.ncl.ucar.edu/Document/Manuals/NCL_User_Guide/




On Mon, Feb 25, 2019 at 9:27 PM Smrati Purwar <ritipurwar at gmail.com> wrote:

>
> hello i want to run same ncl script for multiple .nc file (approx 100 ).
> Its showing error for leap year like
> fatal:Dimension sizes of left hand side and right hand side of assignment
> do not match
>
> can i run all files in one time???
> --
> With Thanks & Regards
> Smrati Purwar
> Ph.D Scholar(CSIR-JRF)
> CSIR- 4th Paradigm Institute(CMMACS)
> NAL Belur Campus, Wind tunnel road
> Bangalore, India-560037
> _______________________________________________
> 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/20190226/3cc51a45/attachment.html>


More information about the ncl-talk mailing list