olm.USGS.PhreeqcPandas.processMidf

olm.USGS.PhreeqcPandas.processMidf(site_midf, site_dir, PHREEQC_PATH, DATABASE_FILE, phreeqcDict=None, force_balance='')[source]

Takes a WQXtoPandas site multi-indexed DataFrame and runs all samples through PHREEQC, returning a DataFrame of the outputs that is indexed by date. Will run automatically within WQXtoPandas if specified in the excel start file. However, the function can also be called later by reading in a pickled site multi-indexed DataFrame.

Parameters:
site_midfPandas DataFrame

The Pandas multi-indexed DataFrame object produced for each site by WQXtoPandas that is to be processed through PHREEQC.

site_dirstring

The directory containing the site data, and where the results should be output.

PHREEQC_PATHstring

The path to the PHREEQC executable.

DATABASE_FILEstring

The database file to be used by PHREEQC.

phreeqcDictdict

a dictionary with WQX characteristics as keys and phreeqc chemical names as entries. By default, processMidf will use the built in translation dict, default_phreeqc_to_WQX_translation.

force_balancestr

PHREEQC should force charge balance on the ion indicated in this string. Use the string that represents the ion internally in PHREEQC. It is also possible to force balance on pH using force_balance=’pH’, or on alkalinity using force_balance=’Alk’