[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #WXF-497885]: About nf90_inq_nvars
- Subject: [netCDF #WXF-497885]: About nf90_inq_nvars
- Date: Mon, 20 Jul 2009 12:27:27 -0600
Hi Yaosheng,
The function nf90_inquire was actually available as early as
the 3.5.0 release (April 2000) and in all versions since then.
It can be used to get the number of variables in the file as
follows:
integer status, nvar
status = nf90_inquire(ncid, nvariables = nvar)
! check status of call, if OK, then nvar has number of variables
! in file (or in the group if ncid is a group id)
if (status .ne. nf90_noerr)
! handle error
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: WXF-497885
Department: Support netCDF
Priority: Normal
Status: Closed