Changeset 768 in lmdz_wrf


Ignore:
Timestamp:
May 10, 2016, 3:34:25 PM (9 years ago)
Author:
lfita
Message:

Getting there

  • Starting from the last localized point in 'lonlatfrac'
Location:
trunk/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/module_ForInterpolate.F90

    r764 r768  
    893893!        percendone(iv,Ninpts,0.5,'done:')
    894894
    895         IF (ilonlat(iv,1) >= 0 .AND. ilonlat(iv,2) >= 0) THEN
     895        IF (ilonlat(iv,1) >= 1 .AND. ilonlat(iv,2) >= 1) THEN
    896896          diffs(iv) = mindiffLl
    897897          inpt(iv) = 1
  • trunk/tools/nc_var_tools.py

    r767 r768  
    1390113901        else:
    1390213902            newvar = newnc.createVariable('lon','f8',('lon'))
    13903         basicvardef(newvar, 'lon', 'Longitudes','degrees_East')
     13903        basicvardef(newvar, 'longitude', 'Longitude','degrees_East')
    1390413904        newvar[:] = lonmap
    1390513905        newvar.setncattr('axis', 'X')
     
    1391013910        else:
    1391113911            newvar = newnc.createVariable('lat','f8',('lat'))
    13912         basicvardef(newvar, 'lat', 'Latitudes','degrees_North')
     13912        basicvardef(newvar, 'latitude', 'Latitude','degrees_North')
    1391313913        newvar[:] = latmap
    1391413914        newvar.setncattr('axis', 'Y')
     
    1392113921        basicvardef(newvarindiff, 'locindiff', 'distance between input point and ' + \
    1392213922          'its final location','degree')
    13923         set_attributek(newvar,'authorized_minimum_distance',mindiff,'R')
     13923        set_attributek(newvarindiff,'authorized_minimum_distance',mindiff,'R')
    1392413924
    1392513925# map variable
     
    1395813958
    1395913959        newvar.setncattr('coordinates', 'lon lat')
     13960        newvarin.setncattr('coordinates', 'lon lat')
    1396013961
    1396113962    else:
     
    1399113992    Nptsf = len(ptsf)
    1399213993    print Ninpts,'Npoints to find:', len(ptsf), ptsf[0:10], newvarindiff[ptsf[0:10]]
     13994    ipoint = ptsf[0]
     13995    Ninpts=np.min([Nsearchpt, Ninpts-ipoint])
    1399313996# Error at 150024, 150025, 151709, 153421
    1399413997    print '  ' + fname + ': from:', Ninpts,'re-locating:',Nptsf,'points...'
     
    1405214055            idiff, ilonlatv = fin.module_forinterpolate.interpolate1dll(projlon,     \
    1405314056              projlat, lonvss, latvss, np.float64(mindiff), inptss)
     14057# Fortran routine provides ranges from 1,dimx!
     14058            ilonlatv = ilonlatv - 1
    1405414059
    1405514060            for i in range(np.min([len(idiff),fracs])):
Note: See TracChangeset for help on using the changeset viewer.