CLDTOT_f= Fire_T*100 copy_VarMeta(Fire_H,CLDHGH_f) copy_VarMeta(Fire_M,CLDMED_f) copy_VarMeta(Fire_L,CLDLOW_f) copy_VarMeta(Fire_T,CLDTOT_f) CLDHGH_f@units="percent" CLDMED_f@units="percent" CLDLOW_f@units="percent" CLDTOT_f@units="percent" ;delta delta_H = CLDHGH-CLDHG...
copy_VarCoords(DTCOND_ave_f, DTCOND_scale_f) DTCOND_scale_f@units="K/day" ;计算delta delta_V = V_ave-V_ave_f delta_OMEGA= OMEGA_scale-OMEGA_scale_f delta_DTCOND= DTCOND_scale-DTCOND_scale_f copy_VarMeta(V_ave,delta_V) copy_VarMeta(OMEGA_scale,delta_OMEGA) copy_VarMeta(DTCOND...
pm_grid&lon = lon_grid 还有曲面网格属性的赋值,一般直接用copy_VarMeta函数直接从模式结果的变量里复制属性就可以了。但有时候也会进行一些改动,需要手动赋值。与标准网格数据不同的是,经纬度是二维数组,用@进行赋值 pm_cmaq!0 = "time" pm_cmaq!1 = "lon2d" pm_cmaq@lon2d = lon_cmaq pm_cmaq!2 =...
yyfac=yyyymm_to_yyyyfrac(yyyymm,0.0);sst1=dtrend_msg_n(yyfac,sst,True,False,0)sst1=dtrend_quadratic_msg_n(sst,True,False,0)copy_VarMeta(sst,sst1)clStrt=198101clLast=201012iClmStrt=ind(yyyymm.eq.clStrt)iClmLast=ind(yyyymm.eq.clLast)xClm=clmMonTLL(sst1(iClmStrt:iClmLast,:,:))...
"r") air2m = short2flt(f_air2m->air(rec_s:rec_e,0,{-90:90},:)) ; T at 2m ;;;DJF 平均& 异常;;; ;JFM季节平均,实际是12/1/2月三个月平均,因为从1979年12月开始截取 copy_VarMeta(sst(0,:,:),sst_DJF(0,:,:)) sst_DJF!0 = "year" sst_DJF&year=year sst_ano = dim...
copy_VarMeta Copies all attributes, named dimensions and coordinate variables from one variable to another. copyatt Copies all attributes, named dimensions and coordinate variables from one variable to another (deprecated version). cos Computes the cosine of numeric types. ...
·计算中可能造成元数据的丢失,可以使用copy_VarMeta、copy_VarCoords和copy_VarAtts函数复制元数据,或在计算之前以y=x形式预定义目标变量。 ·数组运算中<和>具有裁剪功能,例如,sst=sst>sice将数组sst中小于sice的元素替换成sice,这样结合@_FillValue属性就可以将小于等于阈值sice的值定义为无效数据。 20-20 10-...
copy_VarMeta(h300_DJF,v850_DJF) v850_ano = dim_rmvmean_n_Wrap(v850_DJF,0) ;; air2m air2m_DJF = month_to_season(air2m, "JFM") copy_VarMeta(air2m(0,:,:),air2m_DJF(0,:,:)) air2m_DJF!0 ="year" air2m_DJF&year=year air...
u@_FillValue = 9.96921e+36 u = where(u.eq."nan", u@_FillValue, false_value) ; ---change the time type to integer not int64 time0 = f->valid_time time = toint(time0) copy_VarMeta(time0, time) ; printVarSummary(time) time...
copy_VarCoords_1 Copies all named dimensions and coordinate variables from one variable to another except for the rightmost dimension. copy_VarCoords_2 Copies all named dimensions and coordinate variables from one variable to another except for the rightmost two dimensions. copy_VarMeta Copies all ...