olm.USGS.PhreeqcPandas.writePhreeqcInput¶
- olm.USGS.PhreeqcPandas.writePhreeqcInput(sample_row, phreeqc_file_name, phreeqcDict={'Alkalinity': 'Alkalinity', 'Alkalinity, total': 'Alkalinity', 'Calcium': 'Ca', 'Chloride': 'Cl', 'Magnesium': 'Mg', 'Nitrate': 'N', 'Potassium': 'K', 'Sodium': 'Na', 'Sulfate': 'S', 'Temperature, water': 'temp', 'pH': 'pH'}, datetext='', charge=None)[source]¶
Writes a PHREEQC input file using the row from a site DataFrame.
- Parameters:
- sample_rowpandas data frame row
The row from the pandas data frame for the site and date to be processed.
- phreeqc_file_namestr
Name of PHREEQC input file to write.
- 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.
- datetextstr
String containing the text that describes the date as it should be written into the PHREEQC input file.
- chargestr
String containing name of element (or pH) that should be adjusted to obtain charge balance. This is done internally by PHREEQC. (Default=None)
- Returns
- ——-
- statusint
OK if equal to 1. Error writing to file if equal to -1.