Re: reading dimensions from a netcdf

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed, 4 Oct 2006 13:18:20 -0600 (MDT)

Yes printVarSummary is one approach.

Actually, I am not clear what it is that you want. :-(

   getvardims turns all the dimension names in a *file*
   getfiledimsizes returns all di dimensions for a *file*
   http://www.ncl.ucar.edu/Document/Functions/Built-in/getfiledims.shtml
   http://www.ncl.ucar.edu/Document/Functions/Built-in/getfiledimsizes.shtml

D

On Wed, 4 Oct 2006, Scott Capps wrote:
> I use printVarSummary(variablename) to retrieve variable dimensions and
> attributes.
> Scott
>
> Larry McDaniel wrote:
> > Hi
> >
> > how do I read the array dimensions from netcdf file?
> >
> > rhythm:/home/lmcd/NARCCAP> ncdump -h air.2m.gauss.1979.nc
> > netcdf air.2m.gauss.1979 {
> > dimensions:
> > lon = 192 ;
> > lat = 94 ;
> > level = 1 ;
> > time = UNLIMITED ; // (1460 currently)
> > variables:
> >
> > thanks
> > Larry
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Oct 04 2006 - 13:18:20 MDT

This archive was generated by hypermail 2.2.0 : Wed Oct 04 2006 - 17:47:31 MDT