- 积分
- 22598
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2016-4-9
- 最后登录
- 1970-1-1
|
发表于 2016-12-9 09:17:20
|
显示全部楼层
比如楼楼数据名称:air.grib2netcdf.nc,那么ncdisp('air.grib2netcdf.nc')可以查看nc文件的信息,类似酱紫的
Source:
/temp/exp2/test3_bwave/test5_panda3/test_20km81x41/wrfout_check/wrfout_10min_dry_evp_cold1
Format:
classic
Global Attributes:
TITLE = ' OUTPUT FROM WRF V3.7.1 MODEL'
START_DATE = '0001-01-01_00:00:00'
SIMULATION_START_DATE = '0001-01-01_00:00:00'
.
.
.
Dimensions:
Time = 2 (UNLIMITED)
DateStrLen = 19
.
.
.
Variables:
Times
Size: 19x2
Dimensions: DateStrLen,Time
Datatype: char
XLAT
Size: 81x41x2
Dimensions: west_east,south_north,Time
Datatype: single
Attributes:
FieldType = 104
MemoryOrder = 'XY '
description = 'LATITUDE, SOUTH IS NEGATIVE'
units = 'degree_north'
stagger = ''
coordinates = 'XLONG XLAT'
.
.
.
想要读取里面的某一叫varname的变量,那么var=ncread('air.grib2netcdf.nc',varname);
记得最后面加分号,记得最后面加分号,记得最后面加分号
详细可参考matlab的帮助,在命令窗口里面敲help ncread
楼楼要擅长自学哦,matlab博大精深,问不是办法的~
enjoy~ |
|