AQ2010 Manual
AQ2010 Manual
AQ2010 Manual
1
Users Manual
Water Quality Data Analysis, Plotting, and Modeling
iii
Number of free bytes on your hard disk
Software installation directory
Directory location for your current project files
You may send us your questions via e-mail, fax, or call one of our technical support specialists. Please
allow up to two business days for a response. Technical support is available 8:00 am to 5:00 pm EST
Monday to Friday (excluding Canadian holidays).
iv
Visual MODFLOW Premium
Visual MODFLOW Premium is a three-dimensional groundwater flow and contaminant transport
modeling application that integrates MODFLOW-2000, SEAWAT, MODPATH, MT3DMS, MT3D99,
RT3D, VMOD 3D-Explorer, WinPEST, Stream Routing Package, Zone Budget, MGO, SAMG, and
PHT3D. Applications include well head capture zone delineation, pumping well optimization, aquifer
storage and recovery, groundwater remediation design, simulating natural attenuation, and saltwater
intrusion.
Hydro GeoAnalyst
Hydro GeoAnalyst is an information management system for managing groundwater and environmental
data. Hydro GeoAnalyst combines numerous pre and post processing components into a single program.
Components include, Project Wizard, Universal Data Transfer System, Template Manager, Materials
Specification Editor, Query Builder, QA/QC Reporter, Map Manager, Cross-Section Editor, HGA 3D-
Explorer, Borehole Log Plotter, and Report Editor. The seamless integration of these tools provide the
means for compiling and normalizing field data, analyzing and reporting subsurface data, mapping and
assessing spatial information, and reporting site data.
AquiferTest Pro
AquiferTest Pro, designed for graphical analysis and reporting of pumping test and slug test data, offers
the tools necessary to calculate an aquifer's hydraulic properties such as hydraulic conductivity,
transmissivity, and storativity. AquiferTest Pro is versatile enough to consider confined aquifers,
unconfined aquifers, leaky aquifers, and fractured rock aquifers conditions. Analysis results are
displayed in report format, or may be exported into graphical formats for use in presentations.
AquiferTest Pro also provides the tools for trends corrections, and graphical contouring water table
drawdown around the pumping well.
AquaChem
AquaChem is designed for the management, analysis, and reporting of water quality data. AquaChems
analysis capabilities cover a wide range of functions and calculations frequently used for analyzing,
interpreting and comparing water quality data. AquaChem includes a comprehensive selection of
commonly used plotting techniques to represent the chemical characteristics of aqueous geochemical
and water quality data, as well includes PHREEQC - a powerful geochemical reaction model.
v
GW Contour
The GW Contour data interpolation and contouring program incorporates techniques for mapping
velocity vectors and particle tracks. GW Contour incorporates the most commonly used 2D data
interpolation techniques for the groundwater and environmental industry including Natural Neighbor,
Inverse Distance, Kriging, and Bilinear. GW Contour is designed for contouring surface or water levels,
contaminant concentrations, or other spatial data.
Visual HELP
Visual HELP is a one-dimensional, unsaturated zone flow modeling application built for optimizing the
hydrologic design of municipal landfills. Visual HELP is based on the US E.P.A . HELP model
(Hydrologic Evaluation of Landfill Performance) and has been integrated into a 32-Bit Windows
application. It combines the International Weather Generator, Landfill Profile Designer, and Report
Editor. Applications include designing landfill profiles, predicting leachate mounding, and evaluating
potential leachate seepage to the groundwater.
Visual PEST-ASP
Visual PEST-ASP combines the powerful parameter estimation capabilities of PEST-ASP, with the
graphical processing and display features of WinPEST. Visual PEST-ASP can be used to assist in data
interpretation, model calibration and predictive analysis by optimizing model parameters to fit a set of
observations. This popular estimation package achieves model independence through its capacity to
communicate with a model through its input and output files.
Visual Groundwater
Visual Groundwater is a visualization software package that delivers high-quality, three-dimensional
representations of subsurface characterization data and groundwater modeling results. Combining
graphical tools for three-dimensional visualization and animation, Visual Groundwater also features a
data management system specifically designed for borehole investigation data. The graphical display
features allow the user to display site maps, discrete data contours, isosurfaces and cross sectional views
of the data.
vi
Groundwater Instrumentation
Diver-NETZ
Diver-NETZ is an all-inclusive groundwater monitoring network system that integrates high-quality
field instrumentation with the industries latest communications and data management technologies. All
of the Diver-NETZ components are designed to optimize your project workflow from collecting and
recording groundwater data in the field - to project delivery in the office.
*Mark of Schlumberger
vii
viii
Table of Contents
1. Introduction to AquaChem.......................................................... 1
Installing AquaChem ..................................................................................... 3
System Requirements ...................................................................................................3
Installation ....................................................................................................................3
Stand Alone Installation .................................................................................................................... 3
PHREEQC-I Installation ................................................................................................................... 4
PHREEQC for Windows Installation ............................................................................................... 4
Uninstalling AquaChem ................................................................................ 5
On-Line Help ................................................................................................. 5
Starting AquaChem ....................................................................................... 6
Opening Old Project Sets ..............................................................................................6
AquaChem Interface Layout ......................................................................... 8
Active Samples/Stations Window ..............................................................................10
Sample Details Window .............................................................................................12
Station Details Window ..............................................................................................15
Plots Window ..............................................................................................................16
Table View ..................................................................................................................17
Reports Window .........................................................................................................17
Tools ...........................................................................................................................17
PHREEQC Interface ...................................................................................................18
AquaChem Toolbar ..................................................................................... 18
2. Getting Started............................................................................ 21
Creating a New Database ............................................................................ 21
Importing Data ............................................................................................................25
Assigning Symbols .....................................................................................................27
Creating Plots .............................................................................................. 33
Plot Options ................................................................................................................34
Printing Plots ...............................................................................................................35
Exporting Plots as Graphics File ................................................................................39
Creating Reports .......................................................................................... 40
Parameters tab ................................................................................................................................. 40
Statistics tab .................................................................................................................................... 42
Options tab ...................................................................................................................................... 42
Data tab ........................................................................................................................................... 43
Saving Reports ............................................................................................................44
Printing Reports ..........................................................................................................45
4. Plots............................................................................................ 183
Common Plot Features .............................................................................. 184
Title Dialogue ...........................................................................................................186
Plot Title ....................................................................................................................................... 186
Position ......................................................................................................................................... 186
Alignment ..................................................................................................................................... 186
Shift From Axis ............................................................................................................................ 186
Symbols Dialogue .....................................................................................................188
Show frame ................................................................................................................................... 188
Edit frame ..................................................................................................................................... 189
Scaled Symbol Size frame ............................................................................................................ 189
Legend dialogue ........................................................................................................190
Title frame ..................................................................................................................................... 190
Contents frame .............................................................................................................................. 191
Frame frame .................................................................................................................................. 191
Line Dialogue ...........................................................................................................191
Equation tab .................................................................................................................................. 192
Line Properties tab ........................................................................................................................ 193
Format dialogue ........................................................................................................194
Axis ............................................................................................................................................... 194
Minimum/Maximum ..................................................................................................................... 194
Labelled Ticks ............................................................................................................................... 194
Label Angle ................................................................................................................................... 194
Minor Ticks ................................................................................................................................... 195
Format ........................................................................................................................................... 195
Title ............................................................................................................................................... 195
Log Scale ...................................................................................................................................... 195
Labels dialogue .........................................................................................................195
Parameter frame ............................................................................................................................ 196
Edit Label frame ........................................................................................................................... 196
Position frame ............................................................................................................................... 197
Plot Configurations .................................................................................... 197
Save, Show, and Identify Plot Data ........................................................... 198
Show Sample Data ........................................................................................................................ 198
Identify Plot Data .......................................................................................................................... 199
Printing and Exporting Plots ..................................................................... 199
Export as Metafile .....................................................................................................200
Copy Plot to Clipboard .............................................................................................200
Printing ......................................................................................................................201
Arranging the Plots ....................................................................................................................... 202
Print Preview Window .................................................................................................................. 202
Selecting a Print Template ............................................................................................................ 203
Plot Details ................................................................................................ 204
Box and Whisker ......................................................................................................205
X-Axis frame ................................................................................................................................ 205
Y-Axis frame ................................................................................................................................ 209
Plot frame ...................................................................................................................................... 209
Depth Profile .............................................................................................................210
X-Axis and Y-Axis frames ........................................................................................................... 211
Plot frame ...................................................................................................................................... 211
Detection summary ...................................................................................................211
Axis frame ..................................................................................................................................... 212
Parameters frame .......................................................................................................................... 212
Plot frame ...................................................................................................................................... 212
Durov Plot .................................................................................................................212
Cations and Anions frames ........................................................................................................... 213
Plot frame ...................................................................................................................................... 214
Right Plot frame ............................................................................................................................ 214
Bottom Plot ................................................................................................................................... 214
Geothermometer Plot ................................................................................................214
Axis frame ..................................................................................................................................... 216
Plot frame ...................................................................................................................................... 216
Thermometer List ......................................................................................................................... 216
Giggenbach Triangle .................................................................................................216
Giggenbach Triangle frame .......................................................................................................... 217
Plot frame ...................................................................................................................................... 217
Histogram ..................................................................................................................217
X-Axis frame ................................................................................................................................ 218
Y-Axis frame ................................................................................................................................ 218
Plot frame ...................................................................................................................................... 219
Ludwig-Langelier Plot ..............................................................................................219
X-Axis and Y-Axis frames ........................................................................................................... 220
Plot frame ...................................................................................................................................... 220
Map Plot ....................................................................................................................220
Axis tab ......................................................................................................................................... 221
Symbols tab ................................................................................................................................... 223
Pie Chart tab .................................................................................................................................. 226
Radial Diagram tab ....................................................................................................................... 227
Stiff Diagram tab .......................................................................................................................... 228
Meteoric Water Line (MWL) Plot ............................................................................229
X-Axis and Y-Axis frames ........................................................................................................... 230
Plot frame ...................................................................................................................................... 230
Pie Plot ......................................................................................................................230
Sample .......................................................................................................................................... 231
Parameters frame .......................................................................................................................... 232
Plot frame ...................................................................................................................................... 233
Piper Plot ...................................................................................................................233
Cations and Anions frames ........................................................................................................... 234
Plot frame ...................................................................................................................................... 234
Probability plot .........................................................................................................234
X-Axis frame ................................................................................................................................ 235
Y-Axis frame ................................................................................................................................ 235
Plot frame ...................................................................................................................................... 235
Quantile Plot .............................................................................................................235
X-Axis frame ................................................................................................................................ 236
Y-Axis frame ................................................................................................................................ 236
Plot frame ...................................................................................................................................... 236
Radial Plot .................................................................................................................236
Sample .......................................................................................................................................... 237
Parameters frame .......................................................................................................................... 237
Axes frame .................................................................................................................................... 238
Filling options frame ..................................................................................................................... 238
Scatter Plot ................................................................................................................238
X-Axis and Y-Axis frames ........................................................................................................... 239
Plot frame ...................................................................................................................................... 239
Schoeller Plot ............................................................................................................240
X-Axis frame ................................................................................................................................ 241
Y-Axis frame ................................................................................................................................ 241
Plot frame ...................................................................................................................................... 241
Stacked Bars .............................................................................................................241
Stiff Plot ....................................................................................................................242
Sample .......................................................................................................................................... 243
Parameters frame .......................................................................................................................... 243
Axis frame ..................................................................................................................................... 244
Plot frame ...................................................................................................................................... 244
Ternary Plot ..............................................................................................................244
Parameters frame .......................................................................................................................... 245
Plot frame ...................................................................................................................................... 245
Time Series (Statistics Summary) .............................................................................245
Parameter ...................................................................................................................................... 246
Statistics frame .............................................................................................................................. 246
Axis frame ..................................................................................................................................... 247
Plot Frame ..................................................................................................................................... 247
Time Series Plot ........................................................................................................247
Parameter Properties frame ........................................................................................................... 248
Axis frame ..................................................................................................................................... 249
Plot Frame ..................................................................................................................................... 249
Station Properties frame ................................................................................................................ 250
Axis frame ..................................................................................................................................... 251
Plot Frame ..................................................................................................................................... 251
Wilcox Plot ...............................................................................................................252
X-Axis and Y-Axis frames ........................................................................................................... 252
Plot frame ...................................................................................................................................... 252
6. Tools........................................................................................... 323
Calculators and Converters ........................................................................ 324
AquaChem Function .................................................................................................324
Decay Calculator .......................................................................................................325
Sample .......................................................................................................................................... 325
Parameter ...................................................................................................................................... 326
Half-Life ....................................................................................................................................... 326
Time Unit ...................................................................................................................................... 326
Concentration Unit ........................................................................................................................ 326
Problem Type ................................................................................................................................ 327
Problem Type 1 ............................................................................................................................. 327
Problem Type 2 ............................................................................................................................. 327
Problem Type 3 ............................................................................................................................. 328
Find Missing Major Ion ............................................................................................328
Formula Weight Calculator ......................................................................................329
Volume Concentration Converter .............................................................................330
Special Conversions ..................................................................................................331
Examples: ...................................................................................................................................... 332
Species Converter .....................................................................................................333
Unit Calculator ..........................................................................................................334
Calculate facies .........................................................................................................335
Corrosion & Scaling .................................................................................................336
Oxygen Solubility .....................................................................................................338
QA/QC ....................................................................................................... 339
Reliability Check ......................................................................................................339
Compare Duplicates ..................................................................................................341
Find Duplicates .........................................................................................................343
Highlight Nondetects ................................................................................................343
Highlight Outliers .....................................................................................................344
Highlight Duplicates .................................................................................................344
LookUp Tables .......................................................................................... 344
Degradation Rates .....................................................................................................345
PHREEQC Phases ....................................................................................................345
Periodic Table ...........................................................................................................346
Water Standards ........................................................................................................346
Time Series ...............................................................................................................346
Links .........................................................................................................................347
Organic Compounds .................................................................................................347
Preservation Methods ...............................................................................................347
Modeling .................................................................................................... 347
Calculate Saturation Indices and Activities ..............................................................349
Calculate pH .............................................................................................................352
Example ........................................................................................................................................ 353
Calculate Eh ..............................................................................................................353
Equilibrate with Minerals .........................................................................................354
PHREEQC (Basic) ....................................................................................................356
PHREEQC (Advanced) ............................................................................................357
PHREEQC-Interactive .................................................................................................................. 358
PHREEQC for Windows .............................................................................................................. 359
Generate PHT3D Input .............................................................................................360
Create Input Files .......................................................................................................................... 362
General Tab ................................................................................................................................... 363
Solutions tab ................................................................................................................................. 364
Aquifer tab .................................................................................................................................... 365
Preview Tab .................................................................................................................................. 369
8. References.................................................................................. 401
9. Appendices ................................................................................ 407
Appendix A: Troubleshooting and Frequently Asked Questions .............. 407
Appendix B: Configuring an ODBC Connection ..................................... 409
Appendix C: Trend Analysis Tests ............................................................ 413
Linear Regression ......................................................................................................................... 413
Sens Test ...................................................................................................................................... 413
Mann-Kendall Test ....................................................................................................................... 415
.
.
1
Introduction to AquaChem
AquaChem is a software package developed specifically for graphical and numerical
analysis and modeling of water quality data. It features a fully customizable database of
physical and chemical parameters and provides a comprehensive selection of analysis
tools, calculations, and graphs for interpreting water quality data.
AquaChem's data analysis capabilities cover a wide range of functionalities and
calculations including unit conversions, charge balances, sample comparison and
mixing, statistical summaries, trend analyses, and much more. AquaChem also
comprises a customizable database of water quality standards with up to three different
action levels for each parameter. Any samples exceeding the selected standard are
automatically highlighted with the appropriate action level color for easily identifying
and qualifying potential problems.
These powerful analytical capabilities are complemented by a comprehensive selection
of commonly used plotting techniques to represent the chemical characteristics of water
quality data. The plot types available in AquaChem include:
Correlation plots: X-Y Scatter, Ludwig-Langelier, Wilcox, Depth Profile
Summary plots: Box and Whisker (Grouped, Multiple Parameters, Multiple
Stations, Time), Frequency Histogram, Quantile, Detection summary, Meteoric
Water Line, Stacked Bars
Multiple parameter plots: Piper, Durov, Ternary, Schoeller
Time-Series plots (multiple parameters, multiple stations, statistical)
Geothermometer and Giggenbach plot
Detection summary plot
Probability plots
Single sample plots: Radial, Stiff, and Pie
Thematic Map plots: Bubble, Pie, Radial and Stiff plots at sample locations
Each of these plots provides a specific interpretation of the many complex interactions
between the groundwater and aquifer materials, and identifies important data trends and
groupings.
In addition, AquaChem features a built-in link to the popular geochemical modeling
program PHREEQC for calculating equilibrium concentrations (or activities) of
1
chemical species in solution and saturation indices of solid phases in equilibrium with a
solution. For more advanced simulations, you may link to the USGS programs
PHREEQCI or PHREEQC for Windows, and use your AquaChem samples as input
solutions for these modeling utilities.
Once you start using AquaChem, you will see that it is truly one of the most powerful
tools available for interpretation, analysis and modeling of any water quality data set.
1.1.2 Installation
Stand Alone Installation
AquaChem is distributed on one CD-ROM. To install, please follow these directions:
Place the CD into your CD-ROM drive and the initial installation screen should
load automatically. Once loaded, an installation interface with several different
tabs will be presented.
Please take the time to explore the installation interface, as there is information
concerning other Schlumberger Water Services products, our worldwide
distributors, technical support, consulting, training, and how to contact us.
On the initial Installation tab, you may choose from the following two buttons:
AquaChem Installation and AquaChem Users Manual
The Users Manual button will display a PDF document of the manual, which
requires the Adobe Reader to view. If you do not have the Adobe Reader, a link
has been created in the interface to download the appropriate software.
The Installation button will initiate the installation of AquaChem on your
computer. AquaChem must be installed on your local hard disk in order to run.
Follow the installation instructions, and read the on-screen directions carefully.
You will be prompted to enter your name, company name and serial number.
Please ensure that you enter your serial number exactly as is it appears on your
CD case or invoice. Be sure to use capital letters and hyphens in the correct
locations.
Installing AquaChem 3
Once the installation is completed, you must re-boot your computer for the
system changes to take effect. After the installation is complete and your system
has re-booted, you should see the blue AquaChem icon on your Desktop screen
labeled AquaChem 2009.1. To start working with AquaChem, double-click on
this icon.
To install the software from the CD-ROM without the aid of the installation interface,
you can:
Open Windows Explorer, and navigate to the CD-ROM drive
Open the Installation folder
Double-click the AquaChem_Setup.MSI to initiate the installation
Follow the on-screen installation instructions, which will lead you through the install
and subsequently produce a desktop icon for you.
PHREEQC-I Installation
The USGSs PHREEQC-Interactive program is a graphical interface for preparing and
running complex geochemical modeling scenarios. AquaChem has a built-in link to the
PHREEQC-Interactive program that is capable of launching this program with all
selected samples already formatted as modelling input.
The PHREEQC-I must be installed separately; the installation file is available on your
CD-ROM under the PHREEQC directory.
Once installed, the PHREEQCI executable must be registered in the Aquachem
preferences. It can then be launched from AquaChem (Tools / Modeling / PHREEQC
(Advanced) and the input file will automatically be initialized with the chemical
composition of the samples that are highlighted in the AquaChem sample list.
Uninstalling AquaChem 5
1.4 Starting AquaChem
To start AquaChem, you must have the program installed on your hard
disk. If you have not yet installed AquaChem, please refer to the section,
Installing AquaChem, which is described above. Otherwise start
AquaChem by double-clicking on the desktop icon (as shown on the left-
hand side), or by accessing
SWS Software/Aquachem 2010.1 from your Start > Programs Windows menu.
Upon starting AquaChem, the following Open Database dialogue will be displayed
prompting you to select a valid AquaChem database.
Select the Demo.aqc file to open the demonstration database; to open a different
database, browse to the appropriate folder. Otherwise, to create a new database click
[Cancel] in this dialogue and select File > New from the main menu.
If you select [Yes], the AquaChem database will be opened with a screen layout as
shown on the next page, or if you select [No] then the option of opening the old project
sets will be canceled.
Starting AquaChem 7
1.5 AquaChem Interface Layout
After opening an AquaChem database file, a screen layout similar to the following
figure will appear.
Main
Toolbar
Active
Samples/
Stations
Window
Parent Window is the main AquaChem window which houses all other windows.
Main Menu Bar contains specific menus for graphs and dataset. Depending upon the
currently selected window, each window has a distinct set of menu options. A detailed
description of each main menu options associated with various windows is provided in
Chapter 3: AquaChem Menu Commands.
Main Toolbar contains specific tool buttons for different options. A detailed description
of each main toolbar item is provided in section 1.6 of this chapter, AquaChem Toolbar.
Active Samples/Stations Window will always appear when you open an AquaChem
database and will remain on-screen as long as the project database is open (i.e. the
Active Samples/Stations window cannot be closed unless the project database is
closed). This window displays the list of samples and stations in the currently selected
database. Two further windows can be accessed through the Active Samples/Stations
tab to display and manipulate the dataset:
The following remaining Child windows are used to display and manipulate the data
which can be accessed through the main menu commands:
Table View available under View menu allows you to view and edit the data in
the database as a table.
Template Designer available under the File menu contains options for
designing print templates for plots and reports.
Reports loads pre-defined data analysis reports, or user-designed reports. The
Report Designer available under the Reports contains options for designing
data reports.
Tools loads several tools for data analysis and interpretation. Modeling >
PHREEQC available under the Tools loads the interface for the PHREEQC
modeling utility, and provides direct links to the graphical user interfaces for
PHREEQC-I and PHREEQC for Windows.
AquaChem follows most standard Windows interface conventions. Each window can
be minimized to the bottom of the Parent window and re-opened as needed. Likewise,
window sizes can be adjusted by dragging and releasing the corners of the window
frame. Windows can be arranged (as shown below for example) on the Parent window
using the Windows > Tile Horizontal or Tile Vertical command which are available
from the main menu.
NOTE: The internal database ID value cannot be edited, nor can this column be
removed from the active list. This ID value is automatically created when you create a
new sample or station.
The following shortcuts can be used to reach quickly a specific record without the more
time consuming Find operation. Click in the column holding the field you want to
search. Then press the first character of the searched expression on the keyboard. The
program will jump to the first expression starting with the respective character.
Alternatively, you may press Ctrl-F and type in the text string you want to search for.
After pressing the [OK] button, the program will jump to the first matching record
having a matching field.
If the Find function returned several records in a long list, these records may be scrolled
through without hiding the unselected records. To do so, press Ctrl-S on your keyboard.
This will initially take you to the first selected record, while pressing it again will scroll
through all highlighted records sequentially.
[1] Click the button at the bottom of the window, and PHREEQC will
calculate the Saturation Indices for the available Modeled Parameters in the
database. This will be done only for the current sample;
[2] Select multiple samples in the Active Samples list, and use the menu option Tools
> Modeling > Calculate Sat. Indices and Activities.
To enter data in the Station Details window, simply double-click in the desired field
and type in the appropriate information. Alternatively, data can be imported into your
database using the Import feature (see the File > Import section for more details). To
save new data and/or changes to the database for this station, press the [Save] button at
the bottom of this window. Once you are finished, press [Close] to return to the active
list.
The scroll buttons at the bottom of this window are similar to the Sample Details
window; these buttons can be used to scroll through the details for other stations in your
active list.
Any samples selected in the Active List will be highlighted on the Piper plot. Shapes
and sizes of the symbols can be modified and the plot options can be adjusted to show
just the selected samples, or all the current active samples available in your database. In
certain plots the data points may be labeled.
1.5.7 Tools
AquaChem provides you with the following pre-defined data analysis tools:
AquaChem Function
Decay Calculator
Find Missing Major Ion
Formula Weight Calculator
Volume Concentration Converter
Special Conversions
Species Converter
Unit Conversions
For a short description of each item in the toolbar, place your mouse pointer over an
icon and a hint will pop-up. The function of each toolbar item is described below:
Options button loads the options for sample/station list, Table View
options, Report, or Plot window
Show only selected button hides all samples/stations in the list that have
not been selected
Omit selected button hides all selected samples/stations in the active list
Zoom out/Zoom in buttons are used to change the zoom extent in the Map
and other X,Y plots
AquaChem Toolbar 19
Identify button identifies sample data used on the selected plot(s)
AquaChem will then automatically create a blank database file using the associated
database template file containing the data structure for each record in the database. A
blank database is shown below:
to select the import Format for the source file; Samples as Rows or
Samples as Columns. For this demonstration, the Samples as Rows
mode will be used.
You should now see the ImportData.xls file name in the File field, and a preview of file
in the lower half of the dialogue (as shown below):
If necessary, please refer to the Import section in Chapter 3 for more details on
matching parameters during the import.
[Next>]
The next dialogue contains a list of the AquaChem parameters which were not matched
up to parameters in the source file. This dialogue allows you to enter constant values for
these parameters (optional). For example, if all of the imported samples belong to the
same project or the same location and this information is not included in the source data
file, you may fill the respective fields during this step of the import. To skip this step,
leave these fields blank.
This option allows you to automatically create one symbol for each unique station in
the imported source file. These symbols will be created in the Station symbol group.
This is a very helpful feature, which can aid in plotting your sample data later on.
[No] to pass on this feature.
The last dialogue in the import options, contains a summary of the import routine and
gives you the opportunity to use the [Save] button to save the import settings. Please
check that all of your samples, stations, and parameters have been successfully
imported.
[Close]
After successfully importing the data, you will return to the main database window
showing your active Samples and Stations. For this data set, there should be 4
stations, with 7 samples taken from each station location, for a total of 28 samples.
Plots from the main menu and then select Define Symbol or Line
button
button
Once you are finished, you should have five symbols listed for the Default symbol
group, as seen in the figure below.
Edit button
Choose a Color for the new symbol. To access the color options press the
button beside Color, and select a color from the list of available
colors
Choose a Size for the symbol; the font sizes are available from the combo
box beside Size. (Recommended size is 12pt.)
[Close] button, once you are finished.
Repeat these steps for the three other new symbols that were created.
Once you are finished creating the symbols and defining the symbol properties,
[Apply]
[Close]
In your active samples list, you are ready to assign these symbols to the samples.
Symbol02 MW-1
[Assign]
Repeat these steps to assign symbols to the remaining samples for stations OW-2 and
OW-4. Close the Assign Symbol dialogue by clicking the [Close] button when you are
done.
Once you are finished, each of your samples should have a corresponding symbol
which relates to the location of that sample. In the active list of samples, there is a
column heading Symbol which indicates the Symbol group that is assigned to each
sample. You should see Symbols 2, 3, 4, and 5 in your sample list, as shown below.
Plots from the main menu, then select New and then Piper
A Piper Plot Options dialogue will appear with default plot settings. The following
section describes some of the generic plot options.
To create the plot using the default plot options, click [OK].
The plot should be created similar to the one shown below:
Creating Plots 33
You can modify the plot options by right-clicking on the plot to load the Plot options
dialogue.
If you are satisfied with your plot, proceed to the next section titled Printing Plots.
File from the main menu and select Print, or click the Print icon in
the tool bar.
Creating Plots 35
The Print Options allow you to choose which plots will be printed, their position, size,
and which plot template will be used.
A list of Available Plots will appear in the upper-left corner of this window. This list
represents the plots which are currently open in AquaChem. Select the plots you want
to print by placing a check mark in the box beside the appropriate plot name. The piper
plot is already selected by default.
The plot will be automatically sized to fit the page layout. If the default page settings
are not suitable, you can manually change the position of each plot using the options
provided in the Axis tab (Length and Origin).
Next, you will fill in the project specific plot description fields under the Page Layout
options. Press the <Enter> key after each entry:
DESCRIPTION:
type: Piper plot of samples collected from 1992 to 1998
PROJECT:
type: Sample Project
Creating Plots 37
PROJ #:
type: 2010-1
CLIENT:
type: Clients name.
DATE:
type: Current date
NOTE: The Schlumberger Water Services logo shown in the bottom of the page can be
easily replaced with your own company logo. This is done using the Template
Designer option, which can be accessed by clicking the button beside the
Template combo box. This option is not explored in this exercise. For more
information, please refer to Template Designer section in Chapter 3.
Next, if you have added a legend to your plot, you can add this legend to the printed
page, and position it on the page.
Legend tab (below the list of Available Plots, and beside the Axis tab).
Visible (click once in the check box) to activate the legend for the Piper
Plot.
The Piper plot legend will appear in the upper-left corner of the page. To move the
legend,
X-Axis field and enter a value of 15.
Y-Axis field and enter a value of 25.
If you have loaded the plot successfully, your display should be similar to the one
shown below:
You will then be prompted to enter a filename for the plot. Browse to the desired folder
on your computer, then enter a name for the file. For this demonstration, you will save
the file in the AquaChem folder.
Creating Plots 39
type: Piper as the filename for the plot
[Save]
The plot will be saved as a .WMF (Windows MetaFile) graphics file. This file can be
opened using most conventional graphics editors, or the file can be directly inserted
into a word processor application.
Reports from the main menu and then choose Statistics, and finally
Summary Statistics
A dialogue will load that will allow you to customize your Summary Statistics report.
This dialogue contains four tabs: Parameters, Statistics, Options, and Data.
Parameters tab
The first tab that loads will allow you to specify which parameters you wish to use in
your Summary Statistics report.
For this example, you will add benzene, Sum of Anions and Sum of Cations to the list
of parameters.
button
button
Once all parameters are selected, you can chose what statistics to perform.
Creating Reports 41
Statistics tab.
Statistics tab
The Statistics tab allows you to select the summary statistics that will be performed on
the data for the parameters you selected in the previous tab.
For this example, leave the statistics that are selected by default, however if you wish to
add more statistics you can do so in the same manner as adding parameters. Selecting
certain statistics will require you to enter additional information. For example, when
selecting the Quantile statistic (QUANT), you will need to enter the percentage of the
quantile.
When you are finished, move on to the Options tab.
Options tab
This tab allows you to select the output orientation (parameters as rows/statistics as
columns or parameters as columns/statistics as rows) as well as providing you with the
option to Break by symbol. If this option is selected, the summary report will be
generated for every group of samples that bear the same symbol, i.e. every station in
this example.
Data tab
The Data tab provides a preview of the data that will be used for the summary statistics
report.
OK button.
Creating Reports 43
The Statistics report window should be shown on your display, similar to the one
below.
The minimum, maximum, arithmetic mean, as well as other values of interest will be
calculated for the selected database parameters.
Once you are finished, you can Save or Print your report.
NOTE: The pre-defined reports in AquaChem can be saved as .XLS, .TXT, and .CSV.
The user-defined reports (e.g. Sample Summary Report created using the Report
Designer) can be saved as .HTM or .RTF format.
The Report will then be sent to your default Windows printer, or you may select
another printer.
[Close] located at the bottom of the Reports window, to close the window
and return to the main AquaChem window.
Creating Reports 45
46 Chapter 2: Getting Started
3
AquaChem Menu Commands
This chapter describes each of the items on the AquaChem menu bar. Similar to the
AquaChem Toolbar, the menu is context sensitive and main menu items are available
only when the active list window is the currently selected window. In addition, menu
items will become grey and inactive if there are no available for the current mode.
In this chapter, you will find information on:
File Menu.
Edit Menu
View Menu
Filter Menu
Stations/Samples Menu
Plots Menu
Reports Menu
Tools Menu
Window Menu
Help Menu
Following the menu items, you will find a section on the AquaChem database, which
covers the database options that are available for your AquaChem project.
The following sections explain the menu commands in detail.
3.1.1 New
The New option is only available when no other database is open. In order to activate
this option, you must first close any database files which may be open.
The New command creates a new empty database based on a database template. The
template is an empty database that contains all necessary data tables, parameters,
settings, etc., but does not contain sample or station data. When you create a new
File Menu 47
database, the database template is copied to the specified filename and location.
Choosing a database as a template simply means that you will find the same Lookup-
tables, Sample/Station Parameters, and Settings in the database as there are in the
selected template.
The AquaChem directory contains two default database templates:
Template.TPL is normally used to create a new database file.
AquaChem lets you save and use any valid AquaChem 5.1 database as a template.
Browse to the appropriate folder. The default folder is the installation folder
Program Files\AquaChem.
Type in the name of the new database, and click [Save].
You will then see the following New Database dialogue.
NOTE: Database filenames should be a combination of letters and numbers only. The
filename and directory path should NOT contain spaces, accents, or other special
characters.
AquaChem will then automatically create a blank database file (with .AQC extension)
using the associated database template file containing the data structure for each record
in the database. An example is shown below:
File Menu 49
If you use the Template.TPL file, then your data structure may contain some parameters
which do not apply to your data set, while others, which you might need, may be
missing. Use the File > Database options to modify the available parameters in the
template. The database options are explained later in this chapter.
3.1.2 Open
The Open command opens an existing AquaChem database. When you select this
command, the following dialogue should appear:
3.1.3 Close
The File > Close command will close the current database. This will allow you to open
other databases, or create a new database.
File Menu 51
3.1.5 Save as Template
This option allows you to save the current database settings to a database template
(.TPL) file. This new template can be used when creating future databases having the
same structure and settings as the currently loaded database.
The Template.TPL file is used only in the initial step to create a database. Similar to a
word template which you use to create a new word document, the document is
completely independent of the template after the document is created. After the
database is created, the Template file is no longer needed. You may add, remove, or
change parameters and properties; all properties are stored in the .AQC database itself.
If you want that new databases use identical settings as your current database, Do not
delete or rename the Template.TPL file, since it is the default database template.
The Save as Template command is only available when a database is open, and the
Active List window is active.
3.1.6 Import
Sample/Stations
The import option allows you to import Sample and Station data into your AquaChem
database. This option is only available when the sample/stations list window is the
active window. The Import routine is separated into four simple steps. When you select
File > Import from the main menu, the following dialogue will appear:
The source data file must be a text file with the data separated by a tab, semicolon, or
comma (extension .TXT, .PRN, or .CSV), an MSExcel file (extension .XLS), or an
52 Chapter 3: AquaChem Menu Commands
MSAccess 2000 database table or view. When using a character other than a tab (e.g. a
comma or semicolon), ensure that this character does not exist in any of the text fields
in the file. To load the data file, simply press the button beside the File field.
The file format is specified beside the Format field. Use the combo box (as shown
below) to select the appropriate file format. The source data file may have the following
four formats:
Samples as Rows - each new row represents a new sample, parameters are
listed in columns.
Samples as Columns - each new column is a new sample, parameters are
listed in rows. The only constraint of this format is that one row has to contain
the StationID information for the station for which the sample was collected.
One analyzed value for each Row - each new row contains new measured
values. The minimum information that has to be provided in each row is as
follows: SampleID (being unique for each Sample), StationID, Parameter
name, value, unit (where valid units are: mg/l, ug/l, ng/l). Typically, this format
will thus contain further columns with analysis metadata such as MDL (method
detection limit), method used for the measurement (Protocol), Precision of
measurement, etc. These meta parameters are, however, not required in the
import file.
Station Data only - import just the Station Description fields, such as X, Y, Z,
Location, Station Name, Well depth, etc. This can be useful if your source data
for stations and measurements is kept in separate files. It is then recommended
that you import the station data before analysis results. If you select this option,
each station must be in a separate row.
NWIS Stations - import station data from the National Water Information
System (NWIS) file format (*.txt).
NWIS WQ - import water quality data from the National Water Information
System (NWIS) file format (*.txt). Note: Be sure to import the corresponding
stations before importing WQ data.
PHREEQC Output - import PHREEQC output data as AquaChem samples.
For more information on importing PHREEQC output data, please refer to
Importing PHREEQC Output on page 61.
Note: NWIS (http:/nwis.waterdata.usgs.gov/nwis/) is a large network covering the
United States of American, and provides access to water-resources data collected at
File Menu 53
approximately 1.5 million sites in all 50 States, the District of Columbia, and Puerto
Rico.
NOTE: Depending on the format, the first row (or column) must contain headers.
Optionally, the subsequent rows may contain the unit or the CAS registry number
allowing a more accurate matching of the database and import parameters.
The next line in the Import Options dialogue is Settings. This option allows you to use
previously defined import settings. This is useful for importing datasets with similar
formats. If you do not want to use import settings, then leave the settings field blank. If
you want to use previous import settings, press the button to load a list of import
configurations:
Select a configuration from the list, then click [OK].
If you do not have saved import settings available,
then click [Close].
The next step in the Import Options dialogue is to
specify the row at which to start importing. This
option allows you to exclude the first row(s) if it
contains header and/or unit data.
AquaChem also provides you the option to identify
and match CAS Registry numbers (Chemical
Abstract Services). If this option is enabled, AquaChem will use the CAS Registry
number rather than the parameter name to match parameters from the import file to the
database. In order to use this feature, specify the row (or column) of the import file that
contains the CAS registry number using the up/down arrows. Also, the registry number
must be specified in the AquaChem database parameters. This feature is useful if the
import file contains many organic contaminants, which often are named and spelled
differently, resulting in an unreliable match between the database and import file when
using names only. The CAS Registry number is unique for any registered chemical
substances and therefore all parameter matches are effectively realized. It must be
noted, however, that the CAS numbers exist only for chemical parameters. Parameters
such as TDS, pH, BOD, etc., do not have CAS numbers. If you do not have CAS
numbers in your file, then leave this box unchecked.
The import routine has an option to Check for existing Samples; this will allow you
to add data to already existing samples in your database. When this option is enabled,
AquaChem will check for existing SampleIDs in your project database, and if an
identical SampleID is found in the database, the import data will be written to the
corresponding sample. If the import field includes data which is already in the database,
the data in the database is automatically overwritten. This feature is useful, if data for
the same dataset has been analyzed by different labs and must be imported from
different source files. If the Add all imported records as new samples option is
enabled, every record in the import file will create a new sample in the database,
Example
To import a data file into your AquaChem database, please follow these steps:
Hint: Before proceeding with the import option, you should ensure that your
source file containing your water analysis data is properly formatted. For
your convenience, an Excel template is provided with AquaChem, which
includes some of the most common sample and station parameters. This file
is called Import_Template.XLS and can be found in your AquaChem
installation folder. If you wish, you may use this file for your data set.
Simply enter your data, save the Excel file under a new name and proceed
with the import options. Or, you may use the ImportData.xls file as a guide;
this file is also included in your AquaChem installation folder.
File Menu 55
Once you have entered the necessary details in the first import options
dialogue, press the [Next>] button to proceed.
Double-click in the grid cell under the Aquachem column and a combo box
will appear listing all of the available parameters in your AquaChem database.
Select the appropriate parameter to match to the import Source File column.
This will correctly link the parameters in the source file to the parameter names
in the AquaChem database template.
If the parameter to be imported is not included in the database, it may be created
prior to importing. Select <create> from the available list. An AquaChem
database parameter will be created for every Import parameter that has been
mapped to <create> when you click the [Next] button. You will be prompted
to enter the required information for each parameter to be created in such way.
File Menu 57
Repeat this step for each parameter in your source file which has not been
correctly mapped to an AquaChem database parameter.
Hint: If the field names in the file are identical to the field names in the AquaChem
database template file, the parameters will be mapped automatically to the
AquaChem column. Therefore, if you format your source file correctly prior
to importing, you can save some time in this step.
AquaChem allows you to import concentrations in the units which may be different
from the ones specified for this parameter in the database. These values will be
converted to the units used in the database during the import. Unless otherwise
specified, the units used for that parameter will be identical to those specified in the
database parameters options (under File > Database). To change the default units,
double-click in the corresponding grid cell under the Units column and you will see a
selection of available units (g/L, meq/L, mg/L, mmol/L, mol, ppm,
umol/L, ug/L). Select the desired unit, and repeat this for other parameters as needed.
The values will be converted into the project units.
Once you have mapped all units and parameters, press the [Next>] button to proceed.
If you have at least one Import parameter mapped to <create>, the following dialogue
will load:
Fill in the appropriate data and click [OK]. Make sure you select the appropriate
parameter type using the Type combo box at the top of the dialogue. You may later edit
these options later on in File>Database>Parameters. Click [Select] to copy
predefined information (CAS number, formula) from a list of predefined parameters.
The most important value that needs to be provided is the parameter name. Other values
can be specified after the import. If more than one parameter was mapped to <create>,
AquaChem will present a new dialogue for each parameter, which was marked with the
<Create> flag.
Once the last parameter was created, the dialogue will close and you will move to the
next step of the Import routine.
This dialogue allows you to enter constant values. For example, if all of the imported
samples belong to the same project or to the same location, but this information is not
included in the data, you may fill the respective fields automatically with the specified
value during this step of the import. For example, you may read the data from a file
called MW-1.xls indicating that all samples were taken from well MW-1. In this case,
you would enter "MW-1" as a constant value for location. To skip this step, leave these
fields blank.
To proceed to the last step in the import routine, press the [Next>] button. To return to
the previous step, press the [<Previous] button.
File Menu 59
This option allows you to automatically create one symbol for each unique station in
the Station symbol group and assigns this symbol to the appropriate samples.
Click the [...] button located beside the File field, and select the desired
PHREEQC output source file.
From the Format combo box, select the PHREEQC Output option.
Select which row to start importing data from
Choose to add the imported records as new samples, or overwrite existing
samples in the database using the appropriate radio button.
Click the [Next] button.
File Menu 61
Assign Station & Map Fields
The following dialog will appear on your screen:
Click the [...] button, and select the associated station from the list of stations.
Type a comment describing the simulation results (optional)
Under the Import tab, using the horizontal scroll bar, scroll across to the far
right of the preview table. In the far right column, labeled Select, select the
desired samples to include in the import. You can use the combo box located
below the table to make automatic selections from the table, e.g., Select All,
Select Solutions only, etc.
Click the Map Fields tab. Map the PHREEQC output fields to the appropriate
fields in the AquaChem database. Note: AquaChem will automatically map
fields that have the same parameter name.
File Menu 63
Time Series Data
A common requirement is to compare chemical data to non-chemical data such as water
levels, precipitation, evaporation etc. AquaChem allows you to import non-chemical
time series data from Text Files (.PRN, .TXT, .CSV, .OUT), Microsoft Excel
spreadsheets (.XLS) and Microsoft Access databases (.MDB).
The imported time series data can be then plotted independently on time series plots
and compared with chemical data.
To import non-chemical time series data, select File > Import > Time Series Data,
from the AquaChem main menu.
The following dialog will appear on your screen:
Matching Columns
Specify a Series Name and a brief description of the time series data. Please note that
the Series Name will be used to identify the time series when plotting the data on a
time series plot. It is recommend that you create a new table for any distinct data type,
such as water levels, participation, pumping etc.
The next step involves mapping the fields in the source data to the required fields in the
AquaChem database, and assigning the appropriate data type to each field.
Under the Match column, select the appropriate destination field for each field in the
source data. You must specify a field for Value, Date and Legend. For example, the date
field in the source data should be matched with the Date field, and the measurement
field should be matched with Value field. The Legend field should be assigned to a
column in the source data that contains a descriptive label, e.g., Water Level. This label
will be displayed on the time series plot legend.
Note: Each time series may only have one Value field (measured attribute). Additional
attributes must be imported as a separate time series.
Once the fields have been mapped, select the Next> button.
A warning message may appear if any rows in the source data are deemed invalid (see
below).
File Menu 65
A preview of the source data will appear (shown below).
Rows that cannot be imported will be highlighted yellow. A row will be deemed invalid
if it meets one of the following criterion:
The row contains empty cells
The data type of the source field and target field do not match. For example, if
you assign the Date field as a Text data type in the mapping step instead of a
Date data type.
Click the Next> button to continue.
The Results dialog will appear, displaying the number of imported records. Click the
Close button to complete the import process.
The imported time series can now be viewed in AquaChem by selecting Tools >
Lookup Tables > Time Series from the main menu. Please see ** for more
information.
For information on showing time series data on time series plots, please refer to Time
Series Plot on page 247.
3.1.7 Export
The Export option allows you to export the data or plots for use in other applications
such as Visual MODFLOW and Hydro GeoAnalyst. The Export command is only
available when the Active List window or a graph window is currently active.
You have the option of saving the image in .WMF (Windows metafile) format.
ESRI Shapefile
This option is available only when you have the Active Samples list or a Map plot
active and it allows you to export the data as an ESRI shape file (.SHP).
If the Active Samples list active, selecting this option will load the following dialogue:
File Menu 67
Use the button to add parameters to export (X and Y coordinates are selected by
default and cannot be removed).
To create the destination file, click the button beside Filename field. The
following dialogue will load:
Type in the name of the destination file that you wish to create and click [Save]. You
will be returned to the previous dialogue and the File name field will now be filled with
the appropriate address.
Data
This menu item is available when the Active Samples list or a plot is active.
To export your sample/station data, select File>Export>Data while the Active Samples
list is active. The following dialogue will load:
Data may be exported in 2 formats: Samples as rows and One row per value. The One
row per value format means that for each parameter the stationid, sampleid, value, unit,
analysis comments, precision, MDL will be exported. This allows you to export the
complete information into an export file. However this format is less convenient if data
is to be used for plotting, statistics, etc. In the case of the standard One row per sample
format, only the concentration value for each measurement result will be written to the
export file.
By default, all the parameters are selected and will be exported.
File Menu 69
To remove parameters from the export, highlight the parameter you wish to
remove and click the button.
To add parameters to the list, click the button and select from the
parameters list that loads.
You may choose the parameter names or the parameter labels to be used as
headers in the destination file. Parameter labels are a good choice if you wish
to create a table or a presentation. Parameter names should be considered if the
exported table should be re imported back into a different AquaChem database,
as the parameter names will match automatically.
Click the button beside the File name field to create the destination file.
The destination file can be of type .PRN, .TXT, .CSV, and .XLS.
Click [Save] to generate the file.
Once you are finished, press the [Export] button.
You may also export data that was used to generate a specific plot. This feature is useful
if you wish to use this data in another plotting program. To export plot data, select the
plot you wish to export the data for and then select File>Export>Data. Once a window
containing the pertinent data loads, you have a choice of printing the data or saving it as
a .TXT, .CSV, or a .XLS file.
MODFLOW
The Export > MODFLOW option will export your current sample and station data to a
space-delimited text file. The data can then be used for the input (concentration
observation well data) of a Visual MODFLOW groundwater model.
NOTE: The [Export] button will become active only after the necessary options have
been specified.
File Menu 71
KML File
This option allows you to export Station coordinates and associated parameter data to
.KML file, a file format supported by various geobrowsers, such as Google Earth.
When the KML file is imported into Google Earth, each station is projected on a 3D
globe as a single point symbol. Associated sample data may be viewed in a pop-up
information box for each station.
Note: .KML format requires station coordinates expressed in latitude and longitude.
Therefore, if your station coordinates are currently expressed in a projected coordinates
system (e.g., UTM), you must convert them to geographic coordinates (e.g., Lat/Long).
This can be easily done using the AquaChem UTM conversion tool.
To export data to KML file format, select File > Export > KML File from the main
menu. The Export to KML File dialog will appear on your screen.
The Export to Google Earth dialog consists of three tabs: Data, Options, Preview.
Data
Select the [...] button located beside the Filename field. The Export Data dialog box
will appear, where you can specify the desired destination folder and file name for the
.KML file.
Use the button to add parameters to the .KML file. When selected, the Parameters
dialog box will load, where you can select one or more parameters in the AquaChem
database. Please note, Coord_Long, Coord_Lat and Station ID are required paramters,
and are selected by default. These parameters cannot be removed.
If you wish to export sample data, be sure to add the Sample ID parameter.
Choose the desired station symbology from the Map Symbol combo box. When the
KML file is opened in Google Earth, each station will be displayed on the map using
the specified symbol.
The Symbol Size text box allows you to specify the size of the Map Symbol, when
displayed in Google Earth. Enter a value between 1 (smallest) and 10 (largest). Please
note, the map symbols can be further customized using various options provided by
Google Earth itself.
The Show Label allows you to enable or disable station labels. If this checkbox is
empty, by default station names will not be displayed as labels in Google Earth. If this
checkbox is checked, a station name label will appear beside each station.
Preview
The Preview tab provides a preview the data that will be exported to the KML file. The
data displayed in the Preview tab is read-only.
File Menu 73
Once you have selected the desired parameters, and set the appropriate options, click
the Export button to generate the .KML file. Upon exporting, you will be prompted to
open the file in Google Earth. If you have Google Earth installed, click the Yes
button to open the .KML file. If you do not have Google Earth, click the No button.
The file can be imported into manually into Google Earth by selecting File > Open
from the Google Earth main menu.
PDF File
This option allows you to export Plot reports to PDF file format.
Note: This option is only available when the Print Options window is shown on your
screen.
To export to PDF file format:
Create the desired plots (Plots > New), or open a saved plot configuration
(Plots > Open Configuration).
Select File > Print, from the main menu.
The Print Options window will appear on your screen. Configure the plot
report as desired using the available options.
With the Print Options window open, select File > Export > PDF file from
the main menu.
The Export to PDF file dialog will appear on your screen. Specify the
destination folder and the desired file name, and then click the Save button.
Please note that you must have a version of Adobe Acrobat reader installed in order to
view exported PDF documents.
File Menu 75
From the ODBC Data Source combobox, select the ODBC configuration that will be
used to link tables from the remote database. If your HGA database does not appear in
the combobox, review the ODBC connection settings to ensure it is set up correctly.
Once the database is selected, its corresponding server information will be shown in the
Server and Database field.
[4] Click the [Next] button to begin the automated linking process. The following
warning message will show:
Before proceeding it is highly recommended that you back up your HGA database.
[5] Click the [Yes] button to continue.
[6] If the linking is successful, the following message will show:
Before continuing, AquaChem needs to initialize some fields in the HGA database.
Select the [Ok] button to continue.
[12] In some cases the following message may appear:
This message will show when there are duplicate field names in the station table and the
sample table. If your HGA database already contains chemistry data, it is likely that this
message will show. Simply click [Yes] and AquaChem will fix the problem.
Now that the tables have been successfully linked, any changes made in one
application, will show in the other. For example, if you modify a station name in the
AquaChem station table, this change will also show in the HGA station list, and vice
versa.
Please note that AquaChem is now accessing data from a SQL Server database. This
means that the SQL Server must be running and you must be connected to the server in
order to access its data.
Note: After linking, some of the linked fields, e.g., sample_id, may not show as visible
in the station and sample tables in AquaChem. To make them visible, go to View \
Options and add the fields in the sample/station list options.
File Menu 77
Click the [Yes] button to proceed.
A save dialog will display prompting you to specify a name and location for the
database. Once specified, click the [Save] button.
When the tables have been converted to MS Access database format, the following
message will be shown.
3.1.9 Print
The Print command will load the print options for the current AquaChem window or
dialogue. The print icon in the toolbar serves the same purpose. The Print option
is only available when one of the following windows is active:
Plots
Tables (Spreadsheet View), or
Reports
Please refer to Chapter 4: Printing and Exporting Plots for more details.
Available
Templates
Template
Details
Page
guide
File Menu 79
Position and size bitmap graphics for a company logo
Adjust the margins of the plot display area
The following section provides more details on the functionality of the template
designer.
NOTE: Although you have the option of modifying the default template designs, it is
strongly advised that you either duplicate the selected template, or create a new blank
template. This avoids damaging or losing the original template designs and ensures you
will always have a standard set of default Print Templates.
When you press the [Page Setup] button, the following Page Setup dialogue will
appear:
In this dialogue, in the upper Paper section you can define paper Size and Source.
In the lower Orientation section, you can define paper orientation and page Margins
for the template. The page margins will correspond to the location of the page border.
The page dimensions inside the margins will be used to automatically locate and size
the selected plots.
You can also access your standard Windows Printer options by pressing Printer button.
Once you are finished, press [OK] to return to the previous dialogue.
File Menu 81
Creating New Templates - Example
The following section describes the options of the Template Designer, and how it can
be used to build and customize your own templates. The brief instructions below tell
you how to create a basic printing template, and how to customize this to your own
preferences.
Click button to load the list of Templates.
Click button to create a new template.
Enter a name for the new template (e.g. Sample-Letter for these instructions).
Press [Close].
Choose this template from the combo box.
You will then see a new blank Print Template in the preview window. By default, all
new templates include a border and default page settings.
Creating Lines
The first tab in the template designer dialogue is Lines. This tab allows you to create
the Print Template form by drawing lines indicating the borders of the template Title
Blocks. Each line has a Name, Width, starting coordinates (X1, Y1), and ending
coordinates (X2, Y2). The coordinates units are in cm. The coordinates are measured
from the origin, which is the bottom left corner of the page.
In the Border frame you can show/hide the page border using the check-box, as well as
set the border width.
To create a new Line:
Click button and a new Line will be
created with the name new Line#.
Double-click in the Name field and enter
a unique name for the new line (e.g.
Line2).
Enter a line Width 0.2.
Enter the desired start and end
coordinates for the new line (X1, Y1
represents the starting point of the line,
and X2, Y2 represents the end point of the
line). The bottom-left corner of the
Preview Window serves as the origin for
the Template designer.
To edit an existing line, select the line from the list
and enter the new coordinates. For example, if you want to start a line at a point located
1.5 cm from the bottom of the page and 1.5 cm from the left side of the page, you would
enter a line with X1 = 1.5 and Y1= 1.5 (cm). Remember that you can always use the
mouse pointer to check the page coordinates, as shown on the left side of this dialogue.
NOTE: To allow for quick recognition, the selected line, field or label is colored in
red in the preview window. This will help you to quickly choose the starting and end
points.
To remove existing lines, select the line then press the button. The template
designer settings will automatically be saved to the database; as such there is no [Save]
button required in this dialogue.
File Menu 83
Creating Fields
The next two tabs in the template designer are
Fields and Labels. These provide options for
adding text to the template. The fields tab is used
to create, position and label the Text fields. Beside
each field, there will be a corresponding label.
The Text fields are the items which will show up
when you load the template into the print preview
window. They will be blank and prompt you to
enter the specific details.
To create a new Field:
Click button and a new Field will be
created with the name new Field#.
Enter a unique name for the field.
Enter the appropriate page coordinates
for the field (the position refers to the
page coordinate location for the bottom-left corner of the field). Remember to
leave room for the Label which will typically be placed to the LEFT of the field.
Select an appropriate font for the field. Click once in this field, and you should
see a button will appear. Press this button to access the font options for this
field.
To modify an existing field, select this item from the combo box, and make the desired
changes to the position, text value and/or font. The button can be used to remove
existing fields from the template.
The next step is to create a Label for the Text Field. As mentioned above, the Label is
commonly positioned immediately to the left of the Field, using the same Y-
coordinates. Therefore, take note of the Y-coordinates for the field(s) you just created,
so they can be used for the corresponding label.
Creating Labels
The fixed text Labels are hardcoded into the template; this means that this item will
always show up once the template has been selected, and will be Read-Only in the print
options window. Beside each label, there is a Field entry, which receives the actual text
entry for the printout when the template is loaded (information is entered into the fields
in the print preview window).
For example, a label item would be Date; beside the date, there would be a Date field.
When the template is loaded into the print options window, you will be prompted to
enter a date in the Date field, which corresponds to the plot or report(s) which has been
selected for printing.
Creating Graphics
The Graphics tab in the template designer dialogue allows you to import graphics
(.BMP, .GIF, or .JPG) into the template design.
File Menu 85
You may set the position of the image on the page
and specify the size as it will appear on the page.
Each of the default Print Templates has been
designed to accommodate an imported bitmap
image of your company logo or your clients logo
(or any image). AquaChem supports common
graphics files .BMP, .GIF, and .JPG.
To import a new bitmap image file:
Click button and a new Graphics
entry will be created with the name new
Picture#.
Enter a Name for the new graphics.
Click once in the File field and a
button should appear. Click this button to
browse the bitmap image file
(filename.BMP) and then to import the
image click [Open].
Enter the position coordinates of the bitmap (the position of the bitmap refers
to the X-Y page coordinates for the top-left corner of the bitmap image).
Enter the Width and Height of the selected bitmap file. The dimensions of the
bitmap image refers to the Width and Height of the bitmap image as it will
appear on the page. The bitmap image will be automatically re-sized (e.g.
stretched or compressed) to fit the dimensions.
You may also use the navigation and reduce/enlarge buttons to change the
position and size of the label.
To modify an existing bitmap file, select the graphics from the combo box, and make
the desired changes to the position, name, or dimensions. The button can be used to
remove existing bitmap logos from the list.
3.1.11 Preferences
The Preferences dialogue loads the general user preferences for AquaChem. These
can be accessed only when the sample/station list is active. This dialogue contains four
main tabs: General, Plots, PHREEQC, and Censored Data as shown below. A
detailed description for each of these tabs is provided in the following section.
File Menu 87
General
Parameters frame
In the Interface Colors dialogue, you can specify the AquaChem MDI (Multiple
Document Interface) main program window Background color. Simply click on the
button and a standard windows Color options dialogue will load allowing you to
choose another color.
Use the Project Location combo box to select the hemisphere for your project site.
Depending on the hemisphere, the seasons may be reversed. The seasons are counted
beginning with Spring (March 21 to June 20), in the Northern Hemisphere and Fall in
the Southern Hemisphere.
To view which season returns which number, consult the Calculations tab of the
Database.
Use the Document Root field to specify the path to the folder, containing documents
that are referenced from AquaChem records. Sample or station text fields may contain
filenames or internet addresses. For filenames, you may indicate the full filename
including the path or only the filename. In latter case, this file must be reside in the
documents root folder. This is convenient, if the documents have to be moved to a
different location. Since all reference files reside in the root folder, only the
document_root parameter has to be changed to indicate the new location. If the files are
specified including the full file path, then all records referencing the moved files must
be updated.
To view all the guideline exceedences for a parameter in the sample details table,
simply click on the highlighted cell, and then right-click to display the Parameter
Details dialog (shown below).
File Menu 89
All the active guidelines that are exceeded are displayed at the bottom of the dialog, as
indicated in the image above.
Plots
The second tab in the Preferences dialogue contains settings for Plots which is used for
the settings in the Plots and Symbols.
Active Plots
The upper left frame of this dialogue lists
the Active Plots. This allows you to activate
/ deactivate the plots. Deactivated plots will
not appear in the Plots menu (main toolbar).
This allows you to hide plots which are
never used from the menu. Active Plots are
indicated by the presence of a checkmark
beside the plot. By default, all plots are
active.
NOTE: The symbols can be defined for samples through the Plots > Define Symbol
or Line dialogue.
File Menu 91
The title of the Pie plot uses Sample_Date (8/15/1992), SampleID (MW-1-92), and
Location (Waterloo), separated by a comma.
The Plots tab also allows you to choose in which color the selected samples are
highlighted when a symbol is clicked. For example, if you use red often as symbol
color, you may want to select a different highlight color in order to distinguish which
symbols are selected and which ones are not.
PHREEQC
The third tab in the preferences dialogue has options for PHREEQC; this controls
specification of PHREEQC related Files and Folders.
Once you are finished, click [Save] then [Close]. You are now ready to run PHREEQC.
Non-detects
Data generated from chemical analysis may fall below the method detection limit
(MDL) of the analytical procedure. These measurements are generally described as
nondetects, (rather than as zero or not present) and the appropriate limit of detection is
usually reported. In cases where measurement data are described as not detected, the
concentration of the chemical is unknown although it lies somewhere between zero and
detection limit. Data that includes both detected and non-detected results are called
censored data in the statistical literature. (Office of Environmental Information, U.S.
Environmental Protection Agency, 2000).
In AquaChem database the non detects are entered with a < sign. This tab allows you
to specify settings for handling censored data in plots and calculation.
Concentrations which are greater than the upper concentration limit the analysis
method can handle are rare in modern databases, since remeasuring the diluted sample
File Menu 93
normally solves the issue. However such greater than concentrations can occur in
historic data sets.
In this dialogue, you are presented with options for displaying non detects in plots and
all calculations except the Summary Statistics as mentioned above. AquaChem allows
you to enter and store approximate measured values using the less than (<) and greater
than (>) symbols. These options require you to specify whether these approximate
values will be ignored or included in the plots.
If you choose to Ignore non detects with graphics or calculations, they will
be treated as null entries.
If you choose Dont ignore non detect results, you may specify by which
factors <> these values are multiplied for the use in plots or calculations. For
example, if 2.0 and 0.5 are specified, a value of >10 will be taken as 20, and a
value of <10 will be taken as 5.
3.1.12 Database
The File > Database command loads the AquaChem database options for your current
database. This option is only available when the active list is the current window. For
details on the Database options dialogue, please refer to The AquaChem Database
section at the end of this chapter.
3.1.13 Exit
The Exit command will exit AquaChem. Ensure that all changes are saved to your
database before exiting the program.
3.2.2 Copy
Copies the selected data or plot to the Windows Clipboard.
3.2.3 Paste
Pastes data from the Windows clipboard into the selected field. In order to paste
numerical values into a sample details field, the field must be active, which is indicated
by a flashing cursor in the field. Simply double-click in the appropriate field to activate
it and it will be ready to accept data from the clipboard.
3.2.4 Replace
The Replace command allows you to
replace data for an individual parameter
with a new value for all active samples in
the database or to multiply all existing
values by a specified factor.
Simply choose the method you wish to
apply and the parameter you wish to
apply this change to from the combo box
beside Parameter. Then enter the value
to replace or multiply by in the field beside the method combo box. Once you are
finished, click [Apply]. A warning message similar to the one shown below will appear:
Edit Menu 95
was used for analysis, the replace feature is the fastest way for updating this
information. Alternatively this information has to be entered manually in the
sample detail screen, if it was not included in the import data source.
3.2.5 Find
The Find dialogue allows you to create queries of the samples or stations in the
AquaChem database.
You may run a Simple, Result meta data, Complex Search, Find Exceedances, Find
Maxima, or SQL Query search. Each query type is discussed below.
The records which satisfy the defined search criteria will then be highlighted in your
active list. You can now use the filter options in the active list to reduce the list of
samples or stations to the highlighted records or to remove highlighted records from
this list.
Simple
A simple search allows you to specify one criterion based on Station, Sample, or
Measured values.
All records matching the search criteria will be selected (highlighted) in the active list
window after the search operation is completed. This feature is very useful for filtering
the active list to include only those samples or stations which meet a specific criteria.
To run a Simple Search:
Enter a parameter in the Parameter field, or click button to select a
parameter from the list.
Select the desired Operator (<, >, =, LIKE). Searches for strings that use the =
operator return exact matches, whereas searches that use the LIKE operator
return matches that contain the substring you have specified in the Value text
field. Searches for character strings are not case sensitive.
Enter the corresponding parameter Value. (The units for the parameter value
will be read from the Database options for the selected parameter.)
Press [Apply].
The set-up for the meta data search is very similar to that of a simple search, with the
exception of the extra field, Metadata field, which allows you to select the appropriate
meta data.
To run the Result meta data search:
From the Type combo box select Result meta data search
Select the desired Parameter, Metadata, and the Operator
Enter the corresponding Value
Click [Apply]
Complex Search
A complex search allows you to specify multiple criteria based on Station, Sample,
Measured, Calculated, Thermometer, and Modeled values.
When you select Complex Search the following dialogue will appear:
Edit Menu 97
This option allows for a more advanced search of your database. It allows you to
combine queries with logical operators, select the unit for each concentration parameter
and to search on function results as well. (e.g. Find all samples where Cl <50 AND
Hardness > 100).
To run a Complex Search:
From the top of the Find dialogue, select the Complex Search option
Enter a search string (Parameter, Operator, and Value)
Press the [Add to Criteria] button
This will cause the search string to be moved to the lower half of this dialogue.
You can now add an additional search string.
Press [Apply] after you entered the desired search strings, to run the query.
The Logical field is a combo box containing AND and OR. These logical operators
are used to link multiple search criteria. This field is only available after you have
entered at least one search criterion. The Parameter field is used to specify a database
parameter on which to base the query. Below the Operator field, there is a combo box
listing the available comparison operators (>, >=, <, <=, <>, LIKE, NOT LIKE). In the
Value field, enter a parameter value for the Find criteria. The Units field is used to
select a unit system for searches based on chemical parameters or their ratios. This may
be useful in the following example: you are searching for samples where concentration
of sodium exceeds that of chloride, indicating a sodium source other than halite. The
concentrations may be stored in mg/l in the database, but you may specify a search for a
Na/Cl ratio > 1 expressed in mmol/l.
The [Add to Criteria] button is used to transfer the specified search criteria to the
Search Criterion list box. You can also type the query expression directly into the
Find Exceedances
A Find Exceedances query allows you to find samples with a parameter that exceeds a
specified water standard. When you select Find exceedances from the Type combo box,
the following fields will be presented.
Edit Menu 99
To run a Find Exceedances search:
From the Type combo box select Find Exceedances
Select the desired water standard from the Standard combo box ( See Water
Standards on page 131 for information on how to add water standards).
Select the desired parameter from the Parameter combo box.
The corresponding standard value for the selected parameter will display in the
Standard text box.
Click the [Apply] button to perform the search.
All records matching the criteria will be selected (highlighted) in the active list window
after the search operation is completed.
Find Maxima
The Find Maxima/Minima query allows you to find samples with the highest or
lowest values of a selected parameter in all samples or just one station.
SQL Query
The SQL Query option allows you to query the AquaChem database using SQL syntax.
This options requires that you have an understanding of SQL statements as well as good
knowledge of the dataset.
Create
When you select the Create option, a Table View Settings dialogue will appear (as
shown below) listing the parameters that will be included in the columns of the
spreadsheet.
In this dialogue, enter a Name and an optional Description for the new Table View you
have created and press [Save] to return to the Table View settings dialogue. Saved
settings can now be retrieved from the Settings combo box of the Table View Settings
dialogue. In addition, this new Table View will now appear under the AquaChem View
> Table View menu below the Default table view.
The Options tab allows you to further customize the report.
Once you are finished, click [OK] to load the Table View window.
NOTE: You may not edit a cell displaying a station parameter. The reason for this is
that the station parameters are not entered for each sample; instead each sample has a
reference to the station table. Editing a station would edit this station in all samples
where it is referenced. If you need to reference a different station for a sample, use the
Assign Station option when you are in the Sample Details window (Sample > Assign
Station). If you need to assign a station that does not yet exist in the database, create a
new station using the Station > New command. You also may not edit values in the
cells that are assigned formulas, e.g. a ratio of one parameter to another or the
calculated electroneutrality, hardness, sum of cations, etc.
You may print the table view by pressing the [Print] button at the bottom of the
window, or select Print from the main menu.
Default
The Default command will load a default Table View with default parameter settings.
Contaminants
The Contaminants command will load a Table View with common contaminants.
3.3.2 Options
The Options command will load the options dialogue for the current AquaChem
window. There are options available for the various AquaChem windows. The options
will be different for a plot, table view, active list, and the Sample Details window. Each
of these is explained below. The same function is performed by the Options icon
on the toolbar.
Options - Plots
If you select View > Options while a Plot window is open, this will load the Plot
Options dialogue for that plot type.
Options - Reports
If you select Options from the View menu, while a Report window is open, this will
load the Report Options dialogue for that specific Report type.
Show All
Using this command restores all the samples or stations to your active list, e.g. any
samples that you omit can be reinstated into the active list by choosing Show All (Ctrl-
A) option from the Filter menu.
Omit selected
This option hides the selected sample(s) or station(s) from the active list. These samples
or stations are not deleted; they are simply not shown in the active list window, so that
you may work with a subset of the database.
Invert Selection
Use this command to select all records that are not selected, and de-select all records
that are currently selected.
In the Open Selection dialogue, select a previously saved selection from the list and
press [OK]. All records belonging to the selection file will then be highlighted in the
active list.
If you want to work exclusively with the samples from the selection file, select Show
Only selected after opening the selection file. Selections can also be retrieved from the
active list as shown below:
Save Selection
The Save Selection command saves the list of currently selected samples or stations to
your database. In the Save Selection dialogue enter the name of the file. This file can
be opened in later sessions to work with the same subset of the database.
3.5.1 New
This item allows you to create a new sample or a new station. When you select
Stations > New, you will see the a Station Details window:
To add station data, click with your mouse in the input fields and type in the required
data. Use the <Enter> key to accept the value and advance to the cell below. Click the
[Save] button at the bottom of the details window to add the new record to your
database.
When you select Samples > New, you will see a blank Sample Details window:
To add sample data, click with your mouse in the input fields and type in the required
data. Click the [Save] button at the bottom of the details window to add the new record
to your database.
3.5.2 Clone
Creates a duplicate sample or station. In this procedure only the potentially common
data among different samples (such as sampling data, station, etc.) are copied. Cloning
samples can be an efficient way of creating multiple samples belonging to the same
sampling event.
3.5.4 Delete
Deletes the selected sample or station.
Symbols Tab
There are two default symbol groups included with every new AquaChem database:
Default and Station. The Default symbol group includes one symbol, called Default.
The Station symbol group includes one symbol for each unique station ID that is
created in your database. Each time a new station is created in your database, a
corresponding symbol will be created in the Station symbol group; the symbol name
will be identical to the Station ID.
To create new symbol groups, click button beside the combo box below the
Symbol Group combo box:
The Symbol Groups dialogue will appear as shown below:
Editing Symbols
When the Edit Symbol button is selected, the following dialog will appear on your
screen.
Under the Symbol tab you will see different shapes of the symbols. The Color and Size
of the symbol can be modified and Symbol Previewed as it will appear on the plots.
AquaChem is capable of using geometric markers (default) or True type fonts for
symbols on plots and graphs. The symbol type can be changed in the Preferences
dialog (see Preferences on page 87).
Under the Connecting Line tab you can select Style, Width and Color. Each symbol is
associated with a particular line style. This line style, the width of the line, and the line
color can be customized for each symbol. The Style field displays a selection of six line
styles, a line width, and a line color that can be displayed in the Depth Profile Plot,
Schoeller graph and the Time Series graph to connect associated data points. Line styles
other than solid can only be applied if the line width does not exceed 0.3 mm.
Click [Apply] to save changes you made to the symbols. To return to the main
AquaChem window, press the [Close] button.
Options Tab
The Show only symbols present in record list option allows you to hide symbols,
which are not used by any of the active samples. This can be useful when, for example,
Select a Symbol Group from the combo box at the top of this dialogue
Press the button and a new field will be added to the list of symbols
Enter a name for the new symbol
Then press the <Enter> key (on your keyboard) to accept the new name
Define the symbol properties in the bottom section of this dialogue
Choose a symbol character from the list of available symbols
Choose a Color for the new symbol. To access the color options, press the
button beside the color field, and select a color from the Color palette.
Choose a Size for the symbol. A list of font sizes can be accessed by clicking
the button from the combo box.
Press [Apply] to create the symbol
Press [Close] and return to your sample list
NOTE: The auto generate symbols option is not available for the Default symbol
group. You must first create a new symbol group in order to activate the [Auto] button
and to use this option.
This feature is convenient when handling a large dataset consisting of many samples
from multiple stations. By marking manually one or several samples per station as
representative, you may later filter these samples much more quickly when creating
plots comparing all stations, where the selection of all samples would make the plot
confusing.
When you perform a search or calculation, you may choose to use only samples in the
active list which are representative of each site.
To enable this option, choose Sample > Representative > On.
To disable this option, select Sample > Representative > Off (or manually
remove the check mark in the Sample Details window).
NOTE: The Representative menu item is only available when you are in the samples
mode.
3.6.1 New
This item allows you to create a new plot. See Chapter 4: Plots for more details.
None
If you click on a plot, no samples will be highlighted. The data points on the graphs are
not linked to the database which means that samples are not identified. When you have
several open graphs and a large database with many samples, it may be convenient to
have no link between the graphs and the database in order to increase the speed of the
various AquaChem operations.
Selected Plot
Only the data points in the active graph are linked to the database. The plotted point is
activated (turns red color by default) and is selected in the sample list. This mode is
useful if you are working with a large data set and want to focus on just one graph.
All plots
The sampling point of the corresponding sample is activated on all plot windows and on
the sample list. If you are working with several graphs, you can simultaneously identify
a sample in all plots by clicking near a point in any of the plots, or by clicking on a
sample in the active list. The sample will become selected in the active list, and the
corresponding data points will be highlighted in red (by default) in all the open plot
windows. If the Table view is open, the records will be identified here as well.
3.7.5 Statistics
The Statistics submenu provides several statistical analyses you may wish to perform
on your data.
Summary Statistics
Generates the summary statistics such as Minimum, Maximum, Mean, and Percentiles
for all samples available in the project.
Trend Analysis
Calculates the trend for a selected parameter using linear regression, Sens test, or
Mann-Kendall test.
Outlier Tests
Uses Dixons (extreme value) test, Discordance test, Rosners test, and Walshs test to
determine whether there are any outliers for a specified parameter in the dataset.
3.7.7 GeoThermometers
This report displays estimations of the original temperature in the subsurface. This
report is an example of a user-defined report and may be deleted if not needed.
3.7.8 Isotopes
This report displays values for common isotopes. This report is an example of a user-
defined report and may be deleted if not needed.
3.8.1 Calculators
When you access the Calculator option from the Tools menu, you will find the
following options:
Aquachem Function
The Aquachem Function is a complement to the Calculated parameters tab available
in the Sample Details window. It allows you to calculate any function in any available
unit quickly and easily, based on the selected sample. The calculations in the Sample
Details window are fixed and typically contain only the most commonly used
calculations. However, if you want to use some of the other calculations the Aquachem
Function dialogue provides these options.
Decay Calculator
This tool allows you to calculate the degradation of a species by a first order reaction:
dC A
C A
dt
Special Conversions
This tool provides conversions for non-linear geochemical calculations. E.g.
Conductivity<>Resistivity, pe<>Eh, etc.
Species Converter
This tool allows you to convert any species into a different form. This is useful to
express a measured amount of a parameter as a different aqueous species in mg/L. For
example, you may convert Nitrogen as NO3 into Nitrogen as N or vice versa.
Unit Calculator
This tool performs basic unit conversions for length, time, volume, density, mass, etc.
Calculate facies
This command calculates the Watertype expression for all highlighted samples.
Oxygen solubility
This command allows to calculate the theoretic solubility of oxygen based on the
temperature and elevations of using the American Society of Civil Engineers formula.
3.8.2 QA/QC
Reliability Check
The Reliability Check report allows you to confirm the validity of the measured
sample data. There are a number of tests provided in AquaChem which can provide
insight into the reliability of your analysis.
Tools Menu 129
Compare Duplicates
This report allows you to compare any two records with matching DuplicateIDs and
determine where they differ for each concentration result.
Find Duplicates
The Find Duplicates utility allows you to find and remove duplicate samples or
stations:
Simply choose a parameter from the list of available parameters by placing a check
mark in the appropriate box. Only Sample Description and Station Description
parameters are available. Or to select all parameters, place a checkmark beside Match
all parameters. Then click the [Find] button.
AquaChem will then run a query on your database and locate all samples for which the
values of the set of specified parameters are identical. Common parameters for this
utility are site and date.
The results will then be shown in the lower half of this dialogue. Simply select on the
samples you want to remove and press the button to permanently remove these
samples from your project database if the duplication was introduced inadvertently.
Highlight Non-detects
Selecting this option will load a dialogue in which you can choose a parameter.
Clicking OK in that dialogue will highlight all samples in the Active Samples list that
contain a < sign in the selected parameter value.
Degradation Rates
This look up table provides a list of degradation rates for common organic chemicals.
PHREEQC Phases
This look up table provides a list of commonly used minerals including formula and
formula weights from the PHREEQC thermodynamic database. If no PHREEQC
options are specified in the preferences, then this table will be empty.
Periodic Table
This table provides information for the elements of the periodic table.
Water Standards
This table contains all of the water quality standards and guidelines for the current
database.
Links
This table contains commonly used reference websites.
Organic Compounds
Provides general information for common organic compounds. This is a user defined
table which may be deleted using the File>Database>LookUp Tables dialogue.
3.8.4 Modeling
AquaChem has a built-in link to the PHREEQC geochemical modeling program, that is
capable of creating one or more solutions from the water quality samples in your
AquaChem database. The Modeling option under the Tools menu provides links to the
various options for PHREEQC. The following is a brief introduction to the modeling
features included with AquaChem. For more details, please see Chapter 6 and 7.
Calculate pH
This allows you to calculate the pH for the selected samples. The simulation is based on
the assumption that the solution is in equilibrium with a carbonate mineral. This utility
may be used to estimate the pH, in the case where a measured pH value is not available.
However, this is calculated based on the assumption that the groundwater sample in
question flows in a carbonate aquifer and is in equilibrium in respect to calcite or
another specified carbonate material.
Calculate Eh
This allows you to calculate the Eh for the selected sample based on a redox couple.
The Eh is calculated based on the redox speciation, using the Nernst Equation. Each
Redox couple gives an individual Eh value which in cases of equilibrium conditions
should be reasonable. This menu item launches PHREEQC to search for available
redox couples and to calculate ph and Eh values for each couple.
Click [Yes] to calculate the HCO3 and CO3 modelled values for the selected sample.
Any existing HCO3 and CO3 values in the selected sample will be overwritten with the
modeled results.
PHREEQC (Basic)
This allows you to create an input file for PHREEQC, and loads a graphic user interface
to the most commonly used features of PHREEQC. The more advanced features
(Inverse Modeling, Kinetics, and Advection/Transport) are not included in this option.
To utilize these features, you may load one of the USGSs full versions of graphical
interfaces as explained below.
PHREEQC (Advanced)
This will load an external window, containing one of the USGSs PHREEQC interfaces
(PHREEQC-Interactive or PHREEQC for Windows). This will allow you to use the full
features of the PHREEQC modeling program, using your AquaChem samples as initial
solutions.
NOTE: You must have one of the mentioned external graphical interfaces installed and
configured in the PHREEQC section of the preferences in order to use this feature.
Tile Vertical
Arranges open windows one above the other.
Tile Horizontal
Arranges open windows side by side.
Cascade
Cascades open windows.
Arrange Icons
Organizes icons of minimized windows along the bottom of the parent window.
Contents
Displays the AquaChem On-line Help.
Index
Displays the Help index.
About
Displays the AquaChem version number and information on how to contact
Schlumberger Water Services.
At the bottom of the Database dialogue, you will see three buttons:
The Save button will save any changes you make to your database.
The Close button will close the Database options dialogue, and return
you to the main AquaChem window.
The Compress button will compress your database. Your project database file
size may become large if you have a large number of samples, and are
continuously deleting samples. Compressing the database will compact and
repair your database, and may make the file size more manageable. AquaChem will
create a backup copy of the uncompressed database file, with the file extension .SAV.
3.11.1 Parameters
The Parameters tab allows you to modify the data structure of the current AquaChem
database project by adding or deleting parameter fields from each of the four parameter
categories. The Parameters tab can also be used to modify the attributes of each
parameter (e.g. Display label, Internal name, Molecular weight, Charge, Units, etc.) or
to change to order in which the parameters are displayed in the Sample Details window.
In an AquaChem database there are several categories of parameters:
Station Description Parameters
Sample Description Parameters
Measured Parameters
Analysis Metadata, and
Modeled Parameters
Mandatory parameters are highlighted in yellow. A detailed description of each
parameter category follows below:
Measured Parameters
These are parameters that are either measured at a sampling location (in the field) or
derived from a laboratory analysis of a water sample taken from that location. These
parameters will contain numerical values for your sample (ex. concentrations for
cations, anions, organic contaminants, pH, TDS, etc.). For these parameters, you may
enter a comment for every analyzed value as well as an acceptable Range. An
AquaChem database may contain unlimited number of Measured parameters.
Analysis metadata
In AquaChem, each measurement may be further described with meta data fields. The
initial database includes the most commonly used fields: Method detection limit,
Protocol (Method), outlier flag, solubility, and comment. Depending on your field of
activity you might want to add meta data fields such as the Practical Quantification
Limit (PQL) or the information whether this element has been filtered after sampling.
AquaChem allows you to add an unlimited number of meta data fields to the
measurement table. Meta data information is only visible in the Sample Detail screen
where each parameter appears as an additional column behind the measured value.
Note that you have to set the respective to Visible using the Sample Detail Option
screen.
Modeled Parameters
AquaChem provides an integrated graphical interface for geochemical modeling using
PHREEQC where the data for each sample in the database can be used as input data for
the PHREEQC simulations. Modeled Parameter values are calculated by PHREEQC
during a simulation and read back to the database.
The Modeled Parameters are very similar to numerical parameters, however you may
not add comments, description, or define Ranges. Modeled Parameters appear in a
separate tab in the Sample Details window.
For more details on the Modeled Parameters and PHREEQC modeling, please refer to
Chapter 6: Tools, and Chapter 7: Geochemical Modeling with PHREEQC (Basic).
At the bottom of the Parameters list, you will see several buttons. The function of each
button (in order from left to right) is as follows:
Move to top: moves a parameter to the top of the list
Each parameter has a corresponding name, label, and info, so that it can be easily
identified in the database, and incorporated in to plots, calculations, and modelling with
PHREEQC. Below is a list of the required fields for the various parameter types.
Sample Description Parameters and Station Description Parameters require the
following Parameter Details:
Internal Key
Form Label
Description
Type
One of the new features of AquaChem is the ability to modify the type of the existing
parameters for the station and the sample table. Depending on the Type of a parameter,
different details need to be provided:
Type Integer, Long, Single, Double:
Unit
Format
Type Text:
Length
List of Values (optional)
Type Memo
Length
Type Boolean and Date:
No additional parameter details
A Measured Parameter requires the following Parameter Details:
Internal Key
Form Label
Description
Formula
Formula Weight (g/Mol)
NOTE: It is not necessary to have values entered for each field for each parameter.
However for reports and plots, it is recommended that you enter as much information as
possible.
If you are adding a Measured Parameter, then follow the steps below:
Select the Measured Parameters category from the combo box
in the upper left corner of the dialogue.
Press the button and you will
see a Parameter List dialogue (as
shown on the right-hand side).
Choose a parameter from the list of
available parameters; to add
multiple parameters, press the
<Ctrl> key (on your keyboard)
while you select multiple
parameters from the source list.
You may use the Find option to run
a query for a parameter name to
see if it is available in the
AquaChem chemical database.
Use the combo box above the parameters list to choose from the various
measured parameter categories available in AquaChem (Inorganic, Organic,
VOCs, etc.).
NOTE: Parameter names should contain numbers and letters only; do not use any other
characters, and/or spaces in the parameter names.
Upon returning to the Parameter list, you must then enter the remaining required
parameter details including the description, units, formula, format etc. All measured
chemical parameters should have a formula weight specified. If you do not know the
molecular weight of a chemical parameter, press the Calculate FMW button below the
parameter details and AquaChem will read the formula from the field and insert an
appropriate molecular weight according to the Periodic Table of Elements. Cations and
Anions must be accompanied by their Valence (positive or negative charge).
The Format field is set to Auto by default. To choose a
new display format for a parameter, click once in the
Format field, and then press the button and you will
see the dialogue as shown on the right-hand side.
The Format options allow you to specify the number of
Decimal places for measured parameters, and specify if
the value will be in Scientific or whole number format. If
Auto is selected, then AquaChem will determine the
optimal number of decimal places for that parameter.
This may result in a hiding of a 0 after a decimal place
(for example, 7.10 may be displayed as 7.1). To correct
this, disable the Auto option, and increase the number of decimals to the desired
amount. Once you are finished, press [OK] to accept changes or [Close] to return to the
previous dialogue.
Deleting Parameters
To remove a parameter from your database, simply select one or several parameters
from the parameters list on the left side of the dialogue and click the button.
Exporting Parameters
On various occasions, it will be useful to save all parameters and respective settings to a
file for documentation or review purpose. This may be accomplished by pressing the
Export button below the parameter details grid. The information may be saved to in text
or Excel format.
Mandatory Parameters
AquaChem has several parameters which are required for EVERY database, and
therefore cannot be deleted from the database. These parameters are needed by various
plots, reports, and calculations. Mandatory parameters are highlighted in yellow and
when selected, the [Delete] button becomes disabled.
The following is a list of mandatory parameters for an AquaChem database.
Ca HCO3 SAMPLE_DEPTH
Cl K Si
CO3 Mg SO4
COND Na TDS
DENSITY pH TEMP
Eh
Once you have made changes to the Parameters in your database structure, press [Save]
to accept these changes.
In the Measured parameters tab, beside the Parameter Group label, there is a combo
box listing the available parameter groups for the database (indicated by the arrow).
Simply choose one of the groups from this list, and AquaChem will display only the
data for the pre-defined parameters in that group.
This option allows you to maintain the chemicals master table, which is stored centrally
in the Aquachem.mdb file. This table is an extensive list of predefined chemicals,
which may be used as templates to create new parameters in the AquaChem project
files. You may manually add new parameters, delete parameters, or change fields in
existing parameters.
Importing Parameters
The import file typically contains dozens of chemicals that need to be created manually
in your database before the respective values can be imported. Often these files have
the one value per row format as shown below. In this format it is very tedious to
extract individual parameter names. The [Import] button allows you to automate the
extraction of these parameters and adds them to the chemicals master table and/or the
current database parameters. After pressing the [Import] button you will see the
following screen:
Press the [Load] button to proceed. This will extract all distinct parameter names found
in the specified column and switches the display to the parameters tab. The Parameters
Press the [Check] button in order to test the parameters for entries having different
names but the same registry number. This may be due to a typo in the parameter name,
in which case the parameter should be discarded. This can occur as well because of
having the same parameter measured in two different ways, e.g. filtered and unfiltered.
You might want to add such parameters to the database parameters, but not to the
Chemicals Master Tables, which should contain one record per CAS registry number
only. The system prompts you when encountering duplicate registry numbers and
unchecks the records, if you decide to discard it. Once the parameter check is ended, the
Import tab is shown.
This final tab lets you specify if the parameters should be imported to the Chemicals
Master Table only or in parallel to the current project database parameters as well. We
recommend to import parameters to the Chemicals Master Table only. Then review and
complete the parameters with missing formula weight and formula information. Finally,
3.11.4 Aliases
The third tab in the Database dialogue is the Aliases tab.
This section allows you to adjust the parameters which are used for some of the internal
calculations in AquaChem. Some parameter names have been hardwired to AquaChem
for these calculations. For example, in order to calculate the hardness given by the sum
of Ca and Mg, AquaChem must know if these parameters are called Ca or CALCIUM
in the database.
To access the look up tables, select Tools > Lookup Tables from the main menu of
AquaChem.
Once you are finished in the Lookup Tables dialogue, press [Save] to save the changes
and [Close] to return to the main menu.
NOTE: The Water Quality Guidelines tab in the Database is used to edit the
guidelines available to the project. To select which guidelines are used in the project
use File>Preferences. To specify which Water Quality standard should be used for
your database, you may do so in the Preferences dialogue, available under the File
menu. Select the General tab, and in here you will be presented with a combo box
displaying the available Standards.
If the above mentioned standards are not sufficient for your project needs, you may
create a new set of standards, as explained in the following section.
Under the Water Quality Standards tab, select the new standards from the Water
Quality Standards combo box (shown in the image below). Below that, select a
guideline level from the Level combobox.
It is recommended that the parameter names in your file are identical to the respective
parameter names (the Internal Key name) in the AquaChem database template. If the
parameter names are different, AquaChem will not recognize the data for these
parameters when you attempt to import them, and you will need to match the fields
manually. Optionally, the standard to be imported may contain the CAS registry
number per substance, allowing to match this unique code against the CAS registry
numbers for the database parameters resulting in a more efficient detection of
parameters.
NOTE: Do not include headers in the text file. The first line in your text file should be
the first available parameter for which you have a guideline level.
To import the water quality standards using a text or excel file:
Click the button beside the Import water quality standards from File
field for the filename. The following dialogue will then appear:
3.11.7 Ranges
The next tab in the Database options is the Ranges tab, as shown below:
3.11.8 Thermometers
The next tab in the Database options dialogue is the Thermometers tab, as shown
below:
T C = -------------------------- + 273
a
b + log K
where
a and b are constants describing a straight line in the 1000/T-log(K) plot, and
K depends on the reaction used for the geothermometer (SiO2 for all SiO2
thermometers, Na/K for the Na/K thermometer, etc.)
Since thermometers are usually developed from empirical data, different coefficient
values are found in the literature. AquaChem includes a compilation of most currently
used geothermometers as shown in the figure above. The equations for each of the
thermometers are stored in the project database file and can be customized and
modified. Each thermometer record includes the formulas coefficients, the reference
(author and year), and the range within which the formula was calibrated.
The Thermometers tab contains a list of available geothermometers that can be plotted
on a geothermometers plot. If a thermometer is enabled (checked) it will be available
for the geothermometers plot. If it is disabled (not checked) it will not be available for
the geothermometers plot.
There are several fields for each thermometer:
The Short Name refers to the list name of the selected geothermometer.
The Label refers to the reference name of the geothermometer.
The Reference refers to the author and year of the original publication.
The Range refers to the temperature range within which the thermometer is
supposed to provide reliable data. This normally corresponds to the range of the
calibration data.
The Type refers to the thermometer class.
3.11.9 Calculations
The last tab in the Database options dialogue is the Calculations tab, as shown below:
Isotopes
In the Isotopes frame, you may define coefficients for several functions for the
isotopic calculations. With the exception of the meteoric water line, all equations have a
highly regional character. If you want to make temperature or precipitation estimations,
please find the respective coefficients for your study area. There are also parameters for
18
O (Oxygen 18) and 2H (deuterium) equations: meteoric waterline, altitude-isotope
and altitude-mean annual temperature relations. All of these functions are derived
empirically. The coefficients for the isotope-altitude and the isotope-temperature
functions are regional and should be used only in the area of calibration. Indicate the
area of application of these functions in the field provided.
Geothermal Gradient
The Geothermal Gradient is used for a simple subsurface temperature estimation.
These options allow you to specify which values are used to calculate the temperature
at a given depth. The geothermal gradient is used in the geothermometer plot. It allows
the user to estimate the subsurface temperature of waters produced by a borehole if the
The water type is displayed in the Sample Details window as a distinct parameter.
NOTE: The Water Type parameter cannot be edited; it is read-only. Also when
changing the type of water type expression or when changing the threshold value for
major ions, you must recalculate the water type expressions for all samples using the
Tools>Calculators>Calculate Facies menu item.
Functions
The Functions frame lists all of the internal calculations performed by AquaChem,
with reference information for each calculation provided in the fields below. All of the
active functions (as indicated by a checkmark) will be available as database parameters
which can be included in statistical comparisons and for plotting data. In this dialogue,
you may select which calculations should appear in the function lists. For example, if
you never use the enthalpy calculation, you may deactivate it here. In addition, you may
define the default units for some of the functions.
The calculated values are displayed in the Sample Details window, under the
Calculated tab:
Calculated Alkalinity
Acid neutralizing capacity. Generally equal to the concentration of 2CO32- + HCO3-
+OH--H+.
Calculated Density
Calculated density based on the partial molal ionic volumes. This value is calculated as
follows:
TDS
1000 v + ------------
1000
D = --------------------------------------------
1000
where
v is the molar volume: v = n i v i ,
ni is the concentration in mmol/l of ion i and,
vi is the partial molar volume at 25C
Partial molal ionic volume coefficients are from Owen and Brinkley, 1941 and for more
details, see Hounslow, 1995, p. 58
Total Hardness
The sum of ions that can precipitate from water as calcite or dolomite. Generally, the
sum of Ca and Mg, expressed in meq/L or mg CaCO3/L, or in degrees.
100 mg CaCO3/L = 1 mmol Ca2+/L = 2 meq Ca2+/L
Sum of Anions:
Sum of all measured anions for the sample, in meq/l.
Sum of Cations:
Sum of all measured cations for the sample, in meq/l.
Sum Ions:
Sum of all ions in your sample. This can be expressed in mmol/l, meq/l, mg/L.
Na
SAR = --------------------------------
-
0.5
Ca + Mg
----------------------
2
MH (Magnesium Hazard)
Magnesium is considered to be harmful for plants, but the effect is reduced by the
presence of calcium. Magnesium Hazard was proposed by Szabolcs and Darab (1964).
Mg
MH = -------------------------- 100
Ca + Mg
Calculated TOC
This function calculates the total carbon within all organic species. Carbon from
inorganic species such as HCO3, CO3, CO2 is not included.
Calculated TOX
Calculated total organic halogens. Sum of all halogens (e.g. Cl-, Br-, I-, etc.) present in
ug/L, mg/L or g/L in all organic parameters (thus, Cl from Cl- or CL2 is excluded).
z(18O)
Average infiltration height as a function of oxygen 18 isotopic composition.
Coefficients are valid only for a very limited zone, and must be established for your
area of interest using empirical data.
T(18O)
Average temperature of infiltration zone as a function of oxygen 18, isotopic
composition. Coefficients are valid only for a very limited zone, and must be
established using empirical data.
T(2H)
Average temperature of infiltration zone as a function of deuterium. Coefficients are
valid only for a very limited zone.
z(2H)
Average infiltration height as a function of deuterium. Coefficients are valid only for a
very limited zone.
Temperature (Z)
Estimated Temperature for a given depth and geothermal gradient.
Exceeds_Solubility
Returns true (-1) if solubility is exceeded and the solution is includes a chemical
which solution is above the specified solubility.
Exceeds_NO
Returns true (-1) if natural occurrence is exceeded by one of the measured
concentrations. The natural occurrence range can be defined in the database screen on
the range tab.
Season
Returns the season number for the sample (i.e. 1=Spring, 2=Summer, 3=Fall, 4=Winter
- based on Northern Hemisphere seasons). Note that this is a convenient way to find
and select all samples that were sampled in the same season but in different years.
Spring: 21/3 - 20/6
Summer 21/6 - 20/9
Fall 21/9 - 20/12
Winter 21/12 - 20/3
On the southern hemisphere as defined in the preferences screen: 1=Fall, 2 equal
Winter, 3=spring, 4=Summer
Month
Returns the month for the sample (i.e. 1=January, 2=February, etc.). Again, using this
function in the find screen might be convenient to select data for calculating month
based statistics over several years.
Year
Returns the year for the sample.
Once you are finished in the Calculations section, press [Save] to save the changes and
[Close] to return to the main menu.
NOTE: If your database does not include some of the required parameters or if some of
the required parameters are not properly mapped in the Alias section, then the
applicable function(s) requiring these parameters will contain null values or erroneous
information.
When you select Plots from the main menu and then New, a sub menu will appear with
a list of the twenty three (23) available plot types:
183
AquaChem allows you to create multiple plots for the same data set and view these
plots simultaneously within the Windows environment. Each of these plots is explained
in greater detail later in this chapter. The following section describes some of the
features that are common to all plots.
After the plot has been created, there are two ways to access the Plot Options dialogue:
Click View>Options from the main menu when a plot window is the active
window; or
Right-mouse click on the centre of the plot window.
The Plot Options dialogue is typically divided into two major parts: the Parameter/
Series Options and Plot Options.
The Parameter/Series Options portion of the dialogue allows you to set up various
parameters of the plot, while the Plot Options portion allows you to set up such plot
features as the legend, symbols, title, and labels. Simply click the button to load the
appropriate dialogue.
Each Options dialogue has the following buttons located at the bottom of the dialogue:
The [Apply] button will apply the current plot settings to the selected plot type.
The [OK] button will apply the current plot settings to the selected plot type and will
close the plot options dialogue.
The [Cancel] button closes the plot options dialogue.
The [Set Default] button will save the current plot settings as defaults for that plot type.
This includes plot parameters, grid lines, interval, axes titles, legend appearance and
symbol settings, but does not include plot titles. The default settings will be applied
every time you create a NEW plot of that type, with the current database.
The Axes/Parameters dialogue has several buttons and functions which are common
for most (but not all) plot types:
The add button allows you to add new parameters to the plot. The add button
will load the parameter list dialogue, and allow you to select a new parameter
from the list of available parameters in your database. Simply choose the
desired parameter, press the [Select] button and this parameter will be included in the
plot. When you have chosen all needed parameters, click [Close] to return to the
options. The button beside a required parameter performs the same function.
The delete button will remove the selected parameter from the plot parameters
list.
The up-arrow button allows you to shift the selected parameter upwards in the
list of parameters.
The down-arrow button allows you to shift the selected parameter downwards
in the list of parameters.
In this window, you can enter a Plot Title and edit the title font by pressing the
button. In addition, you can change the Position, and Alignment of the plot title.
Plot Title
Defines the title of the selected graph type. Enter the plot title in the text field provided.
If no text is entered, then no title will be plotted.
Position
Defines the position of the plot title as either Above Plot or Below Plot.
Alignment
Defines the alignment of the plot title as either Left justify, Centre justify, or Right
justify in the plot window.
NOTE: This feature is applicable only to plot types that represent one distinct sample
per plot (Pie, Radial and Stiff plots only).
Under the Plot Title Options section (in the lower-left corner), you can specify which
parameters you would like to appear when using the automatic title option. Parameters
can be arranged, and added/removed using the up, down, add, or remove buttons. Once
you are satisfied with the parameters, you must specify a Field Separator. This will be
the character that separates the parameters in the title of the plot. You can use any
character as the field separator, however the most common are a hyphen, comma, or
semi-colon.
Below you can see an example of the plot that uses the automatic titling feature with
specified parameters:
Show frame
In this frame you find the following options:
Edit frame
Symbols
Click the button to open the Define Symbol or Line dialogue. In this dialogue, you
can define the names and status of the symbol groups, the shape and color of the
symbols, and the line-type and color of lines that appear in the plots (refer to the Define
Symbol or Line section in Chapter 3 for a description of the symbol groups settings).
Labels
Click the button to open the Labels dialogue. In this dialogue you can specify the
labels for each individual data point or for multiple data points at once. Select the text,
font, and position for the label. For more detail see Labels dialogue section later in this
chapter.
Proportional to
This option allows you to scale the size of the plot symbols based on a user-defined
parameter (TDS, pH, Cond, etc.). This allows you to represent an additional parameter
on your plot. For example, in a scatter plot, you can display information on three
parameters, instead of only two (X and Y). Once the parameter is selected, you can
choose different units for this parameter.
You can access these options either by clicking the button beside Legend in the
Plot Options dialogue, or by right clicking on the plot legend itself.
Title frame
The legend title can be entered in Line 1 and Line 2 (optional) and the font for the title
can be edited by pressing the button.
Symbol Names
Show/hide symbol names using this check-box. When the legend is visible, the Symbol
Names from the currently selected symbol group will be displayed on the plot. Use the
font button below the options to edit the font of the symbol names as they appear in
the legend.
Frame frame
Visible
Show/hide box around the legend using this check-box.
Shadow
Show/hide the legend shadow effect using this check-box.
Equation tab
Formula frame
This frame allows you to enter custom values for the linear regression equation
constants. If you used the Linear Regression frame to calculate values based on data
Style frame
Set the Style, Color, and Width of the line.
Axis
This combo box allows you to switch between the available axes.
Minimum/Maximum
Allows you to customize the minimum and maximum axes values. AquaChem will
determine a default minimum/maximum value based on all of the data plotted on the
graph. If you enter a new value and you wish to return to automatic calculation, enter
A in this field.
Labelled Ticks
Defines the interval value of the labelled ticks for the corresponding axis. AquaChem
will determine a default value for the labelled ticks such that the plot will have 5
labelled ticks on the corresponding axis. If you enter a new value and you wish to return
to automatic calculation, enter a value of A in this field.
Label Angle
Allows you to specify the angle to the axis at which the labels appear. Tilted tick labels
are recommended for long labels which run the risk of overlapping on smaller plots.
Format
Sets the numeric format for the labels on the axes (e.g. Auto, 0, 0.0, 0.00, 0.0E+00,
etc.). Beside Format, click button in the combo box to select from the list of
available numeric formats.
Title
Defines the title of the corresponding axis. If a title field is left empty, a default title
equal to the internal name of the parameter will be selected by AquaChem. If you want
to omit one or both axes titles, type a space in the text field(s). Use the button to
change the font.
Log Scale
Some plots allow you to show the plot data using a log scale for either the X or Y axis,
or both. This allows you to normalize the data set, if there is a significant range in the
data.
Parameter frame
If you wish the labels to be displayed only for the selected samples, click the radio
button beside Assign parameter result to selected samples only. Otherwise, leave
the default setting of Assign parameter result to all samples.
Use the combo box to select the parameter that will be used as the label. As soon as you
do so, the labels will be displayed for selected (or all) samples.
Visible
Use this check-box to display/hide the specified label for the selected sample(s).
Font
Click the button to change the label font.
Position frame
Use the arrow buttons to position the labels. The label position is updated as soon as
you click the arrow button.
To recall a saved plot configuration in the future, use the Plots > Open Configuration
option. Simply select the plot configuration you desire, then click [OK]. This will load
NOTE: You may need to re-arrange the positions of your windows in order to see the
Sample Data dialogue.
None
If this option is selected, then no symbols will be highlighted on the plot when the
samples are selected. The data points on the graphs are not linked to the database which
means that samples are not identified. When you have several open graphs and a large
database with many samples, it may be convenient to have no link between the graphs
and the database in order to increase the speed of the various AquaChem operations.
Selected Plot
Only the data points in the active graph are linked to the database. The chosen point is
activated (highlighted) and selected in the sample list. This mode is useful if you are
working with a large data set and want to focus on just one graph.
All plots
The sampling point of the corresponding sample is activated on all plot windows and on
the sample list. If you are working with several graphs, you can identify a sample in all
plots as well as in the sample list by clicking near a point in any of the plots, or by
clicking on a sample in the active list. The sample will become selected in the active
list, and the corresponding data points will be highlighted in red in all the open plot
windows.
Available Plots
Page Layout
Options
Available Plots: Contains the list of plots that were open when Print option was
selected, and thus are available for printing.
Plot Legends and Locations: Lists the X and Y location of the plot and the legend
(if available).
Page Layout Options: Lists the available plot templates and options for
customizing the report.
Print Preview Window: Provides a preview of the printed page.
To print one or more plots, you must select the desired plot(s) from the list of the
Available Plots by placing a check mark in the box beside the appropriate plot. The
In this dialogue edit the grid used to optimally position plots on the page.
If needed, click the [Refresh] button at the bottom of the screen to update the print
preview.
Plots per page option allows you to spread the plots over several pages, as well as
specify the number of plots to be arranged on each page.
US Letter - Portrait
US Letter - Landscape
A4 - Portrait
A4 - Landscape
X-Axis frame
When the Box and Whisker (Grouped) plot is used, samples are grouped by sample
name, and each box is colored based on the current symbol configuration. This plot can
be useful for comparing station box and whisker plots belonging to different domains/
areas, e.g., upgradient/downgradient.
First, select the desired parameter from the top list of parameters, and then add one or
more stations to the stations list. When the station box and whisker plots are created,
they will be colored based on the current station symbol configuration. For more
information on assigning station symbols, see Assign Symbol on page 114.
An example of a Box and Whisker (Grouped) is shown below:
An example of the Box and Whisker (Multiple Parameters) plot is shown in the figure
below.
An example of the Box and Whisker (Multiple Stations) plot is show in the figure
below:
An example of the Box and Whisker (Time) plot is shown in the figure below:
Click the button beside Format to produce the Axis dialogue. Use this dialogue to
customize the x-axis appearance.
Y-Axis frame
Unless all parameters you wish to plot are unitless, this frame allows you to select the
display unit using the Unit combo box.
Click the button beside Format to load the Axis dialogue. Use this dialogue to
customize the y-axis appearance and apply log transformation if necessary.
Plot frame
Click the button beside Title to load the Title dialogue.
Check the box beside Legend to enable the plot legend. Click the button to load
the Legend dialogue and customize the display options.
Check the box beside Show Grid to display the gridlines.
Click the button beside Lines to load the Lines dialogue. In this plot the Line
option may be used to draw a horizontal line representing the standard for the or one of
Fill Color/Pattern
Click the button beside Color to select the fill color for the box plot.
Click the button beside Pattern to choose the display pattern for the box plot.
For more details on this plot, please refer to the article: Tukey J.W., 1977: Exploratory
Data Analysis, Addison-Wesley, Reading, Massachusetts, USA. 1977, pp. 39-43.
The Depth Profile plot is similar to a borehole log. The plot displays the change of a
measured parameter over a measured sampling depth. In order to create this plot, you
must have an entry for the parameter Sample_Depth for one or more samples in your
database. You may then plot the Depth (on the Y-Axis) against any measured parameter
(on the X-Axis).
Click the button beside Format in the X-Axis and Y-Axis frames to access their
respective settings dialogues.
Plot frame
Click the button beside Title, Symbols, Lines, Legend, and Labels to access their
respective settings dialogues. The Legend and Labels features must be activated (the
box beside them must be checked) before their dialogues can be loaded.
Check the box beside Show Grid to display the gridlines.
Axis frame
Click the button beside the X-axis Format and Y-axis Format to load their
respective options dialogues.
Parameters frame
Use this frame to select the parameters for which you wish to produce the detection
summaries. Use the button to add parameters (select from the presented list), the
button to delete parameters, and and buttons to change the order in which
they appear on the plot.
Plot frame
Click the button beside Title and Legend to access their respective dialogues. The
Legend feature must be activated (checked) before the options dialogue can be loaded.
Use the check box beside Show Grid to show/hide the gridlines.
Use the check box beside Show number of samples to show/hide the number of
samples displayed to the left of the detection summary plot.
Use this frame to customize the display colors for detection summary plot. Use the
button to access the color selection dialogue.
Plot frame
Click the button beside Title, Symbols, Legend, and Labels to access their
respective options dialogues.
The Legend and Labels features must be activated (checked) before the options
dialogues can be loaded.
Check the boxes beside Labeled Ticks and Show Grid to display the tick values and
grid lines on the plot.
Click the button to change the font of the Labeled Ticks and the Axis Titles.
Bottom Plot
The bottom plot is located below the middle grid of the Durov plot. Choose which
parameter to show on this plot by selecting the button located beside the
Parameters field. You may also choose the desired Unit, and customize the appearance
of the Axis.
The following section describes some of the features and options of the
Geothermometer Plot that are not covered in the Common Plot Features section.
Geothermometers are generally expressed by the formula:
1000 a -
t K = ------------------------
b + log x
where, x is the SiO2 concentration or Na/K, etc., log (x) values plot on a straight line as
a function of 1000/T. The coefficients a and b are obtained empirically from deep
borehole data with in situ temperature measurements.
Plot frame
Click the button beside Title, Legend, Symbols, Labels, and Lines to access their
respective options dialogues. The Legend and Labels features must be activated
(checked) before the dialogues can be loaded.
Use the Show Grid check box to show/hide the plot grid lines.
Thermometer List
Select (highlight) the thermometer to be used for the plot.
Plot frame
Click the button beside Title, Symbols, Legend, and Labels to access their
respective options dialogues. The Legend and Labels features must be activated
(checked) before the options dialogues can be loaded.
Use the Show Grid check box to show/hide the plot grid lines.
For more details on the Giggenbach Triangle, please refer to the following article:
Giggenbach, W.F., 1988. Geothermal solute equilibria. Derivation of Na-K-Mg-Ca
geoindicators. Geochim Cosmochim. Acta, 52: pp. 2749-2765.
4.5.7 Histogram
Two of the oldest methods for summarizing data distributions are the frequency and
histogram plots. Both the histogram and the frequency plot use the same basic
principles to display the data: dividing the data range into units, counting the number of
points within the units and displaying the data as the height within a bar graph. An
example of a Histogram plot and the corresponding Histogram Plot Options dialogue
is shown in the figure below.
X-Axis frame
Use the button beside Parameter to select parameter to be plotted on the
histogram. This field can also handle parameter ratios, sums, or differences (e.g. Na/Cl,
Ca+Mg, Cl-SO4). Enter these parameter combinations into the parameter field
manually. Unless the parameter youve chosen is unitless (e.g. pH), the Unit combo box
will allow you to select the units for the parameter.
The Classes field defines the number of data classes (or intervals) into which the range
of parameter values will be subdivided. Each data class will be represented by a single
bar on the histogram. Type the number of classes (bars in the histogram) in the provided
field.
Click the button beside Format to load the corresponding axis options dialogue.
Y-Axis frame
The number of samples within each data class is referred to as the frequency of
occurrences. This can be expressed as either a percentage of the total number of
samples (Percents), or as the number of samples within each data class (Number of
hits). Select the desired option.
Click the button beside Format to load the corresponding axis options dialogue.
The Ludwig-Langelier square plot is similar to the projection areas of the Piper and
Durov plots. By convention, the sums of selected cations are plotted on the X-Axis and
the sums of selected anions are plotted on the Y-Axis. Each axis ranges from 0 to 50
meq%. Sample points are calculated as follows:
cat ions = Ca + Mg + Na + K
Cl
%Cl = 50 ----------
an
Suitable groupings of cations and anions are selected and plotted as percentages.
Generally, this type of graph is used to plot %Na+%K against %HCO3+%SO4. In this
plot, %Ca+%Mg and %Cl are also fixed:
%Ca+%Mg =50 - (%Na+%K)
%Cl =50 - (%HCO3 +%SO4)
All major elements can be displayed in one plot with the Ludwig-Langelier plot,
however like the Piper and Durov plots, the plot displays relative ratios rather than
absolute concentrations.
Click the button beside Format to load the axis options dialogue for the
corresponding axis.
Plot frame
Click the button beside Title, Symbols, Legend, and Labels to load the
corresponding dialogue. The Legend and Labels features must be activated (checked)
before their options dialogues can be accessed.
Use the Show Grid check box to show/hide the plot grid lines.
NOTE: You must have at least one station in your database with X and Y co-ordinates
in order to create a Map plot. Also, station coordinates must be expressed in a projected
coordinate system, and X and Y values must be positive.
When you choose a Map as the plot type, the following Map Plot Options dialogue
will appear:
Axis tab
Axes frame
Click the button beside X-axis format and Y-axis format to access the
corresponding dialogues.
Click the button beside Title, Legend, and Label to access their respective options
dialogues. The Legend and Labels features must be activated (checked) before the
options dialogue can be loaded.
Use the Frame and Show Grid check boxes to show/hide the frame around the map and
the plot grid lines.
To add a basemap to your plot click the button. In the Base Map File dialogue that
is loaded select the appropriate file type and navigate to the desired file. Click [Open]
to load the map and the file name will appear in the Base Map frame as shown below.
If you loaded a .DXF or a .SHP file, the min X/max X and min Y/max Y coordinates are
entered automatically. For the ESRI shape files you will also have the options of
changing the line width and color.
For shape files, additional options will appear allowing you to specify line width and
color.
NOTE: The images must be georeferenced in feet or meters (the units have to be the
same as the station X-Y coordinates). AquaChem does not support Lat/Long coordinate
system.
If you load a common graphics file (.BMP, .JPG, or .GIF), the program automatically
assigns one meter (or foot) per pixel in the picture. This image has to be manually
georeferenced.
Simply enter the new coordinates for 2 corner points of the map.
You may load multiple maps into your map plot. Use the and buttons to
change the order in which they appear in the plot and the check box beside the name to
show/hide the respective map image.
Symbols tab
The Symbols tab in the Map Plot Options dialogue allows you to choose a symbol to
represent the samples on the map plot
Symbol frame
There are six symbol types to choose from:
Plain Symbol
Proportional Size
Proportional Greyscale
Pie Chart
Radial Diagram
Stiff Diagram
Depending on the type of symbol you choose, the lower preview frame will show
different plot and the third tab (available only for Pie Chart, Radial Diagram, and Stiff
Diagram) will present different options to customize the chart.
Proportional Greyscale
This symbol type will display a Greyscale symbol at each sample location, with the
scale determined by the value of a selected parameter. The sample values for the
proportional parameter will be used to determine the greyscale color of the symbol at
each sample location (e.g. samples containing higher values of the proportional
parameter will have a darker greyscale). To change the proportional parameter, simply
type in the Internal name of the desired parameter in the Parameter field, or click the
button and select another parameter from the parameters list. Sample with values
less than the Lower Limit value are assigned a white symbol color, while points with
values equal to or greater than the Upper Limit value are assigned a black color fill.
Sample Aggregation
If you wish to display only one sample for every station in your project, this frame
allows you to select the criteria according to which this sample will be chosen:
Preview frame
This frame is available only for Pie, Radial and Stiff Diagrams. It presents a
generalized view of the chosen plot and the [Edit] button. Clicking on this button will
move you to the third tab which, depending on the plot type you chose, will be one of
the described below.
Parameters list
Click the button to add parameters to the pie chart and the to delete them. Use
the and buttons to change the order of the parameters.
Parameters list
Click the button to add parameters to the radial diagram and the to delete them.
Use the and buttons to change the order of the parameters.
Use the Units combo box to select the units for the parameters that require them.
Type in the symbol size in centimeters in the Symbol Size text box.
A Stiff diagram plots an equal number of cations and anions. Click the button to
add parameters to the Cation and Anion list and the to delete them. Use the
and buttons to change the order of the parameters.
The Maximum Concentration values will represent the uniform maximum value for
each parameter. The minimum axis value is always zero.
The Symbol Size field contains the setting for the size of the Stiff diagrams plotted at
each sample location.
The Fill Style (Fill Color and Fill Pattern) for each parameter can be modified by
clicking on the target parameter, then choosing a new Color or the Pattern by clicking
on button beside Fill Color and Fill Pattern fields.
Once you have configured all options to your satisfaction, click [OK] to generate the
plot. You can always access the options dialogue by right-clicking on the plot.
2
H = 8.2 x 18O + 10.8
Most precipitations and groundwaters fall closely on this line. In cases where the
measurements are shifted from this line, the type of shifting provides important
information regarding the process leading to the observed shift (e.g. rock water
interaction, evaporation, mixing with seawater etc.).
Plot frame
Click the button beside Title, Symbol, Lines, Legend and Labels to access the
corresponding options dialogues. The Legend and Labels features must be activated
(checked) before the dialogues can be loaded.
Use the Show Grid check box to show/hide the plot grid lines.
NOTE: this plot is only active if your database contains the parameters 18O and 2H
and if these parameters are mapped in the Alias section.
Sample
At the top of the Pie Plot Options dialogue, there is a Sample field which identifies
the active sample(s) associated with the plot options dialogue. If you have created
several Pie charts, you can use the Sample field to select and modify the settings for
each pie plot individually, or several at once as shown below.
Parameters frame
Parameters list
The Parameters list contains the parameters that will be plotted on the Pie chart.
Existing parameters can be changed by selecting the parameter, and then typing in the
name of the new parameter in the same field. New parameters can be added to the list
by clicking the button and selecting a parameter from the available list. The new
parameter will then be added to the bottom of the list. Parameters can be removed from
the list by selecting the parameter and clicking the button. The order of the
parameters in the list can be adjusted using the and buttons.
Unit frame
Allows you to set display unit. The typical unit is meq/l which places cations in the
upper part of the plot and anions in the lower part or vice versa, and permits a visual
control of the electroneutrality.
Plot frame
Click the button beside Title and Legend to load the corresponding options
dialogues. Pie plots are titled automatically according to the settings in
File>Preferences>Plots. The Legend feature must be activated (checked) before the
settings dialogue can be accessed.
In the Piper plot, major ions are plotted as cation and anion percentages of
milliequivalents in two base triangles. The total cations in meq/l, and the total anions in
Plot Details 233
meq/l, are set equal to 100%. The data points in the two triangles are then projected
onto the diamond grid. The projection reveals certain useful properties of the total ion
relationships. Every sample is represented by three data points; one in each triangle and
one in the projection diamond grid.
If your database stores carbonate species concentration as alkalinity, you may use the
parameters for alkalinity instead of HCO3. To do this add CO3 to the field so that it
displays HCO3+CO3.
The Piper plot allows comparisons of 6 parameters between a large number of samples.
Like all trilinear plots, it does not portray absolute ion concentrations. The main
purpose of Piper plots is to show clustering of samples.
Plot frame
Use the link buttons in this frame to modify the options for the Title, Legend,
Symbol, Labels, and Format.
X-Axis frame
Use the button beside Format to set the Y-axis options.
Y-Axis frame
Select the parameter to plot by clicking the button and choosing from the parameter
list. If the chosen parameter has units, a Units combo box will be presented in which
you can select the desired units.
Plot frame
Use the button beside Title, Legend, Symbol and Lines to set their options. Check
the box beside Show Grid to display the gridlines on the plot. Creating correlation lines
may be useful to visually test whether data is distributed on a straight line, indicating a
normal distribution of the underlying data set. if the y-axis is set to log scale, then the
alignment of the data on a line indicates lognormal distribution.
Y-Axis frame
Select the parameter to plot by clicking the button and choosing from the parameter
list. If the chosen parameter has units, a Units combo box will be presented in which
you can select the desired units.
Plot frame
Use the button beside Title, Legend, and Symbol to set their options. Check the
box beside Show Grid to display the gridlines on the plot.
Sample
The Sample field identifies the active sample(s) associated with the plot options
dialogue. If you have several Radial plots open, you can use the Sample field to select
and modify the settings for each one.
To make changes to multiple plots simultaneously, simply select all of the samples in
the list above (using your mouse), make the required plot changes, then click [Apply].
This is useful for normalizing the axes scales, units, and general formats for each of the
open Radial plots. The changes apply to most of the graph settings that affect the
appearance of the Radial plot, with the exception of the plot title. If just one sample is
highlighted and selected in this dialogue, then the plot options changes will only be
applied to this plotted sample.
Parameters frame
The Parameters list contains the parameters that will be plotted on the Radial plot. A
Radial plot requires a minimum of three parameters. Existing parameters can be
changed by selecting the parameter, and then typing in the name of the new parameter
in the same field. New parameters can be added to the list by clicking the button
and selecting a parameter from the available list. The new parameter will then be added
Axes frame
Checking the Axes labels box will display the respective parameter labels at the outer
ends of each axis.
Click the button beside Format to set the axes ticks options.
Use the button beside Color and Pattern to set these respective features.
Once you have defined the parameter options, click on the button beside Format to
set the axis options.
Plot frame
Click the button beside Title, Legend, Symbol, Label, and Lines to customize
their respective settings.
The Scatter plot is one of several plots in AquaChem for which you can add custom
trend lines. To do so, click on the button besides Lines. Use the dialogues shown
below to create and customize the trend line:
Y-Axis frame
The y-axis for the Schoeller plot is concentration of the chosen parameters. The Unit
combo-box will allow you to choose the appropriate units. If ions are portrayed in a
Schoeller plot, then it is recommended to use the meq/l unit, since it allows to compare
directly the ion ratios.
Plot frame
Click the button beside Title, Legend, and Symbols to customize their respective
settings.
Check the Show Grid box to display the gridlines on the plot.
Axis Frame
Click the [...] button to customize the X-axis and Y-axis settings. Use the Unit combo
box to select the appropriate units.
Plot Frame
Click the [...] button beside Title and Legend to customize their respective settings.
Use the Show gRid check box to show gridlines on the plot. Use the Cation/Anion Bars
to show the cations and anions in two separate bars.
A Stiff plot will be created for every selected sample in the active list. Before using this
option, ensure that only the samples you want to plot are selected. The following
section describes some of the features and options of the Stiff plot that are not covered
in the Common Plot Features section.
Sample
The Sample field identifies the active sample(s) associated with the plot options
dialogue. If you have several Stiff plots open, you can use the Sample field to select
and modify the settings for each one.
To make changes to multiple plots simultaneously, simply select all of the samples in
the list above, (using your mouse), make the required plot changes, then click [Apply].
This is useful for normalizing the axes scales, units, and general formats in each of the
open Stiff plots.
Parameters frame
The Cations and Anions lists contain the parameters that will be plotted on the Stiff
plot. Existing parameters can be changed by selecting the parameter, and then typing in
the name of the new parameter in the same field.
NOTE: The Stiff plot requires an equal number of cations and anions (i.e. typically
three cations and three anions).
Axis frame
Set the Maximum concentration for the x-axis in meq/l.
Set the number of Ticks for the x-axis.
Use the Axes Labels and Show X-Axis check boxes to show/hide the respective
features.
The font for the tick and axis labels can be changed by clicking the button.
Plot frame
Use the button beside Title and Legend to customize their settings.
Parameters frame
The parameters can be modified by typing the Internal name of the parameters in the
appropriate fields, or pressing the button, and selecting another parameter from the
dialogue that appears.
You may also multiply the parameter concentrations by a factor if you need to compare
elements which are systematically very different in concentration (e.g. comparing a
trace element together with major ions). You may also enter parameter operators and
functions (e.g. Na+K or Na/Cl); to do this, simply enter Na+K in the parameter field
and press [Apply]. However multiple parameters (e.g. Na,Cl) are not accepted.
The Unit combo box will allow you to select the appropriate units (where applicable).
Plot frame
Click the button beside Title, Legend, Symbol, and Labels to customize their
respective settings. Use the Show Grid check box to show/hide the plot gridlines.
Parameter
Select the parameter for which you wish to create the Time Bar plot, and specify the
appropriate units
Statistics frame
Select the Series, the values from which will be plotted.
Select the time period by which to Aggregate the data.
Select the Statistics to display on the plot. Minimum, Maximum, and Mean are
selected by default. To change a statistic, click on the statistic you wish to change and
choose a new one from the presented combo box. To add a new statistic, click the
button; to delete an existing statistic, click the button.
Use the and buttons to change the order the statistic bars appear on the plot.
Legend field shows the statistic label that will be displayed in the plot legend for the
statistic currently selected. If you wish a different label to appear for this statistic,
simply replace the default text with new text.
Color field shows the color of the bar for the statistic currently selected in the
Statistics list. To change the color, double-click on the field to load the color selection
dialogue.
Plot Frame
Click the button beside Title, Legend, and Symbol to customize their respective
settings. Use the Show Grid check box to show gridlines on the plot.
Parameters Tab
Choose the parameter(s) that you want plotted. Use the and buttons to add or
remove parameters, and the and buttons to change the order of the parameters.
Use the Unit combo box to select the appropriate units (where applicable).
The Name of the parameter is automatically filled in, however you may manually
change it.
When the Time Series Tab is selected, click the button to load a time series dataset.
The Parameters window will appear on your screen. From the Category combo box
select the table in which the time series is saved. The available time series data series
for the selected table will be displayed. Choose the desired time series and click the
[Select] button.
Symbol frame
Use the Visible check box to show/hide symbols.
Below the Visible check box is a preview of the symbol
used to represent currently selected parameter on the
plot. Click the button beside the preview to load the
dialogue shown to the right. Use this dialogue to select
the symbol style, size, and color (click on the field
beside Color to produce the color selection dialogue).
Click [OK] when satisfied with symbol settings.
Axis frame
Click the button beside Time-axis and Y-axis to customize their respective
settings.
Plot Frame
Click the button beside Title, Legend, Symbol, and Label to customize their
respective settings. The Legend and Label features must be activated (checked) before
their dialogues can be accessed. Use the Show Grid check box to show gridlines on the
plot.
This is another plot where precision bars may be useful. For more information on how
to add them, please refer to Symbols Dialogue on page 188.
The figure below demonstrates a finished Time Series (Multiple Parameter) plot:
Choose a single Parameter from the combo box at the top of the options dialogue.
Symbol frame
Use the Visible check box to show/hide symbols.
Below the Visible check box is a preview of the symbol
used to represent currently selected station on the plot.
Click the button beside the preview to load the
dialogue shown to the right. Use this dialogue to select
the symbol style, size, and color (click on the field
beside Color to produce the color selection dialogue).
Click [OK] when satisfied with symbol settings.
Axis frame
Click the button beside Time-axis and Y-axis to customize their respective
settings.
Plot Frame
Click the button beside Title, Legend, Symbol, and Label to customize their
respective settings. The Legend and Label features must be activated (checked) before
their dialogues can be accessed. Use the Show Grid check box to show gridlines on the
plot.
Please refer to Symbols Dialogue on page 188 for information on how to add
precision bars.
A finished Time Series (Multiple Stations) plot is shown below:
The Wilcox plot is a simple scatter plot of Sodium Hazard (SAR) on the Y-axis vs.
Salinity Hazard (Cond) on the X-axis. The Conductivity (COND) is plotted by default
in a log scale. These plot parameters are hardwired into AquaChem and cannot be
changed. You must have values for the COND and SAR parameters in your database in
order to use this plot.
Plot frame
Click the button beside Title, Legend, Symbols, and Labels to customize their
respective settings. The Legend and Labels features must be activated (checked)
before their options dialogues can be accessed.
The locations of the SAR lines are determined by the following equations:
S1: Line equation: y= -1.5816e-3x + 10.15816
S2: Line equation: y= -2.2959e-3x + 18.22959
S3: Line equation: y= -3.0102e-3x + 26.30102
You can also design your own report templates, which allows you to produce reports on
a wide variety of sample data and calculations. You can do so using the Report
Designer component, which is explained later on in this chapter. AquaChem includes a
Sample Summary Report, which was designed using the Report Designer.
The up arrow button allows you to move the selected parameter up in the report
options dialogue.
The down arrow button allows you to move the selected parameter down in the
report options dialogue.
The sort button allows you to sort the parameter list alphabetically.
The delete button will remove the selected Parameter from the parameters list.
The add button allows you to select a parameter from the list of available
parameters and add new parameters to the Report. When you press the add
button, the following dialogue will appear:
The Select sample button loads your list of active samples, and allows you to
select a sample for the Report. Double-click on the desired sample to load this
into the Report options.
The scroll buttons allow you to generate a Report for other samples
in your active list. These buttons can be found on the bottom of the
Report window. The function of these buttons (in order from left to
right) is as follows:
The [Print] button will print the current report to the selected Windows
printer.
The [Save] button will save the current report. The pre-defined reports in
AquaChem can be saved as .TXT, .CSV, and .XLS. The customized
reports (designed using the Report Designer) can be saved as .HTM or
.RTF format.
Where applicable, you can access the Report options dialogue by selecting View from
the main menu and then Options. This allows you to change the report settings (such as
which parameters or samples to use).
The following section provides more details on each of the various pre-defined Reports
available in AquaChem.
Double-click on the desired sample to load this into the Report options.
The Compare Sample report requires you to specify Parameters which will be used in
the comparison analysis. To add new parameters, press the button and select a
There are two options to select the samples from the active list:
Select samples with correlation coefficient > #
Use selected samples only
The Select samples with correlation coefficient > # option allows you to enter a
correlation coefficient (r) value, and AquaChem will highlight (select) those samples in
the active list once the comparison is completed.
When the Use selected samples only option is enabled, the Report will use only those
samples that are selected (highlighted) in the active samples list, as part of the analysis.
Once you have specified the required options, press [OK] and the report will be
generated. An example is seen below:
The Compare Sample report uses a linear regression algorithm to generate the
correlation coefficient and the Euclidean distance between a selected sample and all
other active or selected samples. Samples having a chemical composition similar to the
selected sample will have a correlation coefficient close to 1. The correlation
coefficient is a function of ratios rather than absolute values. The difference in absolute
concentrations is expressed by the Euclidean distance:
Cl Ca
Mg
Mg
Cl
Mg Ca
Na Na
Cl
Na
In the Mode frame there are two mixing options, the Simple Mixing mode and the
Optimize mode. Each mode is described in detail below.
The figure below shows the Sample Mixing Report, and the results of mixing two
solutions.
The concentrations of each parameter in the first column are the concentrations for
Solution 1. The concentrations of each parameter in the second column are the
concentrations for a mixture of 0.1 parts Solution 1 with 0.9 parts Solution 2. The
concentrations of each parameter in the third column are the concentrations for a
mixture of 0.2 parts Solution 1 with 0.8 parts Solution 2, and so forth for the remaining
columns.
Optimize Mode
In addition to simple mixing of two samples, AquaChem also allows you to determine
the optimal mixing ratio of the two selected samples that most closely matches a target
sample from the database. When you select the Optimize mode, you will see the
following options (in the lower half of the Report options dialogue):
Each line of the report contains the Parameter, corresponding Unit, actual measured
Value and guideline values (e.g. Maximum Contaminant level (MCL), Goal
contaminant level (GCL), Aesthetic Objectives (AO)). Depending on the Guideline
used, you may see one, two, or three guideline levels. The example above shows three
levels, a maximum concentration limit, a tolerated concentration limit and a
concentration goal. AquaChem allows the definition of multiple standards; the active
Standards Tab
Information for the current standard will be shown in the Hardness Dependent Standard
dialog. . To create a new standard, click the [New] button.
Constant
The Constant option allows you to define a constant value for both the acute and
chronic concentrations. In other words, these values do not change with changes in
hardness.
When the Hardness Dependent (Formula) option is selected, the following options will
display:
The criteria values for CMC and CCC are calculated using the following formulas:
CMC = exp{mA[ln(hardness)]+ bA}
CCC = exp{mC[ln(hardness)]+ bC}
Where mA, bA, mC and bC are empirical coefficients for the metal.
To express the metal criterion as dissolved fraction in the water column a conversion
factor is applied to the above formulas. The following formulas are used to define the
conversion factor as a function of hardness.
CF(CMC) = a -[ln(hardness) * b]
CF(CCC) = c -[ln(hardness) * d]
To view a table of parameters used for calculating freshwater dissolved metals criteria
that are hardness-dependent, please refer to the National Recommended Water Quality
Criteria document by the United States Environmental Protection Agency ,available
on-line at the following address:
http://epa.gov/ost/criteria/wqctable/
Duplicating Standards
You may wish to create a duplicate of an existing standard to use as a template, for
creating new standards. To create a duplicate, click the [Duplicate] button located at
the bottom of the dialog.
The following table provides a summary of the criterion for the Rock Source Deduction
Report.
The report will complete the Parameter analysis, check the Attention Values, and
produce a result value and Conclusion on the rock source.
If the report values shows n/a, it means that no data is available and the calculation
could not be performed.
The scroll arrows in the lower right corner of the Rock Source Deduction Report
window can be used to produce a report for other samples in your database.
For more details please see the reference below:
Hounslow, A.W. 1995. Water Quality Data Analysis and Interpretation. CRC Press
LLC. p.85.
5.7 Statistics
AquaChem comprises most of the commonly used statistical methods and techniques
for the analysis of water samples:
Summary Statistics
Correlation Matrix
Trend Analysis
Outlier tests, and
Tests for Normality
These analyses are available under Reports>Statistics and are discussed in detail
below.
The statistics used in AquaChem were developed in accordance with USEPA
guidelines outlined in the following document:
Guidance for Data Quality Assessment, Practical Methods for Data Analysis, EPAQA/
G-9 QA00 Update. July 2000. USEPA Office of Environmental Information,
Washington
Statistics 271
The above dialogue allows you to customize your summary statistics report using the
available tabs. At the top of this dialogue is a combo box which allows you to choose a
previously saved combination of settings.
In the first tab, Parameters, you must specify the parameters for which the summary
statistics are to be calculated. Click the button to produce a standard parameter
selection dialogue and choose the desired parameters by highlighting them and clicking
[Select] button. When finished with parameter selection click [Close]. You can change
the order of the chosen parameters by clicking the and buttons. Delete any
parameter by clicking the button.
Scroll through the available list of statistics to select the desired ones. Click [Select] to
add a chosen statistic. When finished, click [Close]. The statistic abbreviation will be
listed in the Function column of the statistic list. The Title column lists the full statistic
names and these names will appear as headers on the output. You can modify these
entries by double-clicking in the cell and entering a new Title. You can change the order
of the chosen statistics by clicking the and buttons. Delete any parameter by
clicking the button.
Once the statistics are chosen, you can modify some of their options in the Summary
Statistics dialogue. To access statistic options simply highlight it in the list, and
available options will be displayed in the bottom portion of the dialogue:
Statistics 273
AquaChem allows you to decide how to deal with censored data. The Censored Data
combo box allows you to select the method used to manage non-detects. The options
are Auto, Ignore, Multiply, Constant, Trimmed, Winsorize. Depending on the method
chosen you may have to enter additional data (e.g. if you chose Multiply, you will have
to enter the Factor to multiply by). Choosing Auto will subject the censored data to the
method specified in the Preferences (for more details see Non-detects on page 93 in
Chapter 3).
The following is a description of each Statistical Analysis available for this report:
s s2
~ X ( n / 2 ) X ([ n / 2]1)
X
2
s s
x t1 , n 1 x t1 , n 1
n n
skew
n x x
n
i
(n 1)(n 2) s i i
Statistics 275
(x x)
n
4
kurt 3
i
i i
ns 4
N (number of samples): number of samples that have a measured value for the
selected parameter.
N_ND (number of non-detects): number of samples that list the value for the
selected parameter as a non-detect
PERC_ND (percent of non-detects): number of non-detects divided by the total
number of samples and multiplied by one hundred
VAR (Variance): average square distance from points to sample mean
1 n
s2
n 1 i 1
( yi y ) 2
s
x t1 , n 1
n
s
x t1 , n 1
n
Statistics 277
The Parameter as combo box allows you to set the parameter orientation. When Rows
is selected, the parameters will be displayed in rows and statistics in columns. When
Columns is selected, the orientations are reversed with parameters displayed in
columns and statistics in rows.
AquaChem allows you to break the Summary Statistics output by symbol. When this
option is selected, the statistics will be calculated and displayed for every symbol.
Thus, if you have a symbol assigned to every sample, all samples with the same
symbols will be grouped and statistics performed on those groups.
The Data tab provides you with a preview of data of the selected parameters:
If you are satisfied with the settings for the Summary Statistics report, before
generating it, you may wish to save these settings by clicking [Save] button. The
following Save dialogue will be loaded:
Type in a new name, or select an already existing name if you wish to update the
settings. This dialogue also allows you to delete the settings that are no longer needed.
Simply select the name of the settings you wish to delete and click the button.
You may print this report, or save it in .XLS, .TXT, or .CSV format.
Statistics 279
Once you have specified the required options, press [OK] and the report will be
generated as shown in the figure below:
The Correlation Matrix report generates a correlation matrix for a specified number of
sample parameters that are common to all samples. A linear regression routine
calculates the regression coefficient (r), and the slope and intercept of the regression
line.
n n
n xi yi
x y i i i 1
n
i 1
r i 1
n n
n
( xi ) 2 n
( yi ) 2
[ xi2 i 1
] [ yi2 i 1
]
i 1 n i 1 n
The figure below shows the correlation of Ca against SO4 for three different scenarios.
Ca Ca Ca
A) B) C)
It is often useful to check the correlation results graphically in a scatter plot to easily
identify outliers which might influence the correlation result. The Scatter plot is
available as one of the plot types, under the Plots menu. In the Scatter plot options,
access the Edit Lines option under the Symbols tab. In this dialogue, you can calculate
the regression curve. For more details, see Scatter Plot in Chapter 4.
The Correlation Matrix also includes the Spearman Rank Correlation coefficient. This
value is calculates using the assigned rank, rather than exact values. This coefficient is
useful when it is not economically feasible to obtain the exact values. Spearman Rank
Correlation coefficient is a good indicator of a relationship between two variables, in
case this relationship is not linear.
Statistics 281
When you select Reports>Statistics>Trend Analysis, the following dialogue will
appear:
The Trend Test dialog consists of three tabs: Stations & Parameters, Options and
Results. Each tab is described below.
Adding Stations
To add one or more stations, select the button, located beside the Show combo box.
Select the desired stations from the Stations dialog, and then select the [Select] button.
Click the [Close] button to close the dialog.
The selected stations will then be added to the Stations list, in the Trend Test dialog.
Selecting Parameters
The AquaChem trend analysis report allows you to analyze any combination of
parameters in a single run.
Statistics 283
To add one or more parameters to the analysis, select the button, located below the
Parameters list.
The Parameters dialog will appear on your screen, where you can select one or more
parameters for the analysis. Please note that the list of parameters in the dataset may be
very extensive, and you may not want to include parameters which have not been
analyzed in any of the sample in the current selection of stations. Select the subcategory
filter Analyzed parameters only to show only those parameters that have been
analyze.
Select the desired parameters, and then select the [Select] button. Click the Close
button to close the dialog.
Raw Data Shows all data points including analysis marked as outliers. Note that
outliers will not appear in other previews, e.g., in plots
Aggregated Shows the average measurement in each aggregation interval. For example,
Data if you aggregate over 12 months, you will see a yearly averaged sample.
Please note that the concentration as well as the time is averaged. If all
measurements were taken in Q4, the averaged point will also plot in Q4,
not in the middle of the year.
Trend Test Summaries the trend test results for the current combination of parameters
and stations. The information of each of the 5 tests are shown: Man
Kendall, seasonal Mann Kendall, Sen Test, Linear Regression and
Spearman Correlation. Please note that the linear regression coefficient
detects linear relations only and is sensitive to outliers. The Spearmans
rank correlation coefficient detects any monotonic trend and is not limited
to linear.
Time Series Generates a time series diagram including the Sen slope, the linear
Plots regression and the water standard for the active parameter. The data points
are shown as raw data and averaged data points if this option has been
selected.
Statistics 285
Options
The options tab allows you to configure the various input and output options for the
trend analysis. Once you have specified the desired options, you can save the
configuration by selecting the [Save] button from the row of buttons along the bottom
of the dialog.
Input
The input options allow you to configure various input parameters for the trend
analysis. Each option is described briefly below:
Start Date Start data for trend test analysis. Samples before this date will be
ignored in analysis. Format: MM/DD/YYYY
End Date end data for trend test analysis. SAmples after this date will be ignored
in analysis. Format: MM/DD/YYYY
ND Factor The factor by which all non detect concentration are multiplied or the
constant value that is assigned to all non detect concentrations.
Min Years The minimum number of years with at least 1 sample in test interval. If
this threshold is not reached, no test will be performed.
Min Points The minimum number of points. If this threshold is not reached, a test
will not be performed.
Average data by Select whether you want to average data within the same year.
Average method Select the average method that will be used to average data within the
same year.
Output
The output options allow you to configure how the results of the trend analysis are
displayed in the Result tab. The output options are described briefly below.
Show Analyzed Rows When performing a batch calculation, only display rows where the
only data quality criteria have been matched. This is useful for tests of a
large number of stations and parameters where many records do
not reach the data quality criteria, e.g., there are not enough points
to too many non detects.
Calc. Mann Kendall Show the results of the Mann Kendall test
Calc Mann Kendall Show the results of the Seasonal Mann Kendall test
Seasonal
Mann Kendall season The length of season in Mann Kendall test, specified in months.
length
Calc. Spearman Rank Show the results of the Spearman Rank correlation
Extrapolate Value Define a prediction year in number of years after the end date for
(years) test data.
Statistics 287
Show standard value Select whether you want to display the water quality standard in
the table results.
Show standard line Select whether you want to display the water quality standard as a
line on the time series diagrams.
Aggregated data
symbol
Results
Once you have specified the Stations & Parameters and have configured the input and
out Options, you can run the trend analysis. To run the trend analysis, click the [Run]
button located along the bottom of the Trend Test dialog.
Depending on how many parameters and stations are include in the test, this may take a
few minutes to complete. The results will display in the Results tab.
The first 10 rows of the results table display a summary the input options used for the
trend analysis. These options are defined under the Options tab. The rows below
288 Chapter 5: Reports
contain the results of the trend analysis. In the first section, it contains the station and
parameter as well as the checks for data completeness. Following this section are the
various tests depending on whether they are selected in the output options. The
complete set of tests include:
Mann Kendall
Seasonal Mann Kendall
Sens test
Linear Regression
Spearmans Rank Correlation
Significant increasing and discoursing trends are highlighted with a yellow
background. If you would like to check the statistical test results, double click the
respective row and you will be deferred to the Station & Parameter tab, where the
station and parameter are automatically selected for you. Here you can select Trend
Results from the Show combo box to view the statistical test results.
Creating Plots
Trend analysis plots can be quickly generated for each station and parameter
combination in the results tab. In the results tab, scroll across to the end of the results
table, so that the last column is visible. This column will contain a selectable box in
each cell. Select the desired rows to be plotted.
Statistics 289
Note: The Select combo box, located at the bottom-right corner of the dialog, provides
various options for automatically selecting multiple rows for plotting. For example, the
Select All option will select all rows in the results table. The Select accepted MK
option will only select those rows that meet the criteria for Mann Kendall analysis.
Furthermore, you can filter the result list by parameter name (using the Parameter
combo box) or station name (using the Station combo box)
Once the desired rows are selected, click the [Plot] button, located along the bottom of
the Trend Test dialog. A time series plot displaying the linear regression and the Sen
line will display for each selected row.
Comma Separated This format is useful when your table is very large (>65,000 rows)
Values (*.CSV) and you do not want to use the database format
Microsoft Excel This is the preferred format if you simply want to create a table for
(*.XLS) your report.
Microsoft Access This will create a new table in a specified database. This will allow
(*.MDB) you to query out specific results within the MS Access
environment, e.g., if you want to know the percentage of
insufficient data for a given parameter, the number of increasing
versus decreasing trends etc.
Statistics 291
The workflow for performing batch outlier tests is similar to that of performing trend
analysis test. Start by specifying the stations and which parameters to include in the
outlier tests. This process is described on Stations & Parameters on page 282.
Raw Data Shows all data points including analysis marked as outliers. Note that
outliers will not appear in other previews, e.g., in plots
Trend Test Summarizes the outlier results for the current combination of parameters
and stations. The information of each normality tests are shown: Dixon
test, Discordance test, Rosner test, Walsh test. A description of thee tests
together with directives for the calculations can be found in the USE PA
report QA/G-9 Guidance for Data Quality Assessment.
Histogram Displays a time series plot for the selected parameter and station
Plot
Station Displays a summary of each station in the database that has an analyzed
Summary value for the selected parameter, including the Min, Max, Count, date of
the First Sample and date o f the Last sample.
Parameter
Summary
Options
The options tab allows you to configure the various input and output options for the
normality test. Once you have specified the desired options, you can save the
Statistics 293
configuration by selecting the [Save] button from the row of buttons along the bottom
of the dialog.
Input
The input options allow you to configure various input parameters for the normality
tests. Each option is described briefly below:
ND Factor The factor by which all non detect concentrations are multiplied or
constant value that is assigned to all non detect concentrations.
Max %ND The maximum percent of non detects allowed in the dataset. If this
threshold is exceeded, no test will be performed.
Historic ND, For long time intervals the detection limit method may have changed
ignore between early and recent data; more recent detection limits are often
lower. When multiplying non detects by a factor, the data may become
biased. Chose a ratio of historic/modern MDL above which you decide
to ignore non detects. For example, if the value is set to 10 and the
modern (minimum) MDL is 0.1 all non detects greater than <1 will be
ignored.
Test for Parametric outlier test requires that the underlying data is normally
Normality (<= 50 distributed. For each dataset, a normality test is run, and parametric
points) tests are only run if the data is normally distributed. Chose the desired
test for normality when the number of points is less than or equal to 50.
Test for Parametric outlier test requires that the underlying data is normally
Normality (>50 distributed. For each dataset, a normality test is run, and parametric
points) tests are only run if the data is normally distributed. Chose the desired
test for normality when the number of points is greater than 50.
Output
The output options allow you to configure how the results of the outlier tests are
displayed in the Result tab. The output options are described briefly below.
Show Analyzed Rows When performing a batch calculation, only display rows where the
only data quality criteria have been matched. This is useful for tests of a
large number of stations and parameters where many records do
not reach the data quality criteria, e.g., there are not enough points
or too many non detects.
Percentile Specify the percentile value that should be applied to the control
line
Show Dixons Test (3- Show/Hide the results of the Shapiro Wilk test in the result table
25)
Show Discordance Show/Hide the results of the Discordance Test in the result table.
Test (<=50)
Show Rosners Test Show/Hide the results of the Rosners Test in the result table
(>=60)
Show Walshs Test Show/hide the results of the Walshs Test in the result table.
(>=60)
Symbol Change the symbol of the data points displayed on outlier time
series plots.
Statistics 295
Results
Once you have specified the Stations & Parameters and have configured the input and
out Options, you can run the outlier tests. To run the outlier tests, click the [Run] button
located along the bottom of the Outlier Test dialog.
Depending on how many parameters and stations are include in the test, this may take a
few minutes to complete. The results will display in the Results tab.
The first 9 rows of the results table display a summary the input options used for the
outlier test. These options are defined under the Options tab. The rows below contain
the results of the outlier tests. In the first section, it contains the station and parameter as
well as the checks for data completeness. Following this section are the various tests
depending on whether they are selected in the output options. The complete set of tests
include:
Dixons Extreme Value Test
Discordance Test
Rosners Test
Walshs Test
A description of these tests together with directives for the calculations can be found in
the USEPA report QA/G-9> Guidance for Data Quality Assessment.
If you would like to check the statistical test results, double click the respective row and
you will be deferred to the Station & Parameter tab, where the station and parameter are
Creating Plots
Trend analysis plots can be quickly generated for each station and parameter
combination in the results tab. In the results tab, scroll across to the end of the results
table, so that the last column is visible. This column will contain a selectable box in
each cell. Select the desired rows to be plotted.
Note: The Select combo box, located at the bottom-right corner of the dialog, provides
various options for automatically selecting multiple rows for plotting. For example, the
Select All option will select all rows in the results table. The Accepted Studentized
option will only select those rows that pass the Studentized test for normality.
Furthermore, you can filter the result list by parameter name (using the Parameter
combo box) or station name (using the Station combo box)
Statistics 297
Once the desired rows are selected, click the [Plot] button, located along the bottom of
the Outlier Test dialog. A time series plot will appear for each selected row. If in the
output options you enabled the Show Percentile Lines option, the percentile lines and
mean will also be shown on each plot.
Raw Data Shows all data points including analysis marked as outliers. Note that
outliers will not appear in other previews, e.g., in plots
Trend Test Summarizes the normality test results for the current combination of
parameters and stations. The information of each normality tests are
shown: Shapiro-Wil (W) test, Gearys test, DAgostinos test.
Histogram Displays a histogram plot for the current station and parameter
Plot
Statistics 299
Station Displays a summary of each station in the database that has an analyzed
Summary parameter value, including the Min, Max, Count, date of the First Sample
and date o f the Last sample.
Parameter Displays a list of stations that contain data for the selected parameter.
Summary
Options
The options tab allows you to configure the various input and output options for the
normality test. Once you have specified the desired options, you can save the
configuration by selecting the [Save] button from the row of buttons along the bottom
of the dialog.
Input
The input options allow you to configure various input parameters for the normality
tests. Each option is described briefly below:
ND Factor The factor by which all non detect concentrations are multiplied or the
constant value that is assigned to all non detect concentrations.
Min Points The minimum number of points. If this threshold is not reached, the test
will not be performed.
test log-normal Select whether you want to run the test on lognormally transformed
data.
Output
The output options allow you to configure how the results of the trend analysis are
displayed in the Result tab. The output options are described briefly below.
Show Analyzed Rows When performing a batch calculation, only display rows where the
only data quality criteria have been matched. This is useful for tests of a
large number of stations and parameters where many records do
not reach the data quality criteria, e.g., there are not enough points
to too many non detects.
Shapiro-Wilk (W) test Include/Exclude Shapiro Wilk (W) test in/from normality test
(>=50)
Results
Once you have specified the Stations & Parameters and have configured the input and
out Options, you can run the normality test. To run the normality test, click the [Run]
button located along the bottom of the Test for Normality dialog.
Depending on how many parameters and stations are include in the test, this may take a
few minutes to complete. The results will display in the Results tab.
Statistics 301
The first 7 rows of the results table display a summary the input options used for the
normality test. These options are defined under the Options tab. The rows below
contain the results of the normality tests. In the first section, it contains the station and
parameter as well as the checks for data completeness. Following this section are the
various tests depending on whether they are selected in the output options. The
complete set of tests include:
Gearys test
Studentized Range test (t-test)
Shapiro-Wilk test (w-test)
dAgostinos test, and
Coefficient of Variation
A description of these tests together with directives for the calculations can be found in
the EPA report QA/G-9 Guidance for Data Quality Assessment, sections 4.2 and
following.
The result of each test may be True, False or <N. A true result indicates that the dataset
can be considered to have a normal distribution according to the respective test. A false
result indicates that the data cannot be considered to have a normal distribution. A <N
result, where N is the minimum points required, means that there is not sufficient data
points to perform the normality test.
If you would like to check the statistical test results, double click the respective row and
you will be deferred to the Station & Parameter tab, where the station and parameter are
automatically selected for you. Here you can select Trend Results from the Show
combo box to view the statistical test results.
Creating Plots
Histogram plots can be quickly generated for each station and parameter combination
in the results tab. The process for creating plots for normality tests is similar to that for
trend analysis. For more information, please refer to Creating Plots on page 289.
The report window for user-defined reports (as shown in the figure above) has a few
more options available at the top and bottom of the report window:
The Scroll arrows are only available when you have a report that contains multiple
pages. The page count shows the current page number, out of the total number of pages
available.
The Show fields option is only available if the Report is linked to a printing template
(done using the Report Designer). To enable this option, place a check mark in this
box. You will then see the following dialogue appear in the middle of your display, to
the left of the preview window:
In these fields, you can enter the appropriate descriptive information that should appear
in the template. As the information is entered, the report preview window should be
automatically updated.
The Scroll arrows on the bottom of the report window are only available when only
one sample is selected. They allow you to scroll through the entire dataset.
NOTE: You may generate single-page and multi-page reports. Selecting multiple
samples and generating a Sample Summary report will generate an individual report
for each selected sample, allowing you to scroll through them using the scroll buttons at
5.9 Thermometers
This report lists the geochemical thermometers and their estimated temperatures which
are calculated using the formulas defined in the Thermometers tab of the Database.
This report may be edited in Report Designer.
5.10 Isotopes
This report lists the concentrations of isotopes 18O and 2H as well as infiltration
temperature and height for 18O which are calculated according to formulas specified in
Calculations tab of the Database. This report may be edited in Report Designer.
The hardwired reports cannot be modified, nor can their layout be changed. These
reports include: Compare Sample, Mix Samples, Water Quality Standards,
Reliability Check, Compare Duplicates, Rock Source Deduction, Summary
Statistics, and Correlation Matrix.
Thermometers 305
The user-defined reports (ex. Sample Summary) can be modified using the Report
Designer.
Using the Report Designer you may design and customize up to 10 new reports for
your own project needs. The report may include any combination of database
parameters and function (calculation) results. Once a new report has been created, it can
be selected from the Reports menu, below the Isotopes report.
Reports
Provides a list of the reports available in the current database template, and general
information on each report (Description, Selected Printing template, report size, and
selected font).
Edit
Provides options for designing the report layout.
You will also find the following buttons in the Report Designer dialogue.
The up-arrow button allows you to change the order of the selected reports
upwards as they appear in the Reports menu (in the main menu).
The down-arrow button allows you to change the order of the selected reports
downwards as they appear in the Reports menu (in the main menu).
The Duplicate button clones the selected report. This allows you to quickly
modify an existing report, without having to create a new one from scratch.
The [Save] button at the bottom of the dialogue saves the current report
information.
In order to quickly learn the functionality of the Report Designer, an example has been
provided below.
If you have not already done so, load the Report Designer from the Reports menu.
Ensure you are viewing the Reports tab (the first tab).
type: Example
<Enter> (on your keyboard)
[OK]
[Save] (in the lower right corner of the dialogue) to save this report.
You will see that the rows are numbered and the columns are lettered (similar to
MSExcel) to allow you to quickly locate cell locations in the grid. At this point you
may begin to add values to the cells. You may fill cells with text, database parameters,
or with a function (calculation).
Double-click on the cell in the upper-left corner (Cell A1) and the Cell
dialogue (as shown below) will appear:
Type
Click on the button and you may choose from the following cell types:
Span next
This option is useful for headings and titles, where the text may not fit into one cell. If
the cell to the right of the selected cell is empty, you may span several cells into one.
Simply enter a cell number in this field (ex. Span 2 cells).
Alignment
Choose from Left, Center, or Right-Justified.
The three fields described above are common to all data types listed. Below, all data
types are listed along with the descriptions of the other fields that go with them.
Sample Description
Sample Parameter
Use the combo box to select a sample parameter. The value of this cell will change
depending on what sample is loaded into the report.
Station Description
Station Parameter
Use the combo box to select a station parameter. The value of this cell will change as
you move between samples that are assigned to different stations.
Measured/Modeled Parameter
Parameter
Use the combo box to select a measured or a modeled parameter. The cell will reflect
the value of this parameter for the sample that is loaded into the report.
Unit
Use the combo box to select a unit for the parameter (becomes inactive if the chosen
parameter is unitless - e.g. pH).
Format
Use the combo box to select the numeric format for the parameter value.
Ratio
Numerator
Use the combo box to select the parameter to serve as the numerator of the ratio.
Denominator
Use the combo box to select the parameter to serve as the denominator of the ratio.
Format
Use the combo box to select the numeric format for the ratio.
Format
Use the combo box to select the format for the cell value.
Function Value
Function
Use the combo box to select a function, the result of which will be displayed in the cell.
The functions are defined in the Calculations tab of the Database.
Unit
Use the combo box to select the unit for the parameters used in the function. The result
of the calculations may be different depending on the units used.
Format
Use the combo box to select the format for the result value.
Range Name
Parameter
The combo box lists the parameters that have the range(s) defined. The cell will display
the name of the range that contains the value of the specified parameter for the current
sample (e.g. Natural aquifer range).
You should now see an entry under the Edit tab for Cell A1. You may switch to the
Preview tab to see a preview of how the report will appear.
As you can see, the words take up two lines in the cell. To have the words fit on one line
you can span this cell into the adjacent one.
The text colors of the cells in the Edit dialogue are representative of the cell types. The
following summary provides a list of what each cell color indicates of the cell type:
You will now proceed to define the remaining cells in the report, as per the pre-
designed layout:
Cell A3
Select Text from Type field
type: Sample ID
[OK]
Cell A4
Select Text from Type field
type: Sampling Date
[OK]
Cell A5
Select Text from Type field
type: Location
[OK]
Using the same procedure, fill in the remaining text fields as per the layout above, in the
appropriate cell locations:
A7 Major Ions
A9 Ca
A10 Mg
Click on the Preview tab to see if any caption is too big for its cell. Go back to the Edit
tab and if there were such captions, resize the column they are in so that they only take
up one line. Do not worry if some parameter names (such as SAMPLE_DATE) take
up a lot of space - gauge the length of the value.
Once you are finished you should save the changes that have been made so far.
You can now add in the parameter value cells and function values.
Cell B3
Sample Description from the combo box beside cell Type
SAMPLEID from the combo box beside Sample Parameter field
[OK]
Cell B4
Sample Description from the combo box beside cell Type
Select SAMPLE_DATE from the combo box beside Sample Parameter
field
Cell B5
Station Description from the combo box beside cell Type
Select LOCATION from the combo box beside Station Parameter
[OK]
Notice the color of the cells under the Edit tab in the Report Designer dialogue for
these new cells; green cells indicate that these cells contain Station/Sample
Description parameters.
Cell B9
Measured /Modeled Value from the combo box beside cell Type
Ca from the combo box beside Parameter
mg/l from the Unit field
[OK]
Cell B10
Measured Modeled Value from the combo box beside cell Type
Mg from the combo box beside Parameter
mg/l from the Unit field
[OK]
Cell B11
Measured Modeled Value from the combo box beside cell Type
Na from the combo box beside Parameter
mg/l from the Unit field
[OK]
Notice the color of the cells in the Edit dialogue; blue cells indicate that these cells
contain Measured values.
Once you have finished this step, your display should be similar to the one shown
below:
[Save] in the lower-right corner of the Report Designer dialogue to save the
report design changes up to this point.
You will now add function values for the Sum Anions, Sum Cations, and Ion
Balance
Cell B13
Function Value from the combo box beside cell Type
Left Justify from the Alignment field
Cell D13
Function Value from the combo box beside cell Type
Left Justify from the Alignment field
Select Sum of Cations from the combo box beside Function
[OK]
Cell B14
Function Value from the combo box beside cell Type
Left Justify from the Alignment field
E. N. (Electroneutrality) from the combo box beside Function
[OK]
Notice the color of the cells in the Edit dialogue; grey cells indicate that these cells
contain Function (Calculated) Values. Finally, you will add a Ratio to Cell B18
showing a parameter ratio of Na / Cl.
Cell B18
Select Ratio, from the combo box beside cell Type
Na for the first parameter
Cl for the second (right) parameter
mg/l for the units
Notice the color of the cells in the Edit dialogue; blue cells indicate that this cell
contains a Parameter Ratio.
[Save] in the lower-right corner of the report designer dialogue to save all
changes to this report.
Once you have designed the report, click on the Preview tab to see a page preview.
This concludes the steps required to design a report. Feel free to add new cell values,
functions, parameters, etc. in order to see the full capabilities of the Report Designer.
Once you are finished in the Report Designer, press [Close] to return to the main
window of AquaChem. The newly created Example Report will now be available
under Reports in the AquaChem main menu.
Reliability Check
Compare Duplicates
Find Duplicates
Highlight Nondetects
Highlight Outliers
Highlight Duplicates
Degradation Rates
323
PHREEQC Phases
Periodic Table
Links
Organic Compounds
Preservation Methods
Where,
t = time
C0 = initial concentration
C1 = concentration after time t
When you access this tool, the following Decay Calculator dialogue will appear. The
components of this dialogue are described below.
Sample
At the top of this dialogue under the Sample field, click on button and then double-
click in Pick a sample list to select a sample for which you would like to run a
Half-Life
After selecting a parameter, the Half-Life field will be automatically filled in with the
appropriate value. The combo box to the right of the Half-Life field provides options for
the Half-Life environments (Soil, Air, Groundwater, and Surface water) for which
degradation rates are specified in the database. If all rates are known for these
environments the list will contain a high, low, and average half-life values for each
environment. Effects such as dilution, transport or adsorption etc. are not taken into
account with this tool.
AquaChem includes values for 335 organic chemicals. These are taken from the
following Reference:
Howard, P.H. et al., 1991: Handbook of Environmental Degradation Rates, Lewis
Publishers, 775 p.
This tool may also be used as a simple degradation calculator, without selecting
samples or parameters. Simply enter a Half-life value manually, choose your Problem
Type, enter an initial concentration, target concentration or time period and press
Calculate.
AquaChem also allows you to estimate a chemicals half-life based on two or more
time-concentration pairs.
Time Unit
Half-life values in the AquaChem database are saved as hours, however, you may
convert these to days or years by selecting the appropriate Time Unit from the combo
box.
Concentration Unit
Allows you to select the concentration units that will be used in the half-life
calculations.
NOTE: If problem type 1 is selected, and the current contaminant has an assigned
guideline level in your AquaChem database, a combo box with available guideline
levels will appear to the right of the target concentration field. You have the option to
choose the desired guideline level, and the C1 value will be automatically filled in for
you.
Problem Type 1
In Problem Type 1 you can determine the time required for a contaminant to decay to a
specified concentration.
C(t=0): initial concentration
C1: target concentration
Problem Type 2
In Problem Type 2 you can determine the concentration after a specified amount of
time.
C(t=0): initial concentration
t1: target time
C(t) = C1*e-kt
where,
k = residence time
Problem Type 3
In Problem Type 3 you can estimate half life from given concentration values.
Set the Parameter to Custom
Time: time of sampling
Conc.: concentration at sample
time
Click [Calculate] to calculate the
half-life as the slope of the regression
line through the specified points. For every specified point, the estimated concentration
by means of the linear regression line is displayed to verify the quality of the calculated
values. At the left hand side of the screen, the estimated initial concentration, half-life,
and the regression coefficient are displayed.
You can edit the concentration-time pairs at any time by double-clicking in the cell that
contains the value you wish to edit. To remove the concentration-time pair highlight
any cell in that pair and click the button.
NOTE: This tool is only available when you have a Sample Details window open and
active.
Open a sample, and select Tools > Calculators > Find Missing Major Ion > Na (for the
example shown below).
Example:
NOTE: The formula is case sensitive, therefore, ensure that you enter two-letter
elements such as Silicon as Si and not SI. In addition, only one level of parentheses is
taken into account (i.e. a formula such as ((XY2)3)3AC will not be calculated
correctly).
Examples:
Conductivity
Cond(25) = Cond(Temp1) / (1 + 0.0198 * (Temp1 - 25))
Cond(Temp2) = Cond(25) * (1 + 0.0198 * (Temp2 - 25))
Redox potential
pe Eh
It requires you to enter an observation temperature.
pe(Eh): pe = Eh * F / 2.303 / R / T
Eh(pe): Eh = pe * 2.303 * RT / F
where,
R = 8.314 (Gas constant)
F = 96485 (Faraday constant)
Reference: C.A.J. Appelo, 1996: Geochemistry, Groundwater and Pollution, Balkema
Roterdam, p. 246.
Other conversions
ppm mg/L: Requires you to enter a density.
mg/L = ppm / Density
mg/L ppm: Requires you to enter a density
ppm = mg/L * Density
Click on the button and select the desired category from the combo box at the top of
the dialogue, enter the value and units in the fields below, and the new value will be
automatically calculated.
In addition, you can modify the existing conversion factors, or create new ones. Press
the [Options] button, and the following dialogue will be loaded.
The Mode lets the user select whether he wants to use the long facies name, which is
based on the ions that contribute more than 10% (e.g. Ca-Mg-Cl-SO4), or the short
mode, listing just the most frequent anion and cation.
Value Interpretation
Value Interpretation
LSI and RSI are empirical methods based on a limited number of parameters and taking
in account the precipitation of calcite only. They are useful in that they can be easily
calculated and interpreted by means of tables such as table 1 and 2 and cover the most
common scaling thread (calcite). However we suggest using the scaling and corrosion
calculator only for a preliminary overview and base corrosion and scaling predictions
on a PHREEQC simulation. PHREEQC will provide more reliable results in that it is
based on a thermodynamic dataset and includes more corrosion/scaling relevant
minerals and parameters such as Eh, Mn, Fe, iron hydroxides, etc.
Reference: Lin, S., 2001: Water and wastewater calculations manual. McGraw-Hill,
New York. pp. 6-8.
6.2 QA/QC
This report provides a number of checks which can lend insight as to the reliability of
the water sample analysis. If the analysis value passes the test, then a Pass will be
displayed in the Result column; if not, then a Fail will be displayed. Each analysis is
explained in the table below:
QA/QC 339
Available Tests in the Reliability Check Report
Test Attention Comments
Value
Balance (C-A)/(C+A)*100 <5% The solution must be electrically neutral or
within 5 : sum of cations = sum of anions.
TDS: [(Entered-calculated)/Entered]*100 <5% Calculated TDS = sum ions (mg/L) + SiO2 must
be similar to measured dry residue.
TDS: [(Entered -TDS180o calculated)/ <5% Calculated TDS = sum ions (mg/L) + SiO2 -
Entered]*100 0.5082 * bicarbonate. Must be similar to
measured dry residue at 180.
TDS Entered/Conductivity 0.55 < x < 0.75 There is a linear relationship between TDS and
conductivity within a range of 0.55 to 0.75.
Conductivity/Sum MEQ Cations 90 < x < 110 There is a linear relationship between
conductivity and Sum of Cations within a range
of 90 - 110.
Test for results outside natural occurrence range The natural occurrence range of a chemical
parameter may be defined in the database screen
using the range dialogue. If a measured result
exceeds the defined range, the respective
concentration should be checked
NOTE: Some attention values are displayed as acceptable ranges. This means that
the Analysis value must be within this range. The analysis (calculated) values can be
positive or negative. If the analysis values are outside this range (either positively or
negatively) then the value will not pass this check, and the report will display a
Fail, indicating that the sample did not pass this analysis check.
If the calculated values are not within the attention values (i.e. the Result is Fail), then
this does not necessarily signify an error; it does mean however that there should be an
explanation for the value. For example, if Na/Cl< 1 then the explanation could be that
some Na has been removed from the solution by Na > Ca exchange: this should be
confirmed by a suitable aquifer geology (exchange friendly minerals such as Ca-rich
clay). A ratio of Ca/SO4 < 1 can be explained by the dissolution of ferrous minerals
such as pyrite. This effect is often observed in mine tailings. However, normal
groundwater samples should fulfill all the criteria mentioned above.
The scroll arrows in the lower right corner of the Reliability Check window can be
used to produce a report for other samples in your database.
For more details please see the reference below:
Hounslow, A.W. 1995. Water Quality Data Analysis and Interpretation. CRC Press
LLC. p.75.
QA/QC 341
Mode Two samples, all parameters will compare all measured parameters in both
samples. For this, you need to select the two samples to be compared. If these samples
are properly marked as duplicates, using the same Duplicate_ID value, then the second
duplicate is detected automatically after selecting the first sample.
Mode Multiple samples, one parameter compares all available duplicates within the
active samples in respect to the specified parameter.
NOTE: In this version you can only compare 2 samples with the same Duplicate_ID. If
you have more than two samples with the same Duplicate_ID, the Multiple samples,
one parameter report will compare those samples in pairs, but will not cross-compare.
For both types of comparison, the measured results, the mean, the difference, and the
normalized difference percentage are reported.
Simply choose a parameter from the list of available parameters by placing a check
mark in the appropriate box (only Sample Description and Station Description
parameters are available) or to select all parameters, place a checkmark beside Match
all parameters. Then click the [Find] button.
AquaChem will then run a query on your database and locate all samples for which the
values of the specified parameters are identical. Common parameters for this utility are
site and date.
The results will then be shown in the lower half of this dialogue. Simply select on the
samples you want to remove and press the button to permanently remove these
samples from your project database.
QA/QC 343
Selecting the appropriate parameter and clicking [OK] will highlight all samples that
have non-detect value for that parameter.
Selecting the appropriate parameter and clicking [OK] will highlight all samples that
have that parameter marked as an outlier.
6.4 Modeling
The Modeling option under the Tools menu provides links to the PHREEQC
geochemical modeling utilities.
PHREEQC provides six options for geochemical calculations:
Option 1: Calculation of the aqueous equilibrium (activities and saturation indices)
based on a sample analysis
Option 2: Calculate pH based on a sample analysis
Option 3: Calculate Eh based on a sample analysis
Option 4: Calculate bicarbonate and carbonate concentration based on the measured
total alkalinity and pH
Option 5: Equilibrate with minerals present in the sample
Option 6: Basic forward modeling, such as mixing samples, adding minerals or
chemicals to a solution, or raising temperature
Option 7: Advanced modeling such as transport calculations, inverse modeling, etc.
Modeling 347
the calcite saturation index calculation, you need a field SI_Calcite specified in the
Database Options, Modeled Parameters section.
Option 2: Calculate pH
AquaChem allows you to use PHREEQC to calculate a pH value for your sample. This
can be used in an instance where you do not have a pH value for your sample, or you
would like to compare to a theoretical pH if the sample was exactly in equilibrium with
a specified carbonate mineral (e.g. calcite or dolomite).
Option 3: Calculate Eh
AquaChem allows you to use PHREEQC to calculate the Eh value for your sample.
The calculation is based on the available redox couples for the selected sample. The
sample must include concentrations for at least 1 redox couple, e.g. Fe2+/Fe3+, Mn2+/
Mn3+, etc.
Modeling 349
PHREEQC will then run in the background, and the modeled results will be saved
automatically back to your database. There is no need to create and define input files.
If you would like to quickly calculate Saturation Indices (SI) or activities for multiple
samples in your database, then you should use the Calculate Sat. Indices and
Activities menu option.
To add additional modeled parameters to your database structure, you must load the
Database options, under File > Database > Parameters. Then, select the Modeled
Parameters from the combo box, and add the desired Saturation Indices and Activities
to your database (as shown in the dialogue below).
Example
To model a sample from the Demo.AQC database:
Select any sample from your Active Samples List.
Calculate Saturation Indices and Activities from the Tools > Modeling
menu.
You will then see a PHREEQC DOS window run in the background. Once this is
finished, load the Sample Details window for this sample, then
Modeled Parameters tab
In this window, you will see the modeled values for the available parameters. An
example is shown in the figure below:
Modeling 351
You may now do further processing and analysis with these parameter values, such as
plotting, reporting, and querying.
Note: In addition to using the Tools > Modeling > Calculate Sat. Indices option, you
can also use the Tools > Modeling > PHREEQC Basic option to calculate saturation
indices for multiple samples. From the PHREEQC Basic window, click on the
Solutions branch of the tree (left side), then select the samples of interest and ADD
them to your solutions list using the "Green Plus button". Then, click on the Simulation
branch of the tree (left side), and click the Selected Output tab. Choose the equilibrium
phases (minerals) you are interested in, then RUN the PHREEQC program. Once the
run is finished, click on the Spreadsheet Tab, and you can find the Saturation Indices.
These can be saved from PHREEQC basic, or simply Copied and Pasted into another
program
6.4.2 Calculate pH
This tool can be used to estimate a missing pH value for an individual sample. The pH
is calculated, based on the assumption that the groundwater comes from a carbonaceous
aquifer and is in equilibrium with calcite. Usually a saturation index (SI) of 0 is thus
specified. If a different SI is known to be typical for samples in the region, a different
value can be specified.
Alternately, if a pH value was measured, and again the groundwater is assumed to be in
close equilibrium with calcite, this tool can be used to validate the measured pH value.
If the estimated theoretical pH is close to the measured pH, the pH measurement is
probably true.
6.4.3 Calculate Eh
In some cases, it may be very difficult to obtain meaningful Eh values by direct
measurements. Several authors have recommended to calculate the Eh by means of the
Modeling 353
redox speciation with the Nernst Equation. Each Redox couple, e.g. Fe2+/Fe3+, Mn2+/
Mn3+ gives an individual Eh value, which in cases of equilibrium conditions, should be
reasonable. The Calculate Eh menu item launches PHREEQC to search the selected
sample for available redox couples and to calculate pe and Eh values for each couple. A
sample of the dialog is shown below:
Sample
Sample information is shown in the top grid, i.e., station, sample date, sample_id etc.
and its corresponding parameter information is shown below, in the left grid. In the
adjacent right grid, you can enter values for Evaporate (%), Pumprate (m3/h) and
Duration (days).
If the evaporation value is 0, the calculator will predict the mass of the precipitated
minerals, based on the pumping rate and duration.
Minerals
This tab allows you to specify the minerals to equilibrate the solution with.
Simply click the green button to add a new record in the minerals table. Click in the
mineral field (highlighted in the image above) and then select the desired mineral from
the combobox.
Click the [Calculate] button to generated the output values. These can be viewed in the
Results tab.
Modeling 355
Results
This tab displays the output results which include the chemistry of the remaining
sample as well as the amount of mineral that was precipitated or dissolved (Prec/Diss).
If a pumping rate and duration was specified in the Sample tab, the results are also
expressed as total prec/diss during the pumping interval.
If you specified multiple minerals in the Mineral tab, you can recalculate the output
with respect to different mineral by selecting the mineral from the Mineral combobox
and clicking [Calculate].
NOTE: Before using PHREEQC, you must ensure that you have defined the location
of the PHREEQC.exe (executable), and PHREEQC.dat files. This can be done in the
PHREEQC Preferences dialogue, available in the File menu.
For more details on designing a PHREEQC input file, please refer to Chapter 7:
Geochemical Modeling with PHREEQC (Basic).
Modeling 357
In the third line under Files and Folders, you will see a field where you can specify the
location of the PHREEQC executable file. If you are using PHREEQC-I, the file is
called phreeqci.exe. If you are using PHREEQC for Windows, the file is called
phreeqc.exe. Please point this to the appropriate folder on your system where the
respective installation resides.
PHREEQC-Interactive
When you select the PHREEQC (Advanced) option from the Tools > Modeling menu,
this will load the USGSs PHREEQC- Interactive Windows Interface, provided that this
component was successfully installed during your AquaChem installation. An example
of the PHREEQC-I window is shown below:
You may select individual or multiple samples in your active samples list. Any
sample(s) which is (are) selected will be used as initial solution(s) when you load the
PHREEQC-I program. You may then use the full features that PHREEQC-I has to offer.
Once a PHREEQC-I simulation is completed, you must manually insert the results back
into AquaChem by copy-and-paste, or by manually typing in the values.
NOTE: Before using PHREEQC-I, you must ensure that you have defined the location
of the PHREEQCI.exe (executable). This can be done in the Preferences>PHREEQC
dialogue, available in the File menu. If you did not install PHREEQC during your
AquaChem installation, you may install this using the installation files located in the
For more details on PHREEQC-I, please refer to the users manual manual.pdf which
can be found in the Doc folder, in your PHREEQC-I installation directory. Or, you
may access the PHREEQC-I On-Line help, from within PHREEQC-I (in the Help
menu).
PHREEQC for Windows
PHREEQC for Windows is a 32-bit Windows version of the geochemical model
PHREEQC. PHREEQC for Windows contains the full functionality of PHREEQC v.2.
The input files for the program are backward compatible with the normal version of
PHREEQC. This means that you can use any file created with the normal version in
PHREEQC for Windows. However, some options that are available in PHREEQC for
Windows are not available in the standard version. The PHREEQC for Windows is
developed by Vincent E.A. Post.
PHREEQC for Windows is not included with the AquaChem installation. If you would
like to install this program, you may use the installation files which can be found on
your AquaChem CD-ROM, in the PHREEQC folder. The installation file is named
psetup21204.exe. PHREEQC for Windows is a public domain product, and may be
downloaded from the web site below:
http://www.geo.vu.nl/users/posv/phreeqc/index.html
Once you have installed PHREEQC for Windows, you must define the location of the
PHREEQC.exe (executable), in the PHREEQC Preferences dialogue, available in the
File menu. Then, this executable will be launched when you select PHREEQC
(Advanced) from the Tools > Modeling menu option.
An example of the input window for PHREEQC for Windows is shown below:
Modeling 359
Similar to the PHREEQC-I, any sample(s) which is (are) selected in your active list will
be used as initial solutions when you load the PHREEQC for Windows program. You
may select individual or multiple samples in your active samples list. You may then use
the full features that PHREEQC for Windows has to offer. Once a simulation is
completed, you must manually insert the results back into AquaChem by copy-and-
paste, or by manually typing in the values.
For more details on PHREEQC for Windows, please refer to the users manual
ManualW.pdf, which can be found in your PHREEQC for Windows installation
folder. Or, you may access the On-Line help, from within PHREEQC for Windows (in
the Help menu).
Solutions
All units must be expressed in mol/l, plus there must be a perfect ion balance between
anions and cations. This is achieved by first running a PHREEQC simulation and
allowing an automatic charge adjustment, typically on an element which is sufficiently
abundant to achieve a balance and which is not considered important for the type of
reactions studied through this model. In many cases chloride is a good candidate.
Further, PHT3D requires total inorganic carbon as input as opposed to alkalinity which
is usually reported in lab results. Again, this requires that the original solution is run
and total inorganic carbon is read back from the simulation output file.
Minerals
Typically, the laboratory results are provided in ppm or percentage mineral related to
1kg of aquifer material. PHT3D requires the number of mols of mineral related to the
mass of aquifer material in contact with 1 liter of pore water. This requires knowledge
about the porosity and density of the aquifer material. For example, an aquifer having
porosity of 20% and density of 2.7 g/cm3 will have a volume of 4 liter of rock around
every liter of pore water resulting in a mass of 10.8 kg of rock material. If this rock
comprises 10% of calcite, the mols of calcite is calculated as 10.8 * 0.1 * FMW(calcite,
0.1 kg) 10.08 mols. This calculation needs to be repeated for each mineral.
Modeling 361
Exchangers
PHT3D requires the amount of exchange places and the initial occupation of these
places with various available ions, e.g. NaX, CaX2, MgX2, KX, etc. As in the previous
case, the concentrations refer to 1 liter of pore water, though in reality, these values are
rarely available. Values provided by the laboratory normally include the CEC (cation
exchange capacity, which may be transformed into exchange places per liter of pore
water in a similar way as discussed for the minerals. More often, the CEC itself has to
be estimated based on the amount and type of clay minerals and presence of organic
material. A formula that is often applied in this respect is given by Appelo and Postma,
1993:
CEC = 3.7 * %clay + 3.5 * % organic C
If the type of the dominant clay material is known, then the CEC can also be estimated
by multiplying the average CEC of this clay material with the percentage reported in
the studied aquifer material.
All above methods only provide the places available for ion exchange, but do not
indicate the initial occupation of these places. If an exchanger material assumed to be in
equilibrium with a given solution, e.g. fresh water or sea water, then PHREEQC allows
calculating this initial composition using the so-called implicit option for the exchange
simulation. As for the solution, the PHREEQC output can then be used as input for
PHT3D.
Click the button beside the VMOD Program Folder field, in the top right corner and
navigate to the VMOD installation folder. Select the folder and click [OK].
The VMOD Project field allows the user to specify the folders where the project .VMF
file is located. AquaChem reads all required information from the XML file and
displays it in the grid.
Click the button beside the VMOD project field and navigate to the VMOD
installation folder. Select the file and click [OK].
The remaining tabs, i.e., solution, aquifer and preview, provide an interface to define
the composition that will be importable in PHT3D (solutions, minerals, gas
composition, exchanger composition).
The first tab allows you to format the entry for one or several solutions. The solutions
must have been previously entered in AquaChem using standard units. Another
important precondition for assigning AquaChem concentrations to PHREEQC master
species is that the master species are matched to AquaChem database parameters in the
currently active thermodynamic database.
Modeling 363
Solutions tab
The Solutions tab allows converting AquaChem solutions into PHT3D importable
solutions including charge balance calculations and conversions to mol/L. When this
tab is displayed, the grid below is shown. It lists all master species of the current
thermodynamic database for the active VMOD project variant. The active compounds
are marked in the third column by the internal concentration name, i.e., conc0001,
conc0002, etc.
Click the [Select] button to open the Station List dialog (shown below).
Select a sample from the station list, and click the [Assign] button and then [Close].
All available concentrations from the selected sample will be copied to the Conc
column in their original format.
364 Chapter 6: Tools
The Charge Balance combo box allows you to select an element that will be used for
calculating the charge balance. Please note that only the active PHT3D components will
be used for the PHREEQC simulation. Therefore an AquaChem sample, that is
perfectly balanced, but includes species which are not active in PHT3D, still needs to
be balanced.
All available active PHT3D species will be written to a PHREEQC input file and the
charge balance is calculated as well as redox species, e.g., Fe(2), Fe(3) from total Fe.
All results are read back in mols/L column in the grid immediately (shown below). You
may edit the concentration column manually however you will need to click the [Run]
button to launch the PHREEQC simulation manually. When changing the element used
to calculate the ion balance, the simulation is launched automatically.
Use the format combo box to specify the appropriate format for the generated input file.
You can choose from initial concentration or recharge concentration.
For more information on recharge concentration format, see Preview Tab on
page 369
Aquifer tab
The Aquifer tab allows you to define the mineral composition of the aquifer. Note that
PHT3D uses concentrations per liter of bulk aquifer material rather than per liter of
porewater used by PHREEQC.
First, define the bulk density by entering the value in the Bulk Density text field. This
value can be calculated based on the porosity and the density of grains. Most rock
Modeling 365
forming minerals have a density of 2.6-2.75 g/cc. Porosity can vary more widely from a
few percent up to 60% for clays.
Click the button to access the AquaChem bulk density calculator (shown below).
Enter a Porosity and Density value and then click the [Calculate] button to generate
the Bulk Density value. Click [Close] and enter the generated value into the Bulk
Density text field in the Aquifer tab.
Minerals
In the Phase Assembly (Minerals) frame, enter the estimated or measured percentages
for each listed mineral in the % column. The respective mols/L of aquifer bulk material
will be calculated in the last column (shown below).
Exchanger Sites
The definition of an exchanger assemblage requires two basic inputs: the amount of
total available sites and the initial distribution of these sites among the active PHT3D
exchanger components. Because these values are not always directly measured, you can
use the AquaChem calculator to generate estimated values.
The first step of calculating an exchanger composition consists of estimating the
amount of exchanger sites in the aquifer material that is in contact with 1 liter for pore-
water. Click the button and the screen shown below will be shown.
For this example the exchange places are to be estimated based on a known percentage
of 10% clay and 5% organic matter. Enter these percentage values in the first two text
boxes. Click the CEC estimated radio button. Once the [Calculate] button is clicked,
the CEC in meq/100g soil will be calculated and multiplied by the mass of grains
calculated on the first tab.
Copy the calculated value to the clipboard (highlight value, right-click and select copy)
and then paste the value into the Exchanger sites field of the Minerals tab.
There are two ways of entering the distribution of sites among Exchanger species:
Explicit requires that you distribute the sites manually among the species, based on
laboratory results or estimation. The Implicit method allows selecting a solution,
Modeling 367
equilibrates the exchanger assemblage with this solution, and then reads the results
back to the grid. Both methods are described in more detail in the following sections.
Explicit
If the distribution of specific exchange places (CaX2, NaX, KX, etc.) is known, enter
the percent values manually in the grid below for each exchanger.
Implicit
Alternatively you may assume that the exchanger is in equilibrium with a solution.
Typically for exchange reaction simulations, the aquifer including its exchangers is in
equilibrium with an initial solution. This system is then flushed with a solution of a
different composition (e.g. saltwater if the initial solution was freshwater or vice versa).
The first solution can be used to calculate the distribution of individual exchange
species (CaX2, NaX, KX, etc.).
Select the Implicit option, then press the button and select the required sample from
the Station List dialog (shown below).
Preview Tab
The preview tab provides a summary of the prepared data for PHT3D import. Three
different entries are created: initial concentration, mineral composition and exchanger
composition. Each grid contains a [Save] button which allows you to export the grid
data to an importable text file (indicated in the image below).
Exchanger and mineral composition can only be defined under the initial
concentrations format. The respective datafiles are time independent. Solutions may
also be bound to time dependant boundary conditions such as recharge and point
sources. Among those, only the creation of recharge concentrations is supported for the
time being.
To create recharge concentrations, simply select Recharge concentrations from the
Format combo box in the General tab.
Modeling 369
The preview grid for solutions will now be filled with multiple records (shown below).
The number of time steps and the simulation duration is read directly from the
project.vmf file and is also displayed in the project setting grid on the General tab. For
the time being, the composition of every step is kept constant. This grid is editable; you
may add or delete rows and change the start/stop values for every row. For example, if
the solution includes a parameter for temperature, you can manually change this value
for every time step, while the composition of the water remains constant.
Once the grid data has been saved in imported text files, they can be imported into
VMOD/PHT3D.
Under the Files and Folders frame, press button beside the Thermodynamic
Database field and select the path and filename from the PHREEQC Thermodynamic
Navigator
Tree
The PHREEQC Input dialogue consists of several options and settings that apply to the
entire PHREEQC simulation.
The left side of the dialogue includes a Navigator Tree, allowing you to quickly add
and modify the reaction options for the current simulation.
Along the lower part of the PHREEQC Input dialogue there are four tabs:
Simulation This allows you to define the simulation options (main input
dialogue).
Input File This provides a view of the PHREEQC input file, in text format.
Output File This provides a view of the complete PHREEQC output file, in text
format.
There are four tabs associated with the [Calculator] button: General, Surface
Complexation, Exchange Capacity, and Mineral Assemblage. These are shown and
described below:
Surface Complexation
The moles of surface places (sites) depends on the content of hydrous ferric oxides in
the aquifer (Sites/mol ferrous iron). Fe is generally a measured parameter but you
must estimate the percentage of iron (Weight % Fe) that is in the form of hydrous iron
(% hydrous ferric oxides of total iron). Since PHREEQC always asks for mols, you
also need a formula weight value for your iron minerals. Hydrous iron is a mixture of
several minerals, so a suggested Gram formula weight for oxides is 89 which is used
as a default value.
Exchange Capacity
The Cation Exchange Capacity (CEC) is normally expressed as meq/100g of soil.
PHREEQC however uses meq/l of porewater. There are several ways of estimating the
number of exchangeable sites and express it in the unit used by PHREEQC.
If you know the CEC value you may directly enter it and calculate the exchange places
(Sites) within the given aquifer volume. Otherwise you need to estimate the CEC. The
first option lets you select a clay mineral from a list and will use an average CEC value.
Choose this option if you know the dominant clay mineral of your aquifer. If you know
only the percentage but not the mineralogy of your clay minerals you may use a
formula derived by Appelo (1993) to estimate the CEC:
CEC=0.7 * clay% +3.5 * org material%.
There are three tabs associated with the Simulation tab which are shown and described
below:
General
The General tab contains a summary of the steps defined for the current simulation.
The Reaction Temperature tab provides options for specifying the desired
temperature settings during a modeled reaction. Normally the temperature of the
selected sample stays Constant (default setting) during a reaction and it will use the
solution temperature as entered in the Solutions option selected from Navigator tree.
However, PHREEQC provides you the options to change the temperature linearly
(Linear change from...to...in...Steps) from a starting temperature to an ending
temperature in a specified number of steps or in steps during the course of a simulation.
The List of Steps option allows you to specify the exact temperature at specific steps
during the reaction and the temperatures will be applied in the order they are listed.
Output
The Output tab allows you to access the various output details to include in the
standard PHREEQC results output file (.PQO file extension) or to save simulations
directly back to the database. PHREEQC will generate an output file every time you
run a simulation. However, this file is very detailed and may contain more information
than you need to solve a particular problem. Its format is also not suited for plotting or
presenting simulated data. This tab lets you extract individual parameters from the
detailed output file and write them into a spreadsheet.
The options available under the Selected Output dialogue are shown in the figure
below:
When you have successfully run the simulation, AquaChem allows you to save the
output file. To do so, press the button, and enter a filename.
Save Options
The PHREEQC input and output files are saved by Aquachem under default filenames
which will be overwritten with every new PHREEQC run. Using the Save Solution
as option in the step frames, allows you to save the current simulation under a defined
name. You may afterwards use this file for your documentation or continue to model
with one of the USGS GUIs that provide more advanced coverage of the PHREEQC
features.
This new item will now appear in the Navigator tree on the left side of your display.
To activate the properties for this item, expand the Navigator tree and click once on
this item.
To modify the Step properties, you have two options:
[1] Double click on the Step name from the main dialogue, OR
[2] Select Step from the Navigator tree on the left side of your display.
Options for the reaction steps can also be created and modified as needed. These
include:
Add Initial Conditions and
Forward Modeling
These options are described in detail in the following sections.
Forward Modeling
Add Mix Solutions
Add Reactions
For each mineral phase you choose, you can specify the following properties:
SI: This is the Saturation Index of the selected mineral phase (degree of saturation,
default value 0).
SI = log(IAP/KT)
where,
IAP = the ion activity product for the given material and
KT = the reaction constant at the given temperature
If SI > 0, then the solution is super-saturated with respect to the mineral phase;
For Gas phases the SI corresponds to the log of the partial pressure.
Mols: Mols describes the maximum amount of mineral phase that can be added or
dissolved to reach the specified saturation. The default value is 10 mols. The constraint
on available amount of mols is important if you want to translate measured
concentrations of minerals in an aquifer in a PHREEQC transport model. You may also
set the amount of available mols to 0, making sure that the respective mineral can only
be precipitated but not dissolved from the aquifer.
Alternative phase: The alternative phase is added or removed until the first mineral is
in equilibrium with specified saturation index. For example, gypsum may be added or
removed to the solution until an equilibrium with the primary mineral calcite is
reached. An amount must be specified for the alternative mineral phase (default amount
of the alternative phase is 10 moles as specified by PHREEQC). The solutions
equilibration with calcite will be terminated if the amount specified for the alternative
mineral phase is consumed prior to equilibration with calcite. It should be noted that if
the alternative phase is specified, the amount of the mineral phase is ignored. Otherwise
the system would be overdetermined.
Below the grid, select the solution with which the mineral phase will be equilibrated. If
you do not choose a solution, the specified assemblage is equilibrated with the first
solution defined in the current simulation.
The equilibration of a solution with minerals will result in a new composition of the
solution. The Save Solution as allows you to save this composition as a new solution.
These new elements can then be used as input data for subsequent PHREEQC
simulations. Each of these new elements must be identified by a unique number that is
not already in use. If you specify a number that is currently in use, the new element will
overwrite the old element.
Sodium is taken up by the exchanger and Ca2+ is then released. The composition of the
solution and the exchanger is modified by this reaction.
PHREEQC lets you define the initial composition of an Exchange Assemblage in two
ways:
[1] Explicitly by selecting the composition of the Exchange Assemblage. This
approach is chosen if the mineralogy and the exchange sites for these minerals are
well known.
[2] Implicitly by specifying that the Exchange Assemblage is in equilibrium with a
solution of a fixed composition. This approach is chosen if the type of water in the
aquifer is known. E.g. to model an aquifer in contact with seawater make sure that
your model contains a seawater sample and specify this sample within the
Exchange assemblage is defined to e in equilibrium with solution option.
To remove an ion from the Exchange Assemblage, click-on the ion you would like to
remove, and then press the button.
Option 2
You may specify that the Exchange assemblage is defined to be in equilibrium with a
solution. For example, if you consider that the exchange takes place on a marine clay,
define seawater as a solution and select this solution in the Implicit option as the water
the exchange material is in equilibrium with. Simply enter a solution number in the
appropriate field.
Once you have defined the Exchange Assemblage, you must select the solution with
which you wish to equilibrate. If you do not select a solution from the list, you can save
the Exchange Assemblage to equilibrate in a later simulation step (e.g. during a
transport problem).
Each Exchange Assemblage is identified by a unique Number and a Description so
they can be easily recognized in the Input / Output files, and reused in later simulations.
The Save Solution as field allows you to save the composition of a simulation by
creating a new exchange assemblage. These new elements can then be used as input
data for subsequent PHREEQC simulations. Each of these new elements must be
identified by a unique number that is not already in use. If you specify a number that is
currently in use, the new element will overwrite the old element.
The Gas Phase option will equlibriate the solution with only those gases which are
defined in the simulation. However, gases may be specified with a partial pressure
equal to zero at the start of the simulation. In this case, no moles of that component will
be present initially, but some gases may evolve during a reaction simulation such as
oxidation of organic material. As a result, the partial pressure of all gases included in
the gas phase stays constant and the excess gas is removed from the solution as the gas
bubbles.
PV = nRT
where,
P = defined pressure
V = volume
n = number of moles of the gas
R = universal gas constant
T = temperature
If you wish to add air to the solution, click on button and the major components
of air will be automatically added to the list, with their partial pressures at 1 bar.
To remove a gas from the Gas Phase Assemblage table, select the gas to remove and
then press the button.
The Critical Pressure, Initial Volume and Temperature information is required for
each Gas Phase assemblage in order to calculate the weights of each gas component.
Finally, you can select the solution with which you would like to equilibrate the gas
phase assemblage. If you do not select a solution from the list, you can save the gas
phase to equilibrate in a later simulation step. Each Gas Phase Assemblage is identified
by a unique number and can be reused in later simulations.
The Save Solution as allows you to save the composition of a simulation by creating a
new gas phase assemblage. These new elements can then be used as input data for
subsequent PHREEQC simulations. Each of these new elements must be identified by a
To access the solutions options, expand the items in the Navigator tree by pressing the
+ beside Step. Then select Solutions and the solutions frame should appear, similar to
the one below.
You must specify at least one solution for every PHREEQC simulation file. AquaChem
allows you to select from two types of solutions:
To add multiple samples from your database, use the <Shift> and <Ctrl> keys with the
mouse to select the samples you need, then click the button. This is useful if you
want to speciate a large number of samples simultaneously. Each complete sample
should have pH, alkalinity, and temperature values specified.
The AquaChem database index Number for the selected sample will be used as the
Solution number. The Description field is used to identify the solutions. The solution
description will appear in the PHREEQC input file.
After you have added a solution, you can verify that it has been added to the PHREEQC
input file. To do so, click the Input File tab at the bottom of the screen and you should
see the added solution and any corresponding concentrations.
Solution Properties
Once you have added a solution, you may want to modify the Solution properties.
In the Solutions frame, double click on the appropriate solution from the main
dialogue, OR
Select the appropriate Solution #, from the Navigator tree on the left side of
your display.
The upper part of this dialogue lists the solution Description and Number. As
discussed above, the Number is AquaChem database index number for the selected
sample which will be used as the Solution number. The Description field is used to
identify the solutions.
The remaining options in this frame are separated into two tabs:
General, and
Concentrations
The options associated with these tabs are described in detail in the following section.
General
Under the General tab, you can specify options for pH and Redox during the
simulation.
In addition, at the bottom of the frame, you can enter a default Temperature and
Density values for the solution. The sample density is only needed when concentration
values are entered in ppm or ppb.
Concentrations
This tab lists the concentrations of the dissolved elements in solution.
The first column of the grid contains the Element name, while the second column
describes the PHREEQC Masterspecies (M. Spec.) name.
The parameter values are read from the database; if necessary you may add or remove
concentrations (Conc.), or edit the existing values. You may also define a
concentration as controlled by a mineral solubility, or for gases, by a defined pressure.
For example, a calcium concentration is overridden in the simulation by a calculated
value that will result in a calcite equilibrium state (Saturation index = 0).
Once you have entered element values for the pure water solution, the Default Unit
may not be changed. However, you can change the unit individually for each entered
Example
The following example will demonstrate how to use a sample from the Demo database,
as a solution in a PHREEQC simulation:
To add the MW-1-92 sample from the DEMO.AQC database to a PHREEQC input file,
proceed as follows:
Tools from the main menu, then select Modeling and then PHREEQC (Basic)
from the main menu.
Click + beside Step (in the Navigator tree) and you will see Solutions
Select Solutions
Select the MW-1-92 sample (ID = 1) at the top of the list of Active solutions
in database frame
Click button and the sample will now appear in the Solutions frame in the
bottom section of the dialogue.
To view the solution properties, double click on this Solutions, or expand the
Navigator tree, and select the Solution from here. This will load a Solution properties
dialogue.
Click on the Concentrations tab to confirm that the concentrations are identical to
those entered for that sample in the AquaChem database.
To verify that this data is saved to the PHREEQC input file, you can view the input file
by clicking the Input File tab at the bottom of the dialogue.
Option 1 (Explicit)
To define a Surface Assemblage:
To remove a binding site from the Surface Assemblage, select the Binding Site you
would like to remove and press the button.
Option 2 (Implicit)
You may specify that the Surface Assemblage is defined to be in equilibrium with a
solution. Simply enter a solution number in the appropriate field.
Once you have defined the Surface Assemblage, you must select the solution with
which you wish to equilibrate. Each Surface Assemblage is identified by a unique
Number and a Description so they can be easily recognized and reused in later
simulations.
The Save Solution as allows you to save the composition of a simulation by creating a
new surface assemblage. These new elements can then be used as input data for
subsequent PHREEQC simulations. Each of these new elements must be identified by a
unique number that is not already in use. If you specify a number that is currently in
use, the new element will overwrite the old element.
Click to add a new line to the grid under the Solution header.
Type in a Solution number in the same cell.
Click-on the first line in the grid under the Part header and type the proportion
of the solution you would like to add to the mixture (e.g. 3 parts of Solution 1
and 4 parts of Solution 2)
The solutions will be automatically added to the input file. Note that if you want to
simulate several mixing proportions between two samples, each mix must be conducted
in a separate simulation step as otherwise only the first mix definition will be executed.
Each mixed solution has a unique Mix number and Description. To re-use the
simulated mixed sample in a later step, simply enter a solution number beside the Save
Solution as field.
7.3.8 Reactions
The Reactions simulation options are used to dissolve or precipitate a specified amount
of a mineral or formula. To access these options, you need to add a Reaction as a Step
and then access the Reactions options. Below is an example of the Reaction dialogue:
The reaction will be added automatically to the input file. To verify this, click the Input
File tab at the bottom of the dialogue.
NOTE: The add reaction option does not calculate an equilibrium status. It will only
dissolve the specified amount of chemicals in the given solution. Therefore you may
enter any valid chemical formula into the phase or formula grid
Example
Follow the steps listed below to specify the following reaction:
Dissolve 0.1 moles Calcite and 2.0 moles Halite (NaCl) in pure water.
Select Tools from the main menu, then Modeling and then PHREEQC
(Basic) from the main menu.
The PHREEQC Input dialogue will appear, and the General tab will be active.
Click + beside Step (in the Navigator tree) and you will see Solutions
Select Solutions
Add pure water as a solution by clicking below the active
solutions frame
Click Step from the Navigator tree and right click on it
Select Add Forward Model and then select Add Reaction to add the First
Reaction step.
Reactions a new item Reaction1 will now appear in the Navigator tree.
To verify the input file, click on the Input File tab at the bottom of this dialogue. The
contents of the input file should be similar to that shown in the figure below:
Balderer, W., Pearson , F. J. jr., and Soreau, S., 1991: Sulphur and Oxygen Isotopes in
Sulfate and Sulfide. In F. J. J. Pearson, W. Balderer, H. H. Loosli, B. E. Lehmann, A.
Matter, T. Peters, H. Schmassmann, & A. Gautschi (Eds.), Applied Isotope
Hydrogeology a case Study in northern Switzerland - NTB 88-01 Amsterdam - Oxford
- New York - Tokyo: Elsevier.
Balderer, W., Pearson, F. J., Rauert, W., and Stichler, W., 1991: Isotopic Composition of
Groundwater. In: F. J. Pearson, W. Balderer, H. H. Loosli, B. E. Lehmann, A. Matter, T.
Peters, H. Schmassmann, & A. Gautschi (Eds.), Applied Isotope Hydrogeology - A
Case Study In Northern Switzerland. - Studies in Environmental Science (pp. 98-115).
Drever, J. I., 1982: The Geochemistry of Natural Waters. Prentice Hall, New Jersey,
Amsterdam: Elsevier, 437 p.
Giggenbach, W.F., 1989: The chemical and isotopic position of Ohaaki field within the
Taupo Volcanic Zone. Proc. Eleventh N.Z. Geothermal Workshop, Aukland: pp. 81-88.
Hounslow, A.W. 1995: Water Quality Data Analysis and Interpretation. CRC Press
LLC. pp. 75-85.
Kharaka, Y. K., Gunter, W. D., Affarwall, P. K., Perkins, E. H., and De Braal, J. D.,
1988: Solmineq.88: A computer Program Code for Geochemical Modelling of Water-
Rock Interactions. In U.S.Geological Survey Water Investigations Report 88-05.
Kharaka, Y. K., and Mariner, R. H., 1989: Chemical Geothermometers and their
Application to formation waters from sedimentary basins. In: N. D. Nser & T. H.
401 References
Lin, S., 2001: Water and wastewater calculations manual. McGraw-Hill, New York.
pp. 6-8.
Lloyd, J. W., and Heathcote, J. A., 1985: Natural inorganic hydrochemistry in relation
to groundwater - An Introduction. Oxford: Clarendon Press.
Nordstrom, D. K., Plummer, L. N., Langmuir, D., Busenberg, E., Man, H. M., Jones, B.
F., and Parkhurst, D. L., 1990: Revised Chemical Equilibrium Data for Major Water-
Mineral Reactions and their Limitations. In: D. C. Melchior & R. L. Bassett (Eds.),
Chemical Modelling of Aqueous Systems Washington: American Chemical Society.
Parkhurst D.K., Thorenston D.C. and Plummer N.L., 1980: PHREEQE - A computer
program for geochemical calculations. U.S. Geological Survey Water Resource
Investigations 80-96, 210 p. http://gwrp.cciw.ca/gwrp/software/software.html
Pearson, F. J. J., Lolcama, J. L., and Scholtis, A., 1989: Chemistry of Waters in the
Bttstein, Weiach, Riniken, Schafisheim, Kaisten and Leuggern Boreholes: A
Hydrochemically consistent Data Set. No. NTB 86-19, Nagra.
Stumm, W., and Morgan, J. J., 1981: Aquatic chemistry (2nd ed.). New York: John
Wiley & Sons.
402 References
A Open 50
Active List Window Preferences 87
Options 107 Save Database 51
Aliases 154 Save Database Template 51
AquaChem Database 136 Filter Menu 109
Aliases 154 Invert Selection 110
Calculations 169 Open Selection 111
Compress 137 Save Selection 111
Create a new database 21, 48 Select Associate Samples or Stations 110
Look Up Tables 155 Find Missing Major Ion 128
Parameter Groups 148 Formula Weight Calculator 129
Parameters 138
Ranges 165 G
Thermometers 167 Generate PHT3D Input 360
Water Quality Standards 157 Geometric Markers 91
AquaChem Function 128 Geothermometers 167
AquaChem Tool Bar 18 Creating 169
C H
Calculate facies 129 Help
Calculations 169 Online Help 5
AquaChem Calculations 172
Calculators 128
AquaChem Function 324 I
Calculate facies 335 Import
Decay Calculator 325 Sample Data 25, 52
Find Missing Major Ion 328 Installing AquaChem 3
Formula Weight Calculator 329
Special Conversions 331
Species Converter 333
L
Unit Calculator 334 Link to HGA database 75
Volume Concentration Converter 330 LookUp Tables 155, 344
Censored data 93 Degradation Rates 345
Correlation Matrix 127 Links 347
Organic Compounds 347
Periodic Table 346
D PHREEQC Phases 345
Decay Calculator 128, 325 Preservation Methods 347
E N
Edit Normality, Tests for 127
Copy 95
Cut 95
Find 96
O
Paste 95 ODBC 409
Replace 95 Open Database from V. 3.7 8
Export Outlier Tests 127
Data 69
Plot Image 67 P
Text File 66 Parameters
To ESRI Shapefile 67 Adding and Creating 144
Deleting Parameters 146
F Details 140
File Groups 148
Close 51 Mandatory Parameters 147
Database 136 PHREEQC
Export 66 Create Input File 356
Import 52 How to Create Input Files 371
New 47 Model pH 352
403
Model Samples 349 Rock Source Deduction 126, 269
PHREEQC for Windows 359 Sample Summary 303
PHREEQC-Interactive 358 Save 44
Preferences 372 Statistics 271
PHREEQC, connect to files 92 Correlation Matrix 127, 279
Plots 183 Outlier Tests 127, 291
Automatic Plot Title Preferences 91 Summary Statistics 126, 271
Box and Whisker 205 Tests for normality 127, 298
Configurations 122, 197 Trend Analysis 127, 281
Copy to Clipboard 200
User Defined 127
Create 122
Water Quality Standards 126, 264
Customize global options 90
Depth Profile 210
Dialogues S
Format 194 Sample
Labels 195 Assign Station 120
Legend 190 Assign Symbols 114
Line 191 Clone 113
Symbols 188 Create New 112
Title 186 Delete 114
Durov Plot 212 Edit 114
Geothermometer Plot 214 Representative 121
Giggenbach Triangle 216 Sample Details Window 12
Histogram 217 Options 108
Identify Plot Data 124, 199 Sample List
Ludwig-Langelier 219 Options 107
Map Plot 220 Save as Template 52
Options 109, 184 Special Conversions 129
Pie 230 Species Converter 129
Piper Diagram 233 Station
Printing 201 Create new 112
Radial Diagram 236 Delete 114
Save as Metafile 200 Edit 114
Scatter Plot 238 Station Details Window 15
Schoeller Plot 240 Summary Statistics 126
Show Sample Data 124 Symbols
Stiff Diagram 242 Assign 114
Ternary Plot 244 Automatically Generate 119
Time Series Plot 247 Create 118
Wilcox Diagram 252 Create new symbol group 116
Preferences Symbol Fonts 91
Active Graphs 90
PHREEQC 92 T
Plot Titles 91 Table View 102
Symbol Fonts 91 Create 102
Print Default 107
Plots 201 Options 109
Reports 258 Template Designer
Creating new templates 82
R Tools 128
Ranges 165 Calculators 128
Creating New 166 AquaChem Function 128, 324
Report Designer 305 Calculate facies 129, 335
Designing a New Report 307 Decay Calculator 128, 325
Reports 125 Find Missing Major Ion 128, 328
Compare Sample 126 Formula Weight Calculator 129, 329
Compare Samples 258 Special Conversions 129, 331
Mix Samples 126, 261 Species Converter 129, 333
Options 109, 255 Unit Calculator 129, 334
Print 45
404
Volume Concentration Converter 129, 330
Look Up Tables 131
Degradation Rates 131, 345
Links 131, 347
Organic Compounds 131, 347
Periodic Table 131, 346
PHREEQC Phases 131, 345
Preservation Methods 132, 347
Modeling 132, 347
Calculate Eh 132, 353
Calculate pH 132, 352
Calculate SIs and Activities 132, 349
PHREEQC (Advanced) 133, 357
PHREEQC (Basic) 133, 356
QA/QC 129, 339
Compare Duplicates 130, 341
Find Duplicates 130, 343
Highlight Duplicates 131, 344
Highlight Nondetects 130, 343
Highlight Outliers 131, 344
Reliability Check 129, 339
Trend Analysis 127
U
Unit Calculator 129
V
Volume Concentration Converter 129
W
Water Quality Standards 157
Create 160
Customize highlight colors 89
Preferences and Settings 89
405
406
Appendices
Q 2: My symbols show up on the plot colored in red, even though I have assigned
another color to this symbol.
A. The red colored symbols correspond to the samples which are selected in the
active list. This indicates you are using the Identify Samples option in the
Define Symbol or Line dialogue. Disable this option and the symbols will no
longer be identified.
Q 3. After I import data, the data does not appear correctly or does not appear at all.
A1. Check that you have a value for each sample for each parameter in your source
file.
A2. Ensure that you have selected the correct Delimiter during the import routine.
A3. Check your data source file to ensure that there are no extra spaces between
columns or rows of data.
Q 7: In the print options window, part of the plot is cut off by the print template.
A. Be sure to select the print template first, then load the plot on top of the template.
This will ensure the page margins are set correctly, and will not cut off sections of
the plot.
Q 8: After I enter a value for a measured parameter, the 0 after the decimal place is cut
off (for example, 7.20 in entered, however AquaChem displays this as 7.2).
A. This can be corrected by modifying the parameter format. Go to File > Database
> Parameters. Select the appropriate measured parameter, and modify the
format. Disable the Auto option, and increase the number of decimal places to
the desired value.
Q 7: Is it possible to create two unique Piper plots showing two different sample
groups?
A. AquaChem will not allow for multiple Piper plot windows showing two distinct
sample groups, at the same time. Since plots are created from information based
on the active samples list, any changes that are made in the active list will
immediately impact any open plot windows. The plots must be created
individually.
408 Appendix A
Appendix B: Configuring an ODBC Connection
To use the AquaChem - HGA linking feature, you must configure an ODBC
connection for your HGA SQL Server database. This can be done using Windows
native ODBC Data Source Administrator tool. The following describes the steps to
configure an ODBC connection:
Please note that the following may vary slightly between different operating systems.
The following steps are described for Windows XP.
3. From the Create New Data Source dialog, select SQL Server and then
click the [Finish] button
409
4. From the Create a New Data Source to SQL Server dialog, enter the fol-
lowing information, and then click [Next].
Server: Specify the server and instance that contains the HGA database. If the
database resides on your local machine, then you would specify your
computer name, instead of a server name.
5. In the next dialog, select the appropriate SQL Server authentication option.
In most cases, you can leave the default settings and then click the [Next]
button.
410 Appendix A
6. Choose your HGA database from the Change the default database to:
combobox and select [Next].
411
7. In the next dialog, leave the default settings, and select the [Finish] button.
8. Finally, click the [Test Data Source...] button to test your ODBC connec-
tion.
If successful, click [Ok] to finish. If the test failed, review the ODBC settings to ensure
that they are correctly defined.
412 Appendix A
Appendix C: Trend Analysis Tests
Linear Regression
The linear regression simply calculates a regression line on the time/value plot. A
positive slope of the regression line indicates a trend towards increasing values, a
negative slope a trend to decreasing values. However the result of this test should only
be used qualitatively and should be confirmed by more sophisticated tests such as Sens
and Mann-Kendall. The calculated line is drawn on the time series plot.
Sens Test
Sen (1968) developed a simple nonparametric estimator of trend which is particularly
useful for groundwater monitoring applications. The method is robust to outliers,
missing data and non-detects. To compute the Sens trend estimator S, the individual
slopes for any succeeding points are calculated. The trend estimator corresponds to the
median of all calculated slopes. To calculate the confidence limits, an estimate of the
variance of S is required which may be calculated using the following formula:
413
where q is the number of values for which there are ties and tp is the number of tied
measurements for a particular value. The lower and upper confidence limit M1 and M2
can be calculated as follows:
The calculated ranks M1 and M2 are projected on the ranked slope data. If the
respective interval contains the zero value, the Null Hypothesis of non trend is
accepted. The Output of Aquachem includes the Median slope, the variance S, M1, M2
as well as their respective slopes. Both Hypothesis, Increasing trend and Decreasing
trend are tested according to the specified probability and the result reported in the
result table shown below.
For more details on the Sens test please see the reference below:
Gibbons, R.D., 1995: Statistical Methods for Groundwater Monitoring. p.175.
414 Appendix A
Mann-Kendall Test
The Mann-Kendall test is a trend estimator that can be used to prove if contaminant
concentrations are significantly diminishing or rising over time. For this test, there are
no distributional assumptions, and missing data (non-detects) or irregularly spaced
measurement periods are allowed. Non-detects are assigned a value smaller than the
smallest measured value.
The version of the Mann-Kendall Test used in AquaChem can be applied for virtually
any groundwater parameter. The Mann Kendall test provides two values; S value and Z
value. The test procedure is as follows:
First, order the data by sampling date x1, x2, ....,xn where xi is the measured value on
occasion i.
Second, record the signs of each of the N possible differences xi -xi where i > i. For
example, let
sgn (xi -xi) = 1 if xi -xi > 0
= 0 if xi -xi = 0
= -1 if xi -xi < 0
n1
S = sgn x i x i
i=1 i'=k+1
which is the number of positive differences minus the number of negative differences.
If S = 0, then there is no increasing or decreasing trend in the data
If S < 0, then there is a decreasing trend, indicating concentration is decreasing over the
time interval.
If S > 0, then there is an increasing trend, indicating concentration is increasing over the
time interval.
A two-sided test (for either increasing or decreasing trend) can also be obtained, using
probability values. For n > 10, then the normal approximation (Z) is calculated as
follows:
415
If S > 0, then
S1
Z = ---------------------------
0.5
var S
If S = 0, then Z = 0
If S < 0, then
S+1
Z = ---------------------------
0.5
var S
Where var(S) is calculated according to the formula used for the Sens slope estimator.
The quantity Z can be compared to standard normal cumulative distribution
probabilities to test the null hypothesis of no trend.
In the Statistics Report window, the S value is displayed as S(M-K), and the Z value is
displayed as Z(M-K).
For more details on the Mann-Kendall test please see the reference below:
Gibbons, R.D., 1995: Statistical Methods for Groundwater Monitoring. p.178.
After you have selected a test to use in trend calculation, select the parameter for which
you wish to calculate the trend.
All stations will be displayed in the Data tab, sorted by date in ascending order. At this
point you can de-select any samples you do not wish to use in the analysis. Simply un-
check the box beside the sample to remove it from calculations.
416 Appendix A
Once you are satisfied with the data selection, move on to the Plot tab. This tab offers a
graphical representation of the selected data.
The graphical representation of the data is very helpful because it allows you to see if
there are any outliers that may potentially distort the analysis.
Once you are satisfied with the view click the [Calculate] button, and the trend will be
calculated and displayed in the result tab.
417
Depending on the chosen test, different results will be displayed, however one common
entry is the Result line at the bottom of the list of calculated parameters. The result can
be:
increasing trend accepted/rejected
decreasing trend accepted/rejected
To see the calculations for another method and/or parameter simply change these
options in their respective combo boxes and click [Calculate] again.
418 Appendix A