read_oo_jazirrad {photobiologyInOut} | R Documentation |
Read Files Saved by Ocean Optics' Jaz spectrometer.
Description
Reads and parses the header of processed data text files output by Jaz instruments extracting the spectral data from the body of the file and the metadata, including time and date of measurement from the header. Jaz modular spectrometers were manufactured by Ocean Optics. The company formerly named Ocean Optics is now called Ocean Insight.
Usage
read_oo_jazirrad(
file,
date = NULL,
geocode = NULL,
label = NULL,
tz = NULL,
locale = readr::default_locale()
)
read_oo_jazpc(
file,
qty.in = "Tpc",
Tfr.type = c("total", "internal"),
Rfr.type = c("total", "specular"),
date = NULL,
geocode = NULL,
label = NULL,
tz = NULL,
locale = readr::default_locale()
)
read_oo_jazdata(
file,
date = NULL,
geocode = NULL,
label = NULL,
tz = NULL,
locale = readr::default_locale()
)
Arguments
file |
character string. |
date |
a |
geocode |
A data frame with columns |
label |
character string, but if |
tz |
character Time zone used for interpreting times saved in the file header. |
locale |
The locale controls defaults that vary from place to place. The
default locale is US-centric (like R), but you can use
|
qty.in |
character string, one of "Tpc" (spectral transmittance, %), "A" (spectral absorbance), or "Rpc" (spectral reflectance, %). |
Tfr.type |
character string, either "total" or "internal". |
Rfr.type |
character string, either "total" or "specular". |
Details
Function read_oo_jazirrad
can read processed irradiance
output files. Function read_oo_jazpc
can read processed transmittance
and reflectance output files (expressed as %s). Function
read_oo_jazdata
can read raw-counts data.
Value
A source_spct object, a filter_spct object, a reflector_spct object or a raw_spct object.
Note
Although the parameter is called date
a date time is accepted
and expected. Time resolution is < 1 s if seconds are entered with a
decimal fraction, such as "2021-10-05 10:10:10.1234".
References
Examples
file.name <-
system.file("extdata", "spectrum.jaz",
package = "photobiologyInOut", mustWork = TRUE)
jaz.spct <- read_oo_jazpc(file = file.name)
jaz.spct
getWhenMeasured(jaz.spct)
getWhatMeasured(jaz.spct)
cat(comment(jaz.spct))