Changeset 2808 in lmdz_wrf
- Timestamp:
- Apr 6, 2020, 3:44:48 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r2805 r2808 22489 22489 curvevar = np.zeros(tuple(dimref+[Ncurv]), dtype=np.float) 22490 22490 22491 ij3x3 = [-1, 0, 1] 22492 22491 22493 for icv in range(Ncurv): 22492 22494 # Getting all `useful' weights … … 22497 22499 22498 22500 for isp in range(Nwgt[icv]): 22499 dictslice[ydn] = iy + i nt(ijcurv[icv,0,isp])22500 dictslice[xdn] = ix + i nt(ijcurv[icv,1,isp])22501 dictslice[ydn] = iy + ij3x3[int(ijcurv[icv,0,isp])] 22502 dictslice[xdn] = ix + ij3x3[int(ijcurv[icv,1,isp])] 22501 22503 varslice, dimvarvals = SliceVarDict(ov, dictslice) 22502 22504 iwgt = sortedwgt[isp]
Note: See TracChangeset
for help on using the changeset viewer.