This class stores data from Argo floats.
Details
An argo
object may be read with read.argo()
or
created with as.argo()
. Argo data can be gridded to constant
pressures with argoGrid()
or subsetted with
subset,argo-method()
. Plots can be made with
plot,argo-method()
, while summary,argo-method()
produces statistical summaries and show
produces overviews.
Slots
data
As with all
oce
objects, thedata
slot forargo
objects is a list containing the main data for the object. The key items stored in this slot include equal-length vectorstime
,longitude
,latitude
and equal-dimension matricespressure
,salinity
, andtemperature
.metadata
As with all
oce
objects, themetadata
slot forargo
objects is a list containing information about thedata
or about the object itself. Examples that are of common interest includeid
, a vector of ID codes for the profiles, anddataMode
, a vector of strings indicating whether the profile is in archived mode ("A"
), realtime mode ("R"
), or delayed mode ("D"
).processingLog
As with all
oce
objects, theprocessingLog
slot forargo
objects is a list with entries describing the creation and evolution of the object. The contents are updated by variousoce
functions to keep a record of processing steps. Object summaries andprocessingLogShow()
both display the log.
Modifying slot contents
Although the [[<-
operator may permit modification of the contents
of argo objects (see [[<-,argo-method
),
it is better to use oceSetData()
and oceSetMetadata()
,
because those functions save an entry in the processingLog
that describes the change.
Retrieving slot contents
The full contents of the data
and metadata
slots of a argo
object may be retrieved in the standard R way using slot()
. For
example slot(o,"data")
returns the data
slot of an object named o
,
and similarly slot(o,"metadata")
returns
the metadata
slot.
The slots may also be obtained with the [[,argo-method
operator, as e.g. o[["data"]]
and o[["metadata"]]
, respectively.
The [[,argo-method
operator can also
be used to retrieve items from within the data
and metadata
slots.
For example, o[["temperature"]]
can be used to retrieve temperature
from an object containing that quantity. The rule is that a named
quantity is sought first within the object's metadata
slot,
with the data
slot being checked only if metadata
does not
contain the item. This [[
method can also be used to get
certain derived quantities, if the object contains sufficient
information to calculate them. For example, an object that holds
(practical) salinity, temperature and pressure, along with
longitude and latitude, has sufficient information to compute
Absolute Salinity, and so o[["SA"]]
will yield the
calculated Absolute Salinity.
It is also possible to find items more directly, using oceGetData()
and
oceGetMetadata()
, but neither of these functions can
retrieve derived items.
See also
Other classes provided by oce:
adp-class
,
adv-class
,
bremen-class
,
cm-class
,
coastline-class
,
ctd-class
,
lisst-class
,
lobo-class
,
met-class
,
oce-class
,
odf-class
,
rsk-class
,
sealevel-class
,
section-class
,
topo-class
,
windrose-class
,
xbt-class
Other things related to argo data:
[[,argo-method
,
[[<-,argo-method
,
argo
,
argoGrid()
,
argoNames2oceNames()
,
as.argo()
,
handleFlags,argo-method
,
plot,argo-method
,
read.argo()
,
read.argo.copernicus()
,
subset,argo-method
,
summary,argo-method