sectionGrid {oce} | R Documentation |
Grid a Section in Pressure Space
Description
Grid a section, by interpolating to fixed pressure levels. The
"approx"
, "boxcar"
and "lm"
methods are described in the
documentation for ctdDecimate()
, which is used to do this
processing.
Usage
sectionGrid(
section,
p,
method = "approx",
trim = TRUE,
debug = getOption("oceDebug"),
...
)
Arguments
section |
A |
p |
Optional indication of the pressure levels to which interpolation
should be done. If this is not supplied, the pressure levels will be
calculated based on the typical spacing in the ctd profiles stored within
|
method |
The method to use to decimate data within the stations; see
|
trim |
Logical value indicating whether to trim gridded pressures
to the range of the data in |
debug |
an integer specifying whether debugging information is
to be printed during the processing. This is a general parameter that
is used by many |
... |
Optional arguments to be supplied to |
Details
The default "approx"
method is best for bottle data, the
"boxcar"
is best for ctd data, and the "lm"
method is probably
too slow to recommend for exploratory work, in which it is common to do trials
with a variety of "p"
values.
The stations in the returned value have flags with names that match those
of the corresponding stations in the original section
, but the values
of these flags are all set to NA
. This recognizes that it makes
no sense to grid flag values, but that there is merit in initializing
a flag system, for possible use in later processing steps.
Value
A section object that contains stations in which
the pressure values match identically, and that has all
flags set to NA
.
Author(s)
Dan Kelley
See Also
Other things related to section data:
[[,section-method
,
[[<-,section-method
,
as.section()
,
handleFlags,section-method
,
initializeFlagScheme,section-method
,
plot,section-method
,
read.section()
,
section-class
,
sectionAddStation()
,
sectionSmooth()
,
sectionSort()
,
section
,
subset,section-method
,
summary,section-method
Examples
# Gulf Stream
library(oce)
data(section)
GS <- subset(section, 113 <= stationId & stationId <= 129)
GSg <- sectionGrid(GS, p = seq(0, 5000, 100))
plot(GSg, which = "temperature")
## Show effects of various depth schemes