<<prev file | next file >>    view single page | view frames    summary: fields | routine    details: routine

ReadWrite/idl-NetCDF/

ncdf_listvars.pro

give back the liste of variables included in a NetCDF file

topncdf_listvars NetCDF

result = ncdf_listvars(input)

Return value

a vector string containing the name of the variables

Parameters

input        in required type: salar string or long integer

the name of the file or its Id (defined by a previus call to ncdf_open or ncdf_create) Note that if input corresponds to the file name, ncdf_listvars will open and close the file automatically.

Examples

IDL> varnames = ncdf_listvars('toto.nc') or IDL> i=ncdf_open('toto.nc') IDL> varnames = ncdf_listvars(id)

Version history

Version

$Id: ncdf_listvars.pro 371 2008-08-07 09:32:02Z pinsard $

History

Statistics

McCabe cyclic 4
McCabe essential 1
McCabe modular design 1
Produced by IDLdoc 2.0.