Changeset 502
- Timestamp:
- 10/11/16 20:40:46 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/extrapolate.pro
r495 r502 71 71 ; check the number of iteration used in the extrapolation. 72 72 szin = size(zinput) 73 IF szin[0] EQ 1 THEN BEGIN 74 zinput = reform(zinput, szin[1], 1) 75 maskinput = reform(maskinput, szin[1], 1) 76 szin = size(zinput) 77 fillxdir = 1 78 ENDIF 79 73 80 IF szin[0] NE 2 THEN return, -1. ELSE szin = szin[1:2] 74 81 nx = szin[0] 75 82 ny = szin[1] 76 83 IF n_elements(nb_iteration) EQ 0 THEN nb_iteration = max(szin) 84 IF n_elements(smwin) EQ 0 THEN smwin = 0 85 smwin = smwin < min(szin) 86 IF n_elements(nsmooth) EQ 0 THEN nsmooth = 25 87 IF smwin GT 1 AND nsmooth NE 0 THEN nb_iteration = max(szin) 77 88 IF nb_iteration EQ 0 THEN return, zinput 78 89 ; take care of the boundary conditions... … … 231 242 ; smooth the filled values 232 243 ;--------------------------------------------------------------- 233 IF n_elements(smwin) EQ 0 THEN smwin = 0 234 IF smwin EQ 0 OR smwin EQ 1 THEN return, z 235 IF n_elements(nsmooth) EQ 0 THEN nsmooth = 25 236 IF nsmooth EQ 0 THEN return, z 244 IF smwin LE 1 OR nsmooth EQ 0 THEN return, z 237 245 238 246 ; add extra bands to avoid edge errors...
Note: See TracChangeset
for help on using the changeset viewer.