Main Content

La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.

Fichiers NetCDF

Network Common Data Form

Lisez ou écrivez des fichiers netCDF avec les fonctions de haut niveau MATLAB® ou le package de bibliothèques de fonctions de bas niveau netCDF. Les fonctions de haut niveau simplifient la lecture des données d’un fichier netCDF ou l’écriture d’une variable de l’espace de travail MATLAB dans un fichier netCDF.

Pour mieux contrôler le processus de lecture et d’écriture, utilisez le package de bibliothèques netCDF contenant des fonctions de bas niveau. Les fonctions de bas niveau permettent de mieux contrôler le processus de lecture et d’écriture en proposant un accès aux routines de la librairie C NetCDF.

MATLAB supporte netCDF version 4.8.1.

Fonctions

développer tout

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

Fonctions de bibliothèque

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

Opérations sur des fichiers

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

Dimensions

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

Groupes

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

Variables

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

Attributs

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

Types définis par l’utilisateur

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

Utilitaires

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

Rubriques

Résolution des problèmes

Resolve Errors Reading OPeNDAP Data

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

Informations connexes