olm.USGS.PhreeqcPandas.writePhreeqcInput

olm.USGS.PhreeqcPandas.writePhreeqcInput(sample_row, phreeqc_file_name, phreeqcDict={'Calcium': 'Ca', 'Magnesium': 'Mg', 'Sodium': 'Na', 'Nitrate': 'N', 'Temperature, water': 'temp', 'pH': 'pH', 'Potassium': 'K', 'Chloride': 'Cl', 'Alkalinity': 'Alkalinity', 'Sulfate': 'S'}, 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.

Returns:

status : int

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