- 积分
- 4570
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-11-29
- 最后登录
- 1970-1-1
|
楼主 |
发表于 2015-11-8 13:18:44
|
显示全部楼层
我把DATA改成了这样,相应错误行也不见了
if (getfilevartypes(f, varname).eq."short") then ; clarity
DATA = short2flt(f->$varname$(iYYYY,:,:,:))
else
DATA = f->$varname$(iYYYY,:,:,:)
end if
不过后面100零几行的data也出现了问题,然后改成这样
if (REDUCE) then
data = DATA(:,:, ::nskip,{lonL:lonR:mskip})
else
data = DATA(:,:,:,{lonL:lonR})
end if
delete(DATA)
目前的错误是下面这些
Variable: DATA
Type: float
Total Size: 52876800 bytes
13219200 values
Number of Dimensions: 4
Dimensions and sizes: [time | 612] x [depth | 1] x [lat | 120] x [lon | 180]
Coordinates:
time: [-23.5..587.5]
depth: [5.01..5.01]
lat: [-29.75..29.75]
lon: [30.25..119.75]
Number Of Attributes: 6
pointwidth : 1
standard_name : sea_water_temperature
missing_value : -9.99e+33
long_name : TEMPERATURE
units : Celsius_scale
_FillValue : -9.99e+33
Variable: data
Type: float
Total Size: 52876800 bytes
13219200 values
Number of Dimensions: 4
Dimensions and sizes: [time | 612] x [depth | 1] x [lat | 120] x [lon | 180]
Coordinates:
time: [-23.5..587.5]
depth: [5.01..5.01]
lat: [-29.75..29.75]
lon: [30.25..119.75]
Number Of Attributes: 6
_FillValue : -9.99e+33
units : Celsius_scale
long_name : TEMPERATURE
missing_value : -9.99e+33
standard_name : sea_water_temperature
pointwidth : 1
fatal:Number of dimensions in parameter (0) of (clmMonTLL) is (4), (3) dimensions were expected
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 114 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Number of dimensions in parameter (0) of (calcMonAnomTLL) is (4), (3) dimensions were expected
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 117 in file /home/gyy/pop/prn_osc_pat_1.ncl
Variable: datalp
Type: float
Total Size: 52876800 bytes
13219200 values
Number of Dimensions: 4
Dimensions and sizes: [time | 612] x [depth | 1] x [lat | 120] x [lon | 180]
Coordinates:
time: [-23.5..587.5]
depth: [5.01..5.01]
lat: [-29.75..29.75]
lon: [30.25..119.75]
Number Of Attributes: 7
_FillValue : -9.99e+33
units : Celsius_scale
long_name : Low Pass: TEMPERATURE
missing_value : -9.99e+33
standard_name : sea_water_temperature
pointwidth : 1
wgt_runave_op_ncl : wgt_runave_n
fatal:["Execute.c":7432]:performASSIGN_VAR_VAR_OP: Number of subscripts on rhs do not match
number of dimensions of variable, (3) Subscripts used, (4) ��
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 150 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (xlp) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 156 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (xlp) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 157 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (eof) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 159 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (eof_ts) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 160 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (eof) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 166 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (pop_results) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 167 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Undefined identifier: (pop_results) is undefined, can't continue
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 175 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (pop_ts) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 176 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Undefined identifier: (pop_results) is undefined, can't continue
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 179 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (pop_pat) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 180 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (pop_results) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 183 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 191 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (yyyymm) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 192 in file /home/gyy/pop/prn_osc_pat_1.ncl
fatal:Variable (yyyymm) is undefined
fatal:["Execute.c":8128]:Execute: Error occurred at or near line 194 in file /home/gyy/pop/prn_osc_pat_1.ncl
|
|