CT_one_cal: Calculate temperature-compensated Specific Conductance and...

View source: R/CT_one_cal.R

CT_one_calR Documentation

Calculate temperature-compensated Specific Conductance and one-point calibration 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_one_cal(
  data,
  date,
  temp,
  EC.logger,
  cal.ref,
  cal.ref.temp,
  startCal,
  endCal,
  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 logged at time of calibration

cal.ref

The conductivity calibration solution specific conductance value, uS/cm at 25degC, or the electrical conductivity value of a secondary probe

cal.ref.temp

The temperature of the conductivity standard or in situ water read by a secondary probe

startCal

Date and time at the start of the calibration

endCal

Date and time at the end of the 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 newly calculated Specific Conductance and calibrated SC values of CT logger data


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