i need some help about Netcdf files

10 ビュー (過去 30 日間)
Khalifa ababacar Ndoye
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
  1 件のコメント
Khalifa ababacar Ndoye
Khalifa ababacar Ndoye 2023 年 3 月 9 日
Thanks you it works

サインインしてコメントする。

採用された回答

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
  1 件のコメント
Khalifa ababacar Ndoye
Khalifa ababacar Ndoye 2023 年 3 月 9 日
Thanks it works well

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by