Ignore:
Timestamp:
09/20/16 20:15:00 (8 years ago)
Author:
smasson
Message:

set of bugfixes...

Location:
trunk/SRC/Interpolation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/Interpolation/compute_fromreg_imoms3_weigaddr.pro

    r495 r501  
    88; Interpolation 
    99; 
    10 ; @param alonin {in}{required}{type=2d array} 
     10; @param alonin {in}{required}{type=1d array} 
    1111; longitude of the input data 
    1212; 
    13 ; @param alatin {in}{required}{type=2d array} 
     13; @param alatin {in}{required}{type=1d array} 
    1414; latitude of the input data 
    1515; 
     
    133133  IF total(alon[indexlon] GT olon) NE 0 THEN stop 
    134134  IF total(alon[indexlon + 1L] LE olon) NE 0 THEN stop 
    135   IF (where(indexlon LE 1L     ))[0] NE -1 THEN stop 
     135  IF (where(indexlon LT 1L     ))[0] NE -1 THEN stop 
    136136  IF (where(indexlon GE jpia-3L))[0] NE -1 THEN stop 
    137137  indexlat = value_locate(alat, olat) 
  • trunk/SRC/Interpolation/neighbor.pro

    r371 r501  
    6969    IF arg_present(distance) THEN distance = sqrt(distance) 
    7070  ENDELSE 
    71   RETURN, where(distance EQ min(distance)) 
     71  minval = min(distance, indmin) 
     72  RETURN, indmin 
    7273END 
Note: See TracChangeset for help on using the changeset viewer.