Changeset 744 in lmdz_wrf
- Timestamp:
- May 3, 2016, 5:36:37 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/nc_var_tools.py
r742 r744 20419 20419 20420 20420 # Reducing the searching points 20421 newvarinvals = newvarinpt[:] 20421 Ninpts=np.mini([499999, Ninpts-ipoint]) 20422 newvarinvals = newvarinpt[ipoint:ipoint+Ninpts] 20422 20423 maskpt = np.where(newvarinvals.mask == True, False, True) 20423 points = np.arange( Ninpts)20424 points = np.arange(ipoint,ipoint+Ninpts,1) 20424 20425 mapoints = ma.array(points, mask=maskpt) 20425 20426 ptsf = mapoints.compressed() … … 20427 20428 Nptsf = len(ptsf) 20428 20429 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,'...' 20431 20432 if kind == 'Goode': 20432 20433 # newvar,newvarin,newvarinpt,newvarindiff = \ 20433 20434 # fin.module_forinterpolate.coarseinterpolate(projlon, projlat, lonvs, \ 20434 20435 # 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): 20437 20437 iri = ir 20438 20438 ire = ir + fracs
Note: See TracChangeset
for help on using the changeset viewer.