爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: wangwl0729

ncl 如何将missing_value转成_FillValue

[复制链接]
发表于 2013-7-8 22:20:46 | 显示全部楼层

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.
密码修改失败请联系微信:mofangbao
发表于 2015-4-24 21:44:28 | 显示全部楼层
楼主,请问有这种提示_FillValue :        missing代表画出图有错吗,刚学NCL,很多不懂
密码修改失败请联系微信:mofangbao
发表于 2015-7-21 15:34:31 | 显示全部楼层
wangwl0729 发表于 2013-7-8 20:31
额,是变量。 你自己这样试过吗?反正我不行~~

请问楼主解决这个问题了吗?能不能告知下解决方法呀? 我也用了这个命令  没法解决问题
密码修改失败请联系微信:mofangbao
发表于 2020-12-23 18:13:06 | 显示全部楼层
请问楼主解决这个问题了吗?能不能告知下解决方法呀? 我也用了这个命令  没法解决问题,fatal:Type Mismatch: The type of missing value could not be converted to type  variable (pre1)
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表