爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 11636|回复: 1

[作图] 画高温天数图,出现缺失值,请问怎么处理

[复制链接]

新浪微博达人勋

发表于 2018-9-20 22:33:45 | 显示全部楼层 |阅读模式

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

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

x
想统计各个点的高温天数图,已经产生各点的高温阈值为tline,想统计各个点高温天数在hd中
这个ncl编程的代码
begin
f=addfile("C:\Users\deii\Desktop\tmax.1980.nc", "r")
tmax=f->tmax
fline=addfile("C:\Users\deii\Desktop\tmax.line.nc", "r")
tline=fline->tline
hd=new((/360,720/),integer)
hd!0="lat"
hd!1="lon"
lon_pts=fspan(0.0,359.5,720)
lat_pts=fspan(-89.75,89.75,360)
lon_pts@units="degrees_east"
lat_pts@unist="degrees_north"
hd&lon=lon_pts
hd&lat=lat_pts
do m=0,359
    do n=0,719
        if(ismissing(tmax(0,m,n)))then
            hd(m,n)=0
            continue
        else
          do i=0,365
            if(tmax(i,m,n).ge.tline(m,n))then
                hd(m,n)=hd(m,n)+1
            end if
          end do
        end if
    end do
end do运行后报错为 The result of the conditional expression yields a missing value. NCL can not determine branch, see ismissing function
请问这种情况可以怎么解决?希望可以得到大家的解答!!

密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2021-5-20 14:16:34 | 显示全部楼层
请问楼主现在还有这个程序吗,有的话可以发我一份吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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