Main Content

Archivos NetCDF

Formulario de datos comunes de red

Puede interactuar con los archivos netCDF de varias maneras:

  • La app Import Tool (en MATLAB® Online™) y la tarea de Live Editor Import Data proporcionan interfaces gráficas intuitivas para explorar y leer datos de archivos netCDF.

  • Las funciones de netCDF de alto nivel de MATLAB proporcionan una interfaz simplificada y basada en texto para leer datos de archivos netCDF y escribir variables desde el área de trabajo de MATLAB en archivos netCDF.

  • El paquete de funciones de bajo nivel de la biblioteca netCDF proporciona el máximo control sobre el proceso de lectura y escritura de archivos netCDF proporcionando acceso a las rutinas de la biblioteca netCDF C.

MATLAB es compatible con la versión 4.9.1 de netCDF.

Tareas de Live Editor

Import DataImport data from a file in the Live Editor (desde R2023a)

Apps

Import ToolImportar datos desde un archivo

Funciones

expandir todo

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

Funciones de la biblioteca

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

Operaciones de archivos

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.inqUnlimDimsReturn IDs of all visible unlimited dimensions in group
netcdf.openOpen NetCDF data source
netcdf.reDefPut open netCDF file into define mode
netcdf.setFillSet netCDF fill mode
netcdf.syncSynchronize netCDF file to disk

Dimensiones

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

Grupos

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.inqNcidReturn ID of group
netcdf.inqVarIDsReturn IDs of all variables in group

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.inqVarChunkingReturn chunking parameters for netCDF variable
netcdf.inqVarDeflateReturn compression parameters for netCDF variable
netcdf.inqVarFillReturn fill parameters for netCDF variable
netcdf.inqVarFletcher32Return Fletcher32 checksum setting for netCDF variable
netcdf.inqVarIDReturn ID associated with variable name
netcdf.putVarWrite data to netCDF variable
netcdf.renameVarChange name of netCDF variable

Atributos

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

Tipos definidos por el usuario

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

Utilidades

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

Temas

Solución de problemas

Resolve Errors Reading OPeNDAP Data

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

Información relacionada