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

Next: , Previous: Inquiry in F77, Up: Inquiry Functions



3.3.3 Inquiry in Fortran 90

First use NF90_INQ, which will tell you how many variables and global attributes there are in the file. Then start with varid 1, and proceed to varid nvars, calling NF90_INQ_VAR.

For a typical sequence of calls to these functions, see See Reading a netCDF Dataset with Unknown Names (The NetCDF Fortran 90 Interface Guide).

NF90_INQ (The NetCDF Fortran 90 Interface Guide). Find number of dimensions, variables, and global attributes, and the unlimited dimid.


NF90_INQ_DIM (The NetCDF Fortran 90 Interface Guide). Find dimension name and length.


NF90_INQ_VARID (The NetCDF Fortran 90 Interface Guide). Find variable ID from its name.


NF90_INQ_VAR (The NetCDF Fortran 90 Interface Guide). Find variable name, type, num dimensions, dim IDs, and num attributes.


NF90_INQ_DIMID (The NetCDF Fortran 90 Interface Guide). Find dimension ID from its name.


NF90_INQ_DIM (The NetCDF Fortran 90 Interface Guide). Find dimension name and length.


NF90_INQ_ATT (The NetCDF Fortran 90 Interface Guide). Find attribute name, type, and length.


NF90_INQ_FORMAT (The NetCDF Fortran 90 Interface Guide). Find file format: classic or 64-bit offset


NF90_INQ_LIBVERS (The NetCDF Fortran 90 Interface Guide). Find the netCDF version. (Currently 4.0).
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of 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