- 积分
- 625
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2013-7-8
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
begin
;---------------------------------------- GPCP -----------------------------
nnlat = 180
nnlon = 360
f1 = addfile("/home/yangsong3/data-observation/PRECPT/gpcp_1dd_v1.2_p1d.19961001-20150531.daily.nc","r")
tc_date = ut_calendar(f1&time,-2)
print(tc_date)
pStart = 20000101
pEnd = 20141231
tstart = ind(tc_date.eq.pStart)
tend = ind(tc_date.eq.pEnd)
temp = f1->precip(tstart:tend,::-1,:)
gpcp = temp(0:5474,:,:)
mmm=0
do tt = 0,5478
if(tt.ne.59.and.tt.ne.1520.and.tt.ne.2981.and.tt.ne.4442)
gpcp(mmm,:,:) = temp(tt,:,:)
mmm=mmm+1
end if
end do
set_default_fillvalue("double",0)
do tt=0,5474
do jj=0,179
do ii=0,359
if(gpcp(tt,jj,ii).eq.0)
mmm=mmm-1
end if
end do
end do
end do
print(mmm)
我想大概了解一下缺测的数据多不多,不过运行脚本以后说错误如图,想问问大伙是啥造成的?
|
|