Skip to Main Content Skip to Search
Product Documentation

ncdisp - Display contents of NetCDF data source in Command Window

Syntax

ncdisp(source)
ncdisp(source,location)
ncdisp(source,location,modestr)

Description

ncdisp(source) displays as text in the Command Window, all the groups, dimensions, variable definitions, and all attributes in the NetCDF data source source, which can be the name of a NetCDF file or the URL of an OPeNDAP NetCDF data source.

ncdisp(source,location) displays information about the variable or group specified by location in source

ncdisp(source,location,modestr) displays the contents of the location in source according to the value of modestr.

Input Arguments

source

Text string specifying the name of the NetCDF file.

location

Text string specifying the location of the variable or group in the NetCDF file. Set location to / (forward slash) to display the entire contents of the file.

Default: /

modestr

Specifies the type of display.

minDisplay group hierarchy and variable definitions.
fullDisplay group hierarchy with dimensions, attributes, and variable definitions.

Default: full

Examples

Visually inspect a NetCDF file.

ncdisp('example.nc');
 

Visually inspect a NetCDF file, hiding the attributes.

ncdisp('example.nc','/','min');
 

Visually inspect the full details of a variable.

ncdisp('example.nc','peaks');

See Also

ncinfo | ncread | ncreadatt | ncwrite | netcdf

Tutorials

  


» Learn more
» Download free kit
» Get trial software

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