爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5382|回复: 0

简单数据处理的问题

[复制链接]

新浪微博达人勋

发表于 2020-2-24 11:13:26 | 显示全部楼层 |阅读模式
NCL
系统平台: NCL【数据处理】
问题截图:
问题概况: 1、ndvi数据缺省值设置问题

2、用short2flt将短型数据转换为浮点型数据出现问题
我看过提问的智慧: 看过
自己思考时长(天): 1

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
1、缺省值设置问题
fatal:Type Mismatch: The type of missing value could not be converted to type of variable (ndvi)
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 31 in file data_ana.ncl

2、用short2flt将短型数据转换为浮点型数据
warning:stringtofloat: a bad value was passed; input strings must contain numeric digits, replacing with missing value
fatal:The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 2014 in file $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl
下面是部分代码:
      ndvi3g_geo_v1_fi = addfile(fils(k),"r")
      ndvi            := ndvi3g_geo_v1_fi->ndvi     ;type short
      printVarSummary(ndvi)
      ndvi@_FillValue  =ndvi@missing_value            ;???
      ndvi            :=short2flt(ndvi)
      
刚开始处理数据,这些个问题已经困扰我不少时间
错1.png
错1.png
错2.png
错误1.png
错误2.png
密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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