Imports the standard txt file output from most PreSens fiber optic O2 transmitters and converts the data into a data frame.
a character string. The filepath for the file to be read.
a character string. The unit of O2 measurement to be output in the data.frame. Options are:
a character string. The date format to be passed to
salinity of water sample (psu). Default is 35 psu.
The following PreSens fiber optic O2 transmitters are supported:
It is very important to note that the PreSens fiber optics O2 transmitters that are supported with this function DO NOT account for salinity (i.e. they assume salinity = 0 ppt). If the water sample measured was not fresh water, the oxygen concentrations (e.g. mg per liter or umol per liter) are incorrect in the PreSens txt file. This function corrects these O2 concentrations based on the salinity value defined by the
salinity argument. Absolute partial pressures (i.e. hPa and torr) will also be slightly different due to the slight influence of salinity on water's vapor pressure. This difference is typically ~0.05% of the recorded value.
A data frame with seven columns is returned.
Date and time, POSIXct format.
Duration of measurement trial (minutes).
Oxygen measurement in desired unit. Column name changes based on
Phase recorded. Phase is inversely related to O2.
Amplitude recorded. Amplitude is an indicator of the quality of the signal. A low amplitude warning is produced by the transmitter below 2500.
Temperature recorded or defined at beginning of measurement trial.
Error code from transmitter. See PreSens user manual for translation of error code.
Conversions are estimates based on the
marelac package and therefore differ slightly from the conversions provided by PreSens.
Matthew A. Birk, firstname.lastname@example.org
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.