Re: help with multiple files reading

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Thu, 15 Oct 2009 01:14:01 -0600

Please use the 'printVarSummary' procedure to get an overview of the
variable. Use 'dimsizes' or 'getfilevardimsizes' to determne the
size and shape of arrays.

  files = systemfunc("ls *.nc")
  f = addfiles(files, "r")
  T = f[:]->T

  printVarSummary( T )

  dimT = dimsizes(T)
  print(dimT)
  rank = dimsizes(dimT)
  print("rank="+rank)

Yang Yang wrote:
> Hello:
>
> I have 30 nc files conting T(time, lat,lon), For some, the time length is 126; for other, the time length is 130. If I do the multiple files reading:
>
> files = systemfunc("ls *.nc")
> f = addfiles(files, "r")
> T = f[:] -> T
>
> now what is the dimension of T? Is it T(30,time,lat,lon)? What is the time length? it is 126 or 130?
>
> Thanks!
>
> Regards
> Ed
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Oct 15 2009 - 01:14:01 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 15 2009 - 09:30:48 MDT