[ncl-talk] unable to open multiple files

Geeta Geeta geetag54 at yahoo.com
Sun Nov 22 07:46:59 MST 2015


Hi 
I have to open 5 TRMM files 
Following is the part of the code. 
begin
  trmm_files    = systemfunc("ls 3B42_daily.20*.nc")
                  printVarSummary(trmm_files)

  open_trmm     = addfiles(trmm_files,"r")
                  printVarSummary(open_trmm)

  trmm_rf       = addfiles_GetVar(open_trmm,trmm_files,"r")
                  printVarSummary(trmm_rf)
  nfiles        = ListCount(open_trmm)
                  print(nfiles)
      ListSetType(open_trmm,"join")

  trmm_rf2011   = open_trmm(0)->r(:,:,:)
                  printVarSummary(open_trmm(0))
When I execute the script, I get an error....
NCAR Command Language Version 6.2.1
 The use of this software is governed by a License Agreement.
 See http://www.ncl.ucar.edu/ for more details.
fatal:syntax error: line 29 in file trmm-model-v1.ncl before or near ->r 
  trmm_rf2011   = open_trmm(0)->r
--------------------------------^

I dont know what's Going wrong.  When the line trmm_rf2011 =     
is executed, NONE of the PRINT statements are EXECUTED.....
Pls suggest??? Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151122/f6074de5/attachment.html 


More information about the ncl-talk mailing list