Imports the standard text file output from most single channel 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 described in
a character string. The date format to be passed to
salinity of water sample (psu). Default is 35 psu. Ignored for Fibox 4 files since salinity is provided by the file.
logical. For Fibox 4 files only. Should all columns (including calibration data and serial numbers) be output?
The following PreSens fiber optic O2 transmitters are supported:
Fibox 3 trace
Fibox 3 LCD trace
Microx TX3 trace
If you would like support for another PreSens O2 meter, email the package maintainer a data file from the device you would like supported.
It is very important to note that the PreSens fiber optics O2 transmitters that are supported with this function (except the Fibox 4) 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
sal 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 is returned.
Date and time, POSIXct format.
Duration of measurement trial (minutes).
Oxygen measurement in desired unit as determined by
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.
Atmospheric pressure (mbar).
Error code from transmitter. See PreSens user manual for translation of error code.
Oxygen conversions are based on
conv_o2 and therefore differ slightly from the conversions provided by PreSens.
Matthew A. Birk, email@example.com
1 2 3 4 5 6 7 8 9 10 11
## Not run: # Import a Fibox 3 file. file <- system.file('extdata', 'fibox_3_file.txt', package = 'respirometry') import_presens(file, o2_unit = 'umol_per_l', sal = 25) # Import a Fibox 4 file. file <- system.file('extdata', 'fibox_4_file.csv', package = 'respirometry') import_presens(file = file, date = '%d-%b-%Y') ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.