i need some help about Netcdf files

조회 수: 9 (최근 30일)
Khalifa ababacar Ndoye
Khalifa ababacar Ndoye 2023년 3월 9일
댓글: Khalifa ababacar Ndoye 2023년 3월 9일
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개)

카테고리

Help CenterFile Exchange에서 NetCDF에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by