Main Content

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

NetCDF-Dateien

Network Common Data Form (NetCDF)

Lesen oder Schreiben von NetCDF-Dateien über High-Level-Funktionen von MATLAB® oder das NetCDF-Bibliothekspaket mit Low-Level-Funktionen. High-Level-Funktionen vereinfachen den Prozess beim Lesen der Daten aus einer NetCDF-Datei oder beim Schreiben einer Variablen aus dem MATLAB-Arbeitsbereich in eine NetCDF-Datei.

Für mehr Kontrolle über den Lese- und Schreibprozess verwenden Sie das NetCDF-Bibliothekspaket mit Low-Level-Funktionen. Die Low-Level-Funktionen ermöglichen eine verstärkte Kontrolle über den Lese- und Schreibprozess und gewähren Zugriff auf Routinen in der NetCDF-Bibliothek.

MATLAB unterstützt NetCDF, Version 4.8.1.

Funktionen

alle erweitern

nccreateCreate variable in netCDF file
ncdispDisplay contents of netCDF data source in Command Window
ncinfo Return information about netCDF data source
ncreadRead data from variable in netCDF data source
ncreadattRead attribute value from netCDF data source
ncwriteWrite data to netCDF file
ncwriteattWrite attribute to netCDF file
ncwriteschemaAdd netCDF schema definitions to netCDF file

Bibliotheksfunktionen

netcdf.getChunkCacheRetuen default chunk cache settings for netCDF library
netcdf.inqLibVersReturn NetCDF library version information
netcdf.setChunkCache
netcdf.setDefaultFormatChange default netCDF file format

Dateioperationen

netcdf.abortRevert recent netCDF file definitions
netcdf.closeClose netCDF file
netcdf.createCreate new netCDF dataset
netcdf.endDefEnd netCDF file define mode
netcdf.inqReturn information about netCDF file
netcdf.inqFormatDetermine format of NetCDF file
netcdf.inqGrpsRetrieve array of child group IDs
netcdf.inqUnlimDims
netcdf.openOpen NetCDF data source
netcdf.reDefPut open netCDF file into define mode
netcdf.setFillSet netCDF fill mode
netcdf.syncSynchronize netCDF file to disk

Dimensionen

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

Gruppen

netcdf.defGrpCreate group in NetCDF file
netcdf.inqDimIDsRetrieve list of dimension identifiers in group
netcdf.inqGrpNameRetrieve name of group
netcdf.inqGrpNameFullComplete pathname of group
netcdf.inqGrpParentRetrieve ID of parent group
netcdf.inqNcid
netcdf.inqVarIDs

Variablen

netcdf.defVarFillDefine fill parameters for netCDF variable
netcdf.defVarCreate netCDF variable
netcdf.defVarChunkingDefine chunking behavior for netCDF variable
netcdf.defVarDeflateDefine compression parameters for netCDF variable
netcdf.defVarFletcher32Define checksum parameters for netCDF variable
netcdf.getVarRead data from netCDF variable
netcdf.inqVarInformation about variable
netcdf.inqVarChunking
netcdf.inqVarDeflate
netcdf.inqVarFill
netcdf.inqVarFletcher32
netcdf.inqVarIDReturn ID associated with variable name
netcdf.putVarWrite data to netCDF variable
netcdf.renameVarChange name of netCDF variable

Attribute

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

Benutzerdefinierte Typen

netcdf.defVlenDefine user-defined variable length array type (NC_VLEN) (Seit R2022a)
netcdf.inqUserTypeReturn information about user-defined type (Seit R2022a)
netcdf.inqVlenReturn information about user-defined NC_VLEN type (Seit R2022a)

Dienstprogramme

netcdf.getConstantReturn numeric value of named constant
netcdf.getConstantNamesReturn list of constants known to netCDF library

Themen

Fehlersuche

Resolve Errors Reading OPeNDAP Data

When you have trouble reading OPeNDAP data, consider these factors.

Verwandte Informationen