section.smooth {oce} | R Documentation |
Smooth a section in the lateral (alpha version that may change)
section.smooth(section, ...)
section |
a section object containing the section to be gridded. |
... |
optional arguments to be supplied to smooth.spline . |
This is a preliminary version of this function, and it may change in future versions. In particular, this function may get the ability to smooth in the vertical also, and perhaps additional smoothing methods should be allowed.
The section is smoothed using smooth.spline
on
individual pressure levels. This is done for temperature, salinity,
and sigma-theta individually. (This may change; perhaps
sigma-theta should be calculated from the smoothed temperature and
salinity.)
The ...
arguments will be passed to the spline routine,
allowing the user to control the spline as desired. If no ...
arguments are supplied, section.smooth
will set df
to
the number of stations divided by 5, which could be interpreted as
smoothing across 5 adjacent stations.
An object of class
"section"
that
has less lateral variation than the input section.
Dan Kelley
Sections are normally created with read.section
or make.section
. subset
may be
used to create a new section consisting of just a subset of an
existing station, e.g. to focus on a particular region.
# Eastern North Atlantic, showing Mediterranean water. library(oce) data(coastline.world) data(a03) s <- section.grid(subset(a03, indices=90:3), p=seq(00, 2500, 100)) ss <- section.smooth(s, df=8) plot(ss,coastline=coastline.world,map.xlim=c(-75,0))