mescla.prep.qaqc

Quality checks to run before any mixing analysis.

A mixing calculation cannot tell you that an analysis is wrong – it will happily apportion a charge-imbalanced sample among your end-members and return confident numbers. These checks are the cheapest protection available, and they belong at the top of every notebook.

Functions

charge_balance_error

Charge balance error in percent, per sample.

charge_balance_report

Per-sample charge balance with a pass/fail flag.

detection_limit_report

Count values at or below the detection limit, per species.

ec_check

Compare measured EC with EC estimated from the ion sum.

ec_from_ions

Estimate electrical conductivity (uS/cm) from the cation sum.

missing_data_report

Count missing values per species, with the count of complete samples.