The following topics are covered in this chapter:
Attributes, Dimensions, and Variables Attributes, Dimensions, and Variables
Creating NetCDF Files Creating NetCDF Files
String Data in NetCDF Files String Data in NetCDF Files
Type Conversion Type Conversion
Specifying Attributes and Variables Specifying Attributes and Variables
NetCDF Routines NCDF_ATTCOPY
This chapter details the interface routines for the Network Common Data Format. General notes about the interface are presented below, followed by individual descriptions of the routines. This version of IDL supports netCDF 2.4.
There are two modes associated with accessing a netCDF file: define mode and data mode. In define mode, dimensions, variables, and new attributes can be created but variable data cannot be read or written. In data mode, data can be read or written and attributes can be changed, but new dimensions, variables, and attributes cannot be created.
IDL's NCDF_CONTROL routine can be used control the mode of a netCDF file. The only time it is not necessary to set the mode with NCDF_CONTROL is when using the NCDF_CREATE procedure to create a new file. NCDF_CREATE places the new netCDF file into define mode automatically.