Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Problem finding the dimension name

Hi
  I am using the netcdf library calls to write programs
to read data in a netcdf format. Here is a problem i am facing.

I want to be able to find out the dimension name in a netcdf file.
Your manual suggests the 2 calls 

ncdimid(int cdfid, char* name)

this calls tells me what the dimension id is given the "name"

ncdiminq(int cdfid, int dimid, char *name, long* size)

this calls returns the name of dimension in "name".. but i have
to give the dimension id in dimid..

This is like  a loop.. My question is how do i find out
the name of a dimension if i dont know its dimid..

Satish


 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690