- 积分
- 1443
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2012-12-4
- 最后登录
- 1970-1-1
成长值: 0
|
发表于 2014-12-11 22:18:03
|
显示全部楼层
在新版中,用ncread读取数据后就不需要用origindata=readdata*scale_factor+add_offset 进行数据转换了,因为ncread已经自动转换好了。
The data in the variable. ncread uses the MATLAB datatype that is the closest type to the corresponding NetCDF datatype, except when at least one of _FillValue, scale_offset, and add_offset variables attribute is present. ncread applies the following attribute conventions, in sequence, to vardata if the corresponding attribute exists for this variable:
If the _FillValue attribute exists, ncread replaces values in vardata equal to the value of _FillValue with NaNs. If the_FillValue attribute does not exist, ncread queries the NetCDF library for the variable's fill value.
If the scale_factor attribute exists, ncread multiplies vardata by the value of the scale_factor attribute.
If the add_offset attribute exists, ncread adds the value of the add_offset attribute to vardata.
http://www.mathworks.com/help/matlab/ref/ncread.html
刚刚才看到。。 |
评分
-
查看全部评分
|