i need some help about Netcdf files

1 次查看(过去 30 天)
hello,
i would like to know how to show NetCDF files in matlab. i mean all the vars.
thanks you

采纳的回答

Walter Roberson
Walter Roberson 2023-3-9
Use ncdisp . For example,
ncdisp('example.nc')
Source: /MATLAB/toolbox/matlab/demos/example.nc Format: netcdf4 Global Attributes: creation_date = '29-Mar-2010' Dimensions: x = 50 y = 50 z = 5 Variables: avagadros_number Size: 1x1 Dimensions: Datatype: double Attributes: description = 'this variable has no dimensions' temperature Size: 50x1 Dimensions: x Datatype: int16 Attributes: scale_factor = 1.8 add_offset = 32 units = 'degrees_fahrenheight' peaks Size: 50x50 Dimensions: x,y Datatype: int16 Attributes: description = 'z = peaks(50);' Groups: /grid1/ Attributes: description = 'This is a group attribute.' Dimensions: x = 360 y = 180 time = 0 (UNLIMITED) Variables: temp Size: [] Dimensions: x,y,time Datatype: int16 /grid2/ Attributes: description = 'This is another group attribute.' Dimensions: x = 360 y = 180 time = 0 (UNLIMITED) Variables: temp Size: [] Dimensions: x,y,time Datatype: int16
This is an example in which the available variables are
  • /avagadros_number
  • /temperature
  • /peaks
  • /grid1/temp
  • /grid2/temp

更多回答(0 个)

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by