Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

NetCDF Files

Network Common Data Form

High-level functions make it easy to read a data set from a NetCDF file or write a variable from the MATLAB® workspace into a NetCDF file. Low-level functions in the MATLAB netcdf package provide interfaces to dozens of functions in the NetCDF library. To use the low-level functions, you should be familiar with the NetCDF C interface.

    Note:   Both the high-level and low-level functions now support the use of non-ASCII characters for variable names, attribute names, and attribute values. However, variable values in functions for reading and writing variables must be ASCII encoded. For more details see these pages: ncread, ncwrite, netcdf.getVar, and netcdf.putVar.

Functions

nccreate Create variable in NetCDF file
ncdisp Display contents of NetCDF data source in Command Window
ncinfo Return information about NetCDF data source
ncread Read data from variable in NetCDF data source
ncreadatt Read attribute value from NetCDF data source
ncwrite Write data to NetCDF file
ncwriteatt Write attribute to NetCDF file
ncwriteschema Add NetCDF schema definitions to NetCDF file

Packages

netcdf Interact directly with NetCDF Library

Topics

Import NetCDF Files and OPeNDAP Data

Network Common Data Form (NetCDF) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.

Export to NetCDF Files

Network Common Data Form (NetCDF) is a set of software libraries and machine-independent data formats that support the creation, access, and sharing of array-oriented scientific data.

Map NetCDF API Syntax to MATLAB Syntax

MATLAB provides access to the routines in the NetCDF C library through a set of low-level functions that are grouped into a package called netcdf.

Troubleshooting

Resolve Errors Reading OPeNDAP Data

If you have trouble reading OPeNDAP data, consider the following:

Related Information

Was this topic helpful?