netcdf - Summary of MATLAB Network Common Data Form (netCDF) capabilities

Description

MATLAB provides access to more than 30 functions in the Network Common Data Form (netCDF) interface. This interface provides an API that you can use to enable reading data from and writing data to netCDF files (known as datasets in netCDF terminology).

To use these MATLAB functions, you must be familiar with the netCDF C interface. To get this information, consult the NetCDF C Interface Guide.

In most cases, the syntax of the MATLAB function is similar to the syntax of the netCDF library function. The functions are implemented as a package called netcdf. To use these functions, prefix the function name with package name netcdf. For example, to call the netCDF library routine used to open existing netCDF files, use the following MATLAB syntax:

ncid = netcdf.open( ncfile, mode );

netCDF Library Functions

The following tables list all of the functions in the MATLAB netCDF package, grouped by category.

File Operations

netcdfSummary of MATLAB Network Common Data Form (netCDF) capabilities
netcdf.abortRevert recent netCDF file definitions
netcdf.closeClose netCDF file
netcdf.createCreate new netCDF dataset
netcdf.endDefEnd netCDF file define mode
netcdf.getConstantReturn numeric value of named constant
netcdf.getConstantNamesReturn list of constants known to netCDF library
netcdf.inq Return information about netCDF file
netcdf.inqLibVersReturn netCDF library version information
netcdf.openOpen netCDF file
netcdf.reDefPut open netCDF file into define mode
netcdf.setDefaultFormatChange default netCDF file format
netcdf.setFillSet netCDF fill mode
netcdf.syncSynchronize netCDF file to disk

Dimensions

netcdf.defDimCreate netCDF dimension
netcdf.inqDimReturn netCDF dimension name and length
netcdf.inqDimIDReturn dimension ID
netcdf.renameDimChange name of netCDF dimension

Variables

netcdf.defVarCreate netCDF variable
netcdf.getVarReturn data from netCDF variable
netcdf.inqVarReturn information about variable
netcdf.inqVarIDReturn ID associated with variable name
netcdf.putVarWrite data to netCDF variable
netcdf.renameVarChange name of netCDF variable

Attributes

netcdf.copyAttCopy attribute to new location
netcdf.delAttDelete netCDF attribute
netcdf.getAttReturn netCDF attribute
netcdf.inqAttReturn information about netCDF attribute
netcdf.inqAttIDReturn ID of netCDF attribute
netcdf.inqAttNameReturn name of netCDF attribute
netcdf.putAttWrite netCDF attribute
netcdf.renameAttChange name of attribute
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS