Changeset 768 in lmdz_wrf
- Timestamp:
- May 10, 2016, 3:34:25 PM (9 years ago)
- Location:
- trunk/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/module_ForInterpolate.F90
r764 r768 893 893 ! percendone(iv,Ninpts,0.5,'done:') 894 894 895 IF (ilonlat(iv,1) >= 0 .AND. ilonlat(iv,2) >= 0) THEN895 IF (ilonlat(iv,1) >= 1 .AND. ilonlat(iv,2) >= 1) THEN 896 896 diffs(iv) = mindiffLl 897 897 inpt(iv) = 1 -
trunk/tools/nc_var_tools.py
r767 r768 13901 13901 else: 13902 13902 newvar = newnc.createVariable('lon','f8',('lon')) 13903 basicvardef(newvar, 'lon ', 'Longitudes','degrees_East')13903 basicvardef(newvar, 'longitude', 'Longitude','degrees_East') 13904 13904 newvar[:] = lonmap 13905 13905 newvar.setncattr('axis', 'X') … … 13910 13910 else: 13911 13911 newvar = newnc.createVariable('lat','f8',('lat')) 13912 basicvardef(newvar, 'lat ', 'Latitudes','degrees_North')13912 basicvardef(newvar, 'latitude', 'Latitude','degrees_North') 13913 13913 newvar[:] = latmap 13914 13914 newvar.setncattr('axis', 'Y') … … 13921 13921 basicvardef(newvarindiff, 'locindiff', 'distance between input point and ' + \ 13922 13922 'its final location','degree') 13923 set_attributek(newvar ,'authorized_minimum_distance',mindiff,'R')13923 set_attributek(newvarindiff,'authorized_minimum_distance',mindiff,'R') 13924 13924 13925 13925 # map variable … … 13958 13958 13959 13959 newvar.setncattr('coordinates', 'lon lat') 13960 newvarin.setncattr('coordinates', 'lon lat') 13960 13961 13961 13962 else: … … 13991 13992 Nptsf = len(ptsf) 13992 13993 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]) 13993 13996 # Error at 150024, 150025, 151709, 153421 13994 13997 print ' ' + fname + ': from:', Ninpts,'re-locating:',Nptsf,'points...' … … 14052 14055 idiff, ilonlatv = fin.module_forinterpolate.interpolate1dll(projlon, \ 14053 14056 projlat, lonvss, latvss, np.float64(mindiff), inptss) 14057 # Fortran routine provides ranges from 1,dimx! 14058 ilonlatv = ilonlatv - 1 14054 14059 14055 14060 for i in range(np.min([len(idiff),fracs])):
Note: See TracChangeset
for help on using the changeset viewer.