Ignore:
Timestamp:
06/14/10 12:31:14 (14 years ago)
Author:
smasson
Message:

add box mean interpolation in file_interp

File:
1 edited

Legend:

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

    r372 r433  
    126126  ENDIF 
    127127; 
    128   dataout = total(weig*datain[addr], 1) 
     128;--------------- 
     129; do the interpolation 
     130;--------------- 
     131  intype = size(datain, /type) 
     132  if intype LE 3 THEN dataout = total(weig*float(datain[addr]), 1) $ 
     133  ELSE                dataout = total(weig*      datain[addr] , 1) 
    129134  dataout = reform(dataout, jpio, jpjo, /over) 
     135  IF intype LE 3 THEN dataout = round(temporary(dataout)) 
    130136; 
    131137  RETURN, dataout 
Note: See TracChangeset for help on using the changeset viewer.