read.ctd.aml | R Documentation |
read.ctd.aml()
reads files that hold data acquired with an AML
Oceanographic Base.X2 CTD instrument. The software associated with
this device can output data in multiple formats, of which read.ctd.aml()
can read only three, based on files provided to the author by users. If the
format
parameter is not supplied, the function attempts to infer it from
the first line in the file; see “Details”.
read.ctd.aml(
file,
format,
encoding = "UTF-8-BOM",
debug = getOption("oceDebug"),
processingLog,
...
)
file |
a connection or a character string giving the name of the file to load. |
format |
an integer indicating the format type. If not supplied, the first line is examined to make a guess as to the format (see “Details”). |
encoding |
a character value that indicates the encoding to be used for
this data file, if it is textual. The default value for most functions is
|
debug |
an integer specifying whether debugging information is
to be printed during the processing. This is a general parameter that
is used by many |
processingLog |
ignored. |
... |
ignored. |
If format
is not supplied, the first line of the file is examined. If that
line contains [cast header]
(case insensitive), then format 1 is inferred.
If it contains a comma (i.e. if no header is present) then format 2 is
inferred. (The AML documentation cautions against saving in this format.)
And if it contains [header]
(case insensitive) then format 3 is inferred.
Support for types 1 and 2 were added in about the year 2017, whereas type 3
was added in 2024. Documentation was once available for formats 1 and 2, but
it was not an exact match to sample files provided to the author of
read.ctd.aml()
. No documentation seemed to be available for format 3, so
the code was written after manual inspection of a sample file. Given these
things, users are advised to be on the lookout for problems.
read.ctd.aml()
returns a ctd object.
Dan Kelley
AML Oceanographic. "SeaCast 4 User Manual (Version 2.06)." AML Oceanographic, May 2016. This was once available at the <www.subsseateechnologies.com> website, but neither it nor a new version could be located by the author's search of the website in September 2024.
Other things related to ctd data:
CTD_BCD2014666_008_1_DN.ODF.gz
,
[[,ctd-method
,
[[<-,ctd-method
,
argo2ctd()
,
as.ctd()
,
cnvName2oceName()
,
ctd
,
ctd-class
,
ctd.cnv.gz
,
ctdDecimate()
,
ctdFindProfiles()
,
ctdFindProfilesRBR()
,
ctdRaw
,
ctdRepair()
,
ctdTrim()
,
ctd_aml_type1.csv.gz
,
ctd_aml_type3.csv.gz
,
d200321-001.ctd.gz
,
d201211_0011.cnv.gz
,
handleFlags,ctd-method
,
initialize,ctd-method
,
initializeFlagScheme,ctd-method
,
oceNames2whpNames()
,
oceUnits2whpUnits()
,
plot,ctd-method
,
plotProfile()
,
plotScan()
,
plotTS()
,
read.ctd()
,
read.ctd.itp()
,
read.ctd.odf()
,
read.ctd.odv()
,
read.ctd.saiv()
,
read.ctd.sbe()
,
read.ctd.ssda()
,
read.ctd.woce()
,
read.ctd.woce.other()
,
setFlags,ctd-method
,
subset,ctd-method
,
summary,ctd-method
,
woceNames2oceNames()
,
woceUnit2oceUnit()
,
write.ctd()
Other functions that read ctd data:
read.ctd()
,
read.ctd.itp()
,
read.ctd.odf()
,
read.ctd.saiv()
,
read.ctd.sbe()
,
read.ctd.ssda()
,
read.ctd.woce()
,
read.ctd.woce.other()
library(oce)
# Show S,T and p for first 5 lines of a format=1 file
f1 <- system.file("extdata", "ctd_aml_type1.csv.gz", package = "oce")
d1 <- read.ctd.aml(f1)
data.frame(S = d1[["salinity"]], T = d1[["temperature"]], p = d1[["pressure"]])
# Show S,T and p for first 5 lines of a format=3 file
f3 <- system.file("extdata", "ctd_aml_type3.csv.gz", package = "oce")
d3 <- read.ctd.aml(f3)
data.frame(S = d3[["salinity"]], T = d3[["temperature"]], p = d3[["pressure"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.