Changeset 1396 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Dec 20, 2016, 4:25:00 PM (8 years ago)
Author:
lfita
Message:

Fixing `Nwgts' in 'curvelocalize_2D'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/generic_tools.py

    r1391 r1396  
    1097210972
    1097310973    curvloc = np.ones((curve.shape), dtype=int)*(-1)
     10974    Nwgts = np.zeros((Npts), dtype=int)
    1097410975    curveweights = np.zeros((Npts,3,3), dtype=float)
    1097510976    ijaround3x3 = np.zeros((Npts,2,9), dtype=int)
     
    1099210993        yaroundvls = vals_around(yvals,ijloc)
    1099310994
    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,:])
    1099610997       
    10997     return curvloc, curveweights, Nwgt, ijaround3x3
     10998    return curvloc, curveweights, Nwgts, ijaround3x3
    1099810999
    1099911000#lon1d = np.arange(10)
     
    1103511036#for ipt in range(Ncurve):
    1103611037#    print 'pos:', ipt, 'curve:', curve[ipt,:],'loccurve:', loccurve[ipt,:], 'wgts:', wgts[ipt,:,:], 'Nwgts:', Nwgts, 'loc3x3:', loc3x3[ipt,:]
     11038
    1103711039#quit()
Note: See TracChangeset for help on using the changeset viewer.