[ncl-talk] unable to open multiple files

Geeta Geeta geetag54 at yahoo.com
Sun Nov 22 10:46:27 MST 2015


thanks Dennis. 
I want to know if "join" will add the data???. 
Now I have kept the default option as "cat" only. 
But I am facing small problem. 
when I use "ls -l" below

trmm_files    = systemfunc("ls -l 3B42_daily.20*.nc")    ; with ls -l printVarSummary is not shown. 
                  printVarSummary(trmm_files)

I dont get the output.  
Following are the data files. 
aditya at agniilap:~/geeta/ncl/TS_rain$ ls 3B42*
3B42_daily.2011.04.22.7.nc  3B42_daily.2014.06.05.7.nc
3B42_daily.2013.05.22.7.nc  3B42_daily.2015.04.23.7.nc
3B42_daily.2014.06.02.7.nc


Can I also get the time info for each file printed for me so that I know that the variable trmm_rf2011 has ONLY 2011 data???
  trmm_files    = systemfunc("ls 3B42_daily.20*.nc")
  date_files    = systemfunc("ncdump -h 3B42_daily.20*.nc")
                  printVarSummary(trmm_files)
                  printVarSummary(date_files)

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

  nfiles        = ListCount(trmm)
                  print(nfiles)
      ListSetType(trmm,"cat")

  trmm_rf2011   = trmm[0]->r
                  printVarSummary(trmm_rf2011)
  trmm_rf2013   = trmm[1]->r
                  printVarSummary(trmm_rf2013)
  trmm_rf2014a  = trmm[2]->r
                  printVarSummary(trmm_rf2014a)
  trmm_rf2014b  = trmm[3]->r
                  printVarSummary(trmm_rf2014b)
  trmm_rf2015   = trmm[4]->r
                  printVarSummary(trmm_rf2015)


In the printVarSummary, I dont get the time info of each file....
 Geeta.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151122/1bc605fb/attachment.html 


More information about the ncl-talk mailing list