原因是通过V_ave!0= 改动了变量第0维的名称 下次循环到 V_ave = dim_avg_n_Wrap(V_new(0,:,{15.:55.},{60.:150.}),2)时就会和V_ave的第0维名称不同,ncl要用等号右边变量的信息覆盖左边变量时就出现这样的warning 修改 V_ave := dim_avg_n_Wrap(V_new(0,:,{15.:55.},{60.:150.}),...
w_era=short2flt(f1->w(0,:,{15.:55.},{60.:150.})) v_era_ave = dim_avg_n_Wrap(v_era,2) w_era_ave = dim_avg_n_Wrap(w_era,2) ;era5 scaling v_era1 = avg(v_era_ave(:,:)) ; used for scaling w_era1 = avg(w_era_ave(:,:)) scale = fabs(v_era1/w_era1) w...
;;;ttest z_zheng_ar_ave =dim_avg_n_Wrap(z_zheng_ar, 0) z_climate_ave=dim_avg_n_Wrap(z_winter, 0) z_zheng_ar_var = dim_variance_n(z_zheng_ar,0) z_climate_var = dim_variance_n(z_winter,0) m_climate = tofloat(dimsizes(z_winter(:,0,0,0))) n_zheng_ar = tofloat(si...
合成分析的t检验,利用NCL自带函数ttest 主要计算合成年份和气候态的均值,方差,从而给出显著水平 而打点的叠加主要是overlay一个新的图层,画出显著性通过检验的填色 若为风矢量图,可通过用不同颜色的箭头表示,属性设置附在最后 code:;;;ttestz_zheng_ar_ave = dim_avg_n_Wrap(z_zheng_ar, 0)z_clima...
temp_clmyear =dim_avg_n_Wrap(temp_year, 0); ; 月气候态 ;b用cdo将日换成月 cdo monavg in.nc out.nc temp_clmmon =clmMonTLL(temp_mon, yyyyddd); ;季节气候态,夏季 temp_jja =month_to_season(temp_mon, "JJA") ; 日气候态
sum , dim_sum, dim_sum_n, dim_sum_n_Wrap dim_sum__Wrap 权重求和 sum 与权重平均一致,avg对应sum就好了 IDL绘图通用参数(和Fortran语言类似,变量名关键字不区分大小写,字符串内部区分大小写)。position 定位图形位置大小,格式position=[x0,y0,x1,y1],(x0,y0)是左下角坐标,(x1,y1)是右上角坐标。
ncl 3> mean_hgt = dim_avg_n_Wrap(hgt, 0) ; 0表示对hgt的第一维做平均 输出的mean_hgt如下: ncl 4>printVarSummary(mean_hgt)Variable:mean_hgtType:float TotalSize:714816 bytes 178704 values Number ofDimensions:3 Dimensions andsizes:[level | 17] x [lat | 73] x [lon | 144]Coordinates:...
sum , dim_sum, dim_sum_n, dim_sum_n_Wrap dim_sum__Wrap 权重求和 sum 与权重平均一致,avg对应sum就好了 IDL绘图通用参数(和Fortran语言类似,变量名关键字不区分大小写,字符串内部区分大小写)。position定位图形位置大小,格式position=[x0,y0,x1,y1],(x0,y0)是左下角坐标,(x1,y1)是右上角坐标。0...
NCL绘图示例(九)垂直剖面图.pdf
dim_avg_Wrap Computes the average of a variables rightmost dimension at all other dimensions and retains metadata. dim_cumsum Calculates the cumulative sum along the rightmost dimension. dim_cumsum_n Calculates the cumulative sum along the given dimension(s). dim_cumsum_n_Wrap Calculates the ...