Changeset 744 in lmdz_wrf


Ignore:
Timestamp:
May 3, 2016, 5:36:37 PM (9 years ago)
Author:
lfita
Message:

Fixing right initial point!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/nc_var_tools.py

    r742 r744  
    2041920419
    2042020420# Reducing the searching points
    20421     newvarinvals = newvarinpt[:]
     20421    Ninpts=np.mini([499999, Ninpts-ipoint])
     20422    newvarinvals = newvarinpt[ipoint:ipoint+Ninpts]
    2042220423    maskpt = np.where(newvarinvals.mask == True, False, True)
    20423     points = np.arange(Ninpts)
     20424    points = np.arange(ipoint,ipoint+Ninpts,1)
    2042420425    mapoints = ma.array(points, mask=maskpt)
    2042520426    ptsf = mapoints.compressed()
     
    2042720428    Nptsf = len(ptsf)
    2042820429    print Ninpts,'Npoints to find:', len(ptsf), ptsf[0:10], newvarindiff[ptsf[0:10]]
    20429 # Error at 150024, 150025, 151709, 153421
    20430     print '  ' + fname + ': from:', Ninpts,'re-locating:',Nptsf,'points...'
     20430    print '  ' + fname + ': from:', Ninpts,'re-locating:',Nptsf,'points starting at',\
     20431      ipoint,'...'
    2043120432    if kind == 'Goode':
    2043220433#        newvar,newvarin,newvarinpt,newvarindiff =                                    \
    2043320434#          fin.module_forinterpolate.coarseinterpolate(projlon, projlat, lonvs,       \
    2043420435#          latvs, percen, mindiff, ivar, dimx, dimy, ninpts)
    20435         Ninpts=499999
    20436         for ir in range(ptsf[0],Ninpts,fracs):
     20436        for ir in range(ipoint,ipoint+Ninpts,fracs):
    2043720437            iri = ir
    2043820438            ire = ir + fracs
Note: See TracChangeset for help on using the changeset viewer.