- 积分
- 4193
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-1-16
- 最后登录
- 1970-1-1
|
发表于 2013-7-8 22:20:46
|
显示全部楼层
wangwl0729 发表于 2013-7-8 20:31
额,是变量。 你自己这样试过吗?反正我不行~~
http://www.ncl.ucar.edu/FAQ/#data_hand_003
How do I change the missing value to another value?
If your data contains a "_FillValue" attribute, simply set it to the value you want, but be sure to use the same type (float, double, etc).
For example, to change your data's missing values from 0 to -999, use:
data@_FillValue = -999
If your data contains a "missing_value" attribute, this won't be recognized by NCL as an official missing value. You want to set the "_FillValue" attribute to this value:
data@_FillValue = data@missing_value
delete(data@missing_value) ; not necessary, just cleaning up
There are other ways to assign a _FillValue attribute. See the assignFillValue function. |
|