1.查看nc文件中变量
% ncdisp(source) 显示组、维度、变量定义,以及所有属性
ncdisp('2001.nc');
运行结果如下:
Source:
F:\river1\2001.nc
Format:
classic
Global Attributes:
Conventions = 'COARDS'
History = 'created by wgrib2'
GRIB2_grid_template = 0
Dimensions:
latitude = 682
longitude = 662
time = 365 (UNLIMITED)
Variables:
latitude
Size: 682x1
Dimensions: latitude
Datatype: double
Attributes:
units = 'degrees_north'
long_name = 'latitude'
longitude
Size: