我正在尝试在netcdf数据集上执行Anova,该数据集包含变量satt(季节,年,年,月,日)。 昨晚我使用了相同的鳕鱼,而且效果很好。仅发出一些警告,并说“某些值= 0变为丢失”, 但是今天早上,我使用anaconda安装了ncl,但代码无法正常工作。
代码如下:
ncl 0> a=addfile("cfsr_1979-2009_Seasonnseas_sat.nc","r")
ncl 1> b=a->satt
ncl 2> time=a->time
ncl 3> lon=a->lon
ncl 4> lat=a->lat
ncl 5> m=576
ncl 6> n=1152
ncl 7> x=tofloat(time)
ncl 8> rcpvalue=new((/4,2,m,n/),typeof(b)
)
ncl 9> s=0
ncl 10> i=0
ncl 11> j=0
ncl 12> do s=0,3
ncl 13> do i=0,m-1
ncl 14> do j=0,n-1
ncl 15> rc=regline_stats(x,b(s,:,i,j))
ncl 16> rcpvalue(s,:,i,j)=rc@pval
ncl 17> delete(rc)
ncl 18> end do
ncl 19> end do
ncl 20> end do
fatal:divide: Division by 0, Can't continue
fatal:
Div: operator failed, can't continue
fatal:["Execute.c":8637]:
Execute: Error occurred at or near line 15319 in file /home/charcoalp/anaconda3/envs/ncl_stable/lib/ncarg/nclscripts/csm/contributed.
ncl
fatal:["Execute.c":8635]:Execute: Error occurred at or near line
我也尝试在python上执行此操作。但是安装pyngl和pynio后,我找不到Spicy软件包。