olm.USGS.PhreeqcPandas.writePhreeqcInput

olm.USGS.PhreeqcPandas.writePhreeqcInput(sample_row, phreeqc_file_name, phreeqcDict={'Temperature, water': 'temp', 'pH': 'pH', 'Alkalinity, total': 'Alkalinity', 'Calcium': 'Ca', 'Magnesium': 'Mg', 'Potassium': 'K', 'Sodium': 'Na', 'Sulfate': 'S', 'Nitrate': 'N', 'Chloride': 'Cl'}, datetext='', charge=None)[source]

Writes a PHREEQC input file using the row from a site panel.

Parameters:
sample_row : pandas data frame row

The row from the pandas data frame for the site and date to be processed.

phreeqc_file_name : str

Name of PHREEQC input file to write.

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.

datetext : str

String containing the text that describes the date as it should be written into the PHREEQC input file.

charge : str

String containing name of element (or pH) that should be adjusted to obtain charge balance. This is done internally by PHREEQC. (Default=None)

Returns
——-
status : int

OK if equal to 1. Error writing to file if equal to -1.