Changeset 271 for trunk/SRC/Interpolation/extrapolate.pro
- Timestamp:
- 08/30/07 14:44:23 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SRC/Interpolation/extrapolate.pro
r262 r271 16 16 ; put -1 if input data are not masked 17 17 ; 18 ; @param nb_iteration {in}{optional}{type=integer scalar}{default=10.E20}18 ; @param nb_iteration {in}{optional}{type=integer}{default=large enough to fill everything} 19 19 ; Maximum number of iterations done in the extrapolation process. If there 20 20 ; is no more masked values we exit extrapolate before reaching nb_iteration 21 ; (to be sure to fill everything, you can use a very large value)22 21 ; 23 22 ; @keyword X_PERIODIC {type=scalar, 0 or 1}{default=0} … … 32 31 ; @keyword GE0 {type=scalar 0 or 1}{default=0} 33 32 ; put 1 to force the extrapolated values to be larger than 0, same as using minval=0. 33 ; 34 ; @keyword 35 ; _EXTRA to be able to call extrapolate with _extra keyword 34 36 ; 35 37 ; @returns … … 54 56 ; 55 57 FUNCTION extrapolate, zinput, maskinput, nb_iteration, X_PERIODIC = x_periodic $ 56 , MINVAL = minval, MAXVAL = maxval, GE0 = ge0 58 , MINVAL = minval, MAXVAL = maxval, GE0 = ge0, _EXTRA = ex 57 59 ; 58 60 compile_opt idl2, strictarrsubs 59 61 ; 60 62 ; check the number of iteration used in the extrapolation. 61 IF n_elements(nb_iteration) EQ 0 THEN nb_iteration = 10.E20 63 szin = size(zinput) 64 IF szin[0] NE 2 THEN return, -1. ELSE szin = szin[1:2] 65 nx = szin[0] 66 ny = szin[1] 67 IF n_elements(nb_iteration) EQ 0 THEN nb_iteration = max(szin) 62 68 IF nb_iteration EQ 0 THEN return, zinput 63 nx = (size(zinput))[1]64 ny = (size(zinput))[2]65 69 ; take care of the boundary conditions... 66 70 ;
Note: See TracChangeset
for help on using the changeset viewer.