olm.USGS.PhreeqcPandas.processPanel¶
-
olm.USGS.PhreeqcPandas.processPanel(site_panel, site_dir, PHREEQC_PATH, DATABASE_FILE, phreeqcDict=None, force_balance='')[source]¶ Takes a WQXtoPandas site panel 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 panel.
Parameters: site_panel : Pandas panel
The Pandas panel object produced for each site by WQXtoPandas that is to be processed through PHREEQC.
site_dir : string
The directory containing the site data and where the results should be written out.
PHREEQC_PATH : string
The path to the PHREEQC executable.
DATABASE_FILE : string
The database file to be used by PHREEQC.
phreeqcDict : dict
a dictionary with WQX characteristics as keys and phreeqc chemical names as entries. By default, processPanel will use the built in translation dict, default_phreeqc_to_WQX_translation.
force_balance : str
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’