CT_two_cal: Calculate temperature-compensated Specific Conductance from a...

View source: R/CT_two_cal.R

CT_two_calR Documentation

Calculate temperature-compensated Specific Conductance from a two-point calibration (single high reference and single low reference) for CT logger data

Description

This function reads in a dataframe containing electrical conductivity logs from a conductivity-temperature logger and calculates specific conductance from in situ electrical conductivity and temperature readings.

Usage

CT_two_cal(
  data,
  date,
  temp,
  EC.logger,
  high.ref,
  low.ref,
  high.ref.temp,
  low.ref.temp,
  startHigh,
  endHigh,
  startLow,
  endLow,
  EC.cal = FALSE
)

Arguments

data

The dataframe containing raw Electrical Conductivity values

date

Date and time column used to filter out calibration times

temp

Temperature at which electrical conductivity values were logged

EC.logger

Electrical conductivity recorded by logger at time of calibration

high.ref

The high range conductivity calibration solution specific conductance value, uS/cm at 25degC

low.ref

The low range conductivity calibration solution specific conductance value, uS/cm at 25degC

high.ref.temp

High range in situ temperature, value from a secondary probe

low.ref.temp

Low range in situ temperature, value from a secondary probe

startHigh

Date and time at the start of the high range calibration

endHigh

Date and time at the end of the high range calibration

startLow

Date and time at the start of the low range calibration

endLow

Date and time at the end of the low range calibration

EC.cal

Logical parameter indicating whether the logger should be calibrated to an electrical conductivity value, then TRUE, or a specific conductance value, then FALSE. Default = FALSE.

Value

The original dataframe with the calibrated Electrical Conductivity values of CT logger data


dbarnas/mooreasgd documentation built on Jan. 3, 2023, 7:10 a.m.