Reading NetCDF in IDL Software Documentation

Reading NetCDF in IDL Software Documentation


Usage

 cdf2idl, 'inputfile', outfile='outputfile', /verbose  

This procedure creates an idl script to read in the variables of a NetCDF file. The variables have identical names to the variable names in the NetCDF file.

'inputfile'

This is the full path to the NetCDF file you wish to read into IDL. Currently only one NetCDF file is supported at a time.

outfile='outputfile'

If an outputfile name is given the idl script will be written to the given filename. Else it will be written to script.idl, the default.

/verbose

If this flag is set then the cdf2idl program creates verbose output. Which includes all variable and global attributes in the netCDF file.

Prerequisites

An IDL license is required to execute this procedure. IDL can be obtained from Research Systems, Inc..

Example

The following sequence of command creates the "script.idl" file, and 
executes it.


All the variables in the netCDF file mynetCDFfile.cdf are now in IDL memory.
You may access view them by typing help at the idl prompt, like so...


Send your comments to the CIDS Aministrator.

Back to CIDS Page.