Changeset 2542 in lmdz_wrf
- Timestamp:
- May 17, 2019, 5:22:11 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2541 r2542 3356 3356 gen.percendone(it*vardims[1]+ik,dimt*vardims[1],5,'computed space statistics') 3357 3357 varst = gen.statsVal(varval) 3358 varstwgt = gen.statsValWeigthed(varval, weightsv )3358 varstwgt = gen.statsValWeigthed(varval, weightsv.flatten()) 3359 3359 varstats[it,ik,0] = varst.minv 3360 3360 varstats[it,ik,1] = varst.maxv … … 3381 3381 if not varinf.FillValue is None: 3382 3382 varvl = var[it,ik,il,:,:] 3383 varval = np.where(varvl == varinf.FillValue, None, varvl)3383 varval0 = np.where(varvl == varinf.FillValue, None, varvl) 3384 3384 else: 3385 varval = var[it,ik,il,:,:] 3386 3385 varval0 = var[it,ik,il,:,:] 3386 3387 varval = varval0.flatten() 3387 3388 gen.percendone(it*vardims[1]*vardims[2]+ik*vardims[1]+il,dimt*\ 3388 3389 vardims[1]*vardims[2],5,'computed space statistics') 3389 3390 varst = gen.statsVal(varval) 3390 varstwgt = gen.statsValWeigthed(varval, weightsv )3391 varstwgt = gen.statsValWeigthed(varval, weightsv.flatten()) 3391 3392 varstats[it,ik,il,0] = varst.minv 3392 3393 varstats[it,ik,il,1] = varst.maxv
Note: See TracChangeset
for help on using the changeset viewer.