Next: solar_b, Previous: smod, Up: Internal Routines [Contents][Index]

`smooth(`

`x` [[, `axis`], `width`][, /partial_width,
/all])

Boxcar-smooths

along the axes indicated in
`x`

over a number of elements picked from
`axis`

. If `width`

is an array, then it may have
fewer dimensions than `width`

but the dimensions it does have
must be equal to the corresponding dimensions of `x`

. In
that case, `x`

is repeated as needed to service all
elements of `width`

. The number of elements around each element
of `x`

that is smoothed over is equal to the corresponding
element of `x`

.
`width`

If

is not specified but `axis``/all`

is, then the
results are as if `indgen(`

were specified for
`width`)

. If `axis`

is not specified or negative,
then `axis`

is regarded as a one-dimensional array. In that
case, `x`

must be scalar.
`width`

`/partial_width`

determines handling at the edges: If it is set ,
then the edges are filled with the nearest smaller-width value. If it
is not set, then the edges are filled with the nearest full-width
value.