- 积分
- 15746
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2015-3-8
- 最后登录
- 1970-1-1
|

楼主 |
发表于 2016-3-18 19:37:30
|
显示全部楼层
曦尘 发表于 2016-3-18 16:50
用错函数了,线性相关系数检验用rtest,https://www.ncl.ucar.edu/Document/Functions/Built-in/rtest.shtm ...
我用了prob = rtest(ccr, Nr, 0)
但是因为Nr必须与ccr维数一样,所以我用1: prob = rtest(ccr,dimsizes(y(0,:,:)),0);
2:prob = rtest(ccr,dimsizes(ccr),0);都出错
fatal:rtest: If Nr is not a scalar, then it must have the same number of dimensions as r
fatal:["Execute.c":8575]:Execute: Error occurred at or near line 190 in file vorSSTA29elninodjfttest.ncl
而且我在算相关的时候已经把信息赋给ccr了,如
ccr = escorc_n(vorarea(time|:),y(time|:,lat|:,lon|:),0,0)
copy_VarAtts(y(0,:,:),ccr)
copy_VarCoords(y(0,:,:),ccr)
输出变量ccr也是对的。为什么呢?大神,求助
Variable: ccr
Type: float
Total Size: 58320 bytes
14580 values
Number of Dimensions: 2
Dimensions and sizes: [lat | 81] x [lon | 180]
Coordinates:
lat: [-80..80]
lon: [ 0..358]
Number Of Attributes: 13
missing_value : -9.96921e+36
long_name : DJF: Monthly Means of Sea Surface Temperature
units : degC
var_desc : Sea Surface Temperature
level_desc : Surface
statistic : Mean
actual_range : ( -1.8, 33.95 )
valid_range : ( -5, 40 )
dataset : NOAA Extended Reconstructed SST V4
parent_stat : Individual Values
NMO : 0
time : 21914
_FillValue : -9.96921e+36
|
|