Changeset 1396 in lmdz_wrf for trunk/tools
- Timestamp:
- Dec 20, 2016, 4:25:00 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/generic_tools.py
r1391 r1396 10972 10972 10973 10973 curvloc = np.ones((curve.shape), dtype=int)*(-1) 10974 Nwgts = np.zeros((Npts), dtype=int) 10974 10975 curveweights = np.zeros((Npts,3,3), dtype=float) 10975 10976 ijaround3x3 = np.zeros((Npts,2,9), dtype=int) … … 10992 10993 yaroundvls = vals_around(yvals,ijloc) 10993 10994 10994 curveweights[icv,:,:], Nwgt , ijaround3x3[icv,:,:,] = linearint_3x3weights(\10995 xaroundvls, yaroundvls, curve[icv,:])10995 curveweights[icv,:,:], Nwgts[icv], ijaround3x3[icv,:,:,] = \ 10996 linearint_3x3weights(xaroundvls, yaroundvls, curve[icv,:]) 10996 10997 10997 return curvloc, curveweights, Nwgt , ijaround3x310998 return curvloc, curveweights, Nwgts, ijaround3x3 10998 10999 10999 11000 #lon1d = np.arange(10) … … 11035 11036 #for ipt in range(Ncurve): 11036 11037 # print 'pos:', ipt, 'curve:', curve[ipt,:],'loccurve:', loccurve[ipt,:], 'wgts:', wgts[ipt,:,:], 'Nwgts:', Nwgts, 'loc3x3:', loc3x3[ipt,:] 11038 11037 11039 #quit()
Note: See TracChangeset
for help on using the changeset viewer.