ph_calibration: Fit pH calibration parameters and generate new configuration...

View source: R/phfit.R

ph_calibrationR Documentation

Fit pH calibration parameters and generate new configuration file This function estimates pH calibration parameters using Sea-Bird's calibration equation.

Description

Fit pH calibration parameters and generate new configuration file

This function estimates pH calibration parameters using Sea-Bird's calibration equation.

Usage

ph_calibration(
  ph,
  temperature,
  ph_voltage,
  xmlcon_in,
  xmlcon_out = NULL,
  ph_serial_number
)

Arguments

ph

ph of the reference standard

temperature

Reference standard temperature in degrees celcisus

ph_voltage

Measured pH channel voltage at the reference standard

xmlcon_in

Filepath to the current CTD configuration file.

xmlcon_out

Filepath to the output CTD configuration file.

ph_serial_number

Serial number for the pH sensor (typically four digits.)

Author(s)

Sean Rohan

Examples


# Example of pH calibration with a demo file

ph_calibration(xmlcon_in = system.file("./extdata/example/SBE19plusV2_8106_ph_DO_leg2.xmlcon", package = "gapctd"),
               ph_serial_number = 9090,
               ph_voltage = c(1.977, 2.797, 3.534),
               ph = c(4, 7, 10),
               temperature = 23)

afsc-gap-products/gapctd documentation built on March 5, 2025, 3:42 a.m.