Learn R Programming

kgen (version 0.3.1)

A Tool for Calculating Stoichiometric Equilibrium Constants (Ks) for Seawater

Description

A unified software package simultaneously implemented in 'Python', 'R', and 'Matlab' providing a uniform and internally-consistent way of calculating stoichiometric equilibrium constants in modern and palaeo seawater as a function of temperature, salinity, pressure and the concentration of magnesium, calcium, sulphate, and fluorine.

Copy Link

Version

Install

install.packages('kgen')

Monthly Downloads

245

Version

0.3.1

License

MIT + file LICENSE

Maintainer

Last Published

December 19th, 2023

Functions in kgen (0.3.1)

calc_pc

Calculate pressure correction factor for Ks
calc_pressure_correction

Calculate pressure correction factor
calc_fluorine

Calculate fluorine
is_linux

Check if OS is Linux
calc_ionic_strength

Ionic strength after Dickson (1990a); see Dickson et al. (2007)
install_pymyami

Install MyAMI from pypi
calc_KW

Calculate KW
calc_Ksp

Calculate Ksp
miniconda_path

Get miniconda path
miniconda_path_default

Get miniconda default path
is_windows

Check if OS is Windows
pymyami_exists

Check if pymyami is installed
is_osx

Check if OS is OSX
calc_sulphate

Calculate sulphate
kgen-package

kgen: A Tool for Calculating Stoichiometric Equilibrium Constants (Ks) for Seawater
miniconda_conda

Check if miniconda is installed
mc_exists

Check if miniconda exists
kgen_poly

Kgen R polynomial function
calc_K

Calculate a single equilibrium constant
K_fns

List of all functions
calc_KF

Calculate KF
calc_KP2

Calculate KP2
calc_K0

Calculate K0
calc_K1

Calculate K1
calc_KP3

Calculate KP3
calc_KB

Calculate KB
calc_K2

Calculate K2
calc_seawater_correction

Kgen seawater composition correction function
calc_KP1

Calculate KP1
calc_KS

Calculate KS
calc_KSi

Calculate KSi