Interpolation/
extrapsmooth.pro
similar to extrapolate but could to the job in a better way because the
extrapolated values are smoothed... takes more time than extrapolate.
extrapolate data where maskinput eq 0 by filling
step by step the coastline points with the mean value of the 8 neighbourgs.
extrapsmooth
Interpolation
result = extrapsmooth(in, mskin, x_periodic=x_periodic, MINVAL=scalar, MAXVAL=scalar, GE0=scalar 0 or 1)
Return value
the extrapolated array with no more masked values
Parameters
in
in
required
type: 2d array
data to be extrapolate
mskin
Keywords
x_periodic
MINVAL
type: scalar
default: not used
to specify a minimum value to the extrapolated values
MAXVAL
type: scalar
default: not used
to specify a maximum value to the extrapolated values
GE0
type: scalar 0 or 1
default: 0
put 1 to force the extrapolated values to be larger than 0, same as using minval=0.
Examples
IDL> a=extrapsmooth(dist(jpi,jpj),tmask[*,*,0],/x_periodic)
IDL> tvplus, a
compare to extrapolate result:
IDL> b=extrapolate(dist(jpi,jpj),tmask[*,*,0],/x_periodic)
IDL> tvplus, b, window = 1
Version history
Version
$Id: extrapsmooth.pro 202 2007-01-12 11:00:06Z smasson $
History
January 2007: Sebastien Masson (smasson@lodyc.jussieu.fr)
Known issues
Restrictions
You cannot specify the number of iterations done in the extrapolation process
Produced by IDLdoc 2.0.