Best practices for handling water quality data in the cloud

By · Updated

A hand in a blue nitrile glove holds a glass flask of clear water above dark blue water

In short: Most labs send water quality results to the environmental manager as a PDF report attached to an email. The manager types the numbers into a spreadsheet and compares them with guidelines by eye. A cloud data system receives the same results as data. The system checks each result against quality assurance and quality control (QA/QC) rules and against guidelines on the day that the result arrives. The lab, the consultant, the operator and the regulator see the same current copy. The system also stores sensor and satellite data with the lab results and records every change. A folder of emailed PDFs cannot do these things.

The emailed PDF and its hidden costs

In a typical monitoring program, a field crew collects water samples and sends the samples to a laboratory. The lab analyzes each sample and emails a certificate of analysis to the environmental manager. The certificate is a PDF, sometimes with a spreadsheet. The PDF is easy for a person to read, but a computer cannot read the numbers in the PDF as data without extra work.

Somebody must type the results into a spreadsheet before anybody can plot or check them. Each manual step adds errors. A review of 93 clinical research studies by Garza and others (2025) found a pooled error rate of 0.29% for single data entry. A pooled error rate combines the results of many studies into one estimate. That rate is about 29 wrong values in each 10,000 values. Double data entry, where two people type the same data and a computer compares the two copies, had a pooled error rate of 0.14%.

The emailed PDF has other costs:

  • Many versions. The lab sends a corrected report. Now two files exist, and nobody can be sure which file the annual report used.
  • Late exceedances. A result above a guideline is an exceedance. Nobody sees an exceedance until a person opens the PDF and reads the number.
  • Hidden file limits. Public Health England was the national public health agency for England until 2021. In 2020, Public Health England did not report 15,841 COVID-19 cases on time. Some files with test results were larger than the maximum file size of the system.
  • No history. A spreadsheet that moves by email does not record who changed a value, or why.
  • Isolated data. You cannot combine numbers in a PDF with sensor records or satellite images. Somebody must type the numbers again.

What the cloud adds to water quality data

A cloud data system is a database and its software on servers in a data centre. A cloud provider, such as Amazon Web Services (AWS) or Microsoft Azure, operates the servers. Users open the system in a web browser from any place. The table compares the two methods for each task in a monitoring program.

TaskEmailed PDF and spreadsheetCloud data system
Receive lab resultsA person types each valueThe system loads the lab data file automatically
Check qualityA person reads the QA/QC samples when time permitsThe same rules check every result on arrival
Compare with guidelinesA person calculates each guideline by handThe system calculates each guideline from the same sample
Find an exceedanceWhen a person reads the reportThe system sends an alert on the day of the import
Share with othersEmail more copies of the fileGive each person access to the same current copy
Trace a changeUsually not recordedAn audit trail records each change
Add sensor and satellite dataNot practicalThe same system stores and checks the data
Protect against lossOften one copy on one computer or file serverCopies in data centres at different locations
Water quality data tasks with emailed reports and with a cloud data system.

Why the cloud, and not a database on an office server? A server in your office can do some of these tasks. But the cloud gives four advantages that an office server cannot easily give:

  1. Shared access. The lab, the field crew, the consultant and the regulator connect from their own offices. Nobody needs a connection to your internal network.
  2. Durability. AWS designs its Amazon Simple Storage Service (S3) for 99.999999999% durability over a year. S3 keeps each file on many devices in at least three Availability Zones, which are separate groups of data centres.
  3. Computing power on demand. Sensor records and satellite images are large. You rent processors for the time that a calculation needs and then release them.
  4. Data that is already in the cloud. The large satellite archives are in the cloud. You can process the images next to the archive and not download them.
Email and spreadsheetLab PDFby emailManager’sinboxTyped into aspreadsheetChecked by eye. Kept by one person.Cloud data systemLab datafilesSensortelemetrySatellite archive(also in a cloud)In the cloudRaw file store, every version keptDatabase, one list of analytes and unitsRules for QA/QC and guideline checksAudit trail of who changed what, and whenStandard interfaces for other systemsManagerConsultantRegulatorEveryone reads the same current copy.
Two ways to handle lab results. With email, each result passes through one person and one file. With a cloud data system, the same rules check every result, and every user reads the same data.

Our article on cloud and local storage for environmental data compares the two options for all types of environmental data. The sections that follow give the best practices for water quality data.

Receive lab results as data, not documents

Ask your lab for an electronic data deliverable (EDD) with each report. An EDD is a file with one row for each result and the same columns every time. The columns include the sample, the analyte, the value, the unit and the detection limit. An analyte is a substance or property that the lab measures, such as dissolved zinc or pH. A cloud data system loads each EDD automatically and does not need a person to type the values.

Apply three rules when the system loads an EDD:

  • Keep the original file. Store each EDD without changes, in file storage that keeps every version. If a question comes later, you can show the exact file that the lab sent.
  • Use one list of analytes and units. Different labs give different names and units to the same analyte. The system must match each name to one analyte and convert each value to one unit.
  • Store non-detects correctly. A detection limit is the lowest concentration that the lab method can measure. A non-detect is a result below the detection limit, which the lab reports as “<0.005 mg/L”, for example.

Do not store a non-detect as zero, as half of the detection limit or as text. Dennis Helsel of the United States Geological Survey (USGS) examined this practice in 2006. He wrote that this “fabrication of values produces poor estimates of statistics and commonly obscures patterns and trends in the data”. Store a flag that marks the non-detect, and store the detection limit as a number. The US Environmental Protection Agency (EPA) detection limits guide (August 2025) gives the same rule for its national database. Each non-detect needs a detection limit type, a detection limit value and a unit.

Apply the same QA/QC rules to every result

Quality assurance and quality control (QA/QC) is the set of checks that shows whether a result is reliable enough to use. The EPA describes two steps of QA/QC in its guidance on data verification and data validation (QA/G-8, 2002):

  • Data verification is “the process of evaluating the completeness, correctness, and conformance/compliance of a specific data set against the method, procedural, or contractual requirements”. For example, did the lab analyze every sample on the chain-of-custody form, with the correct method? A chain-of-custody form is the record of each person who held a sample.
  • Data validation is “an analyte- and sample-specific process” that identifies “the analytical quality of a specific data set”. For example, is a zinc result usable if a blank sample in the same lab batch also contains zinc? A blank is a sample of clean water that goes through the same steps as the real samples. A lab batch is a group of samples that the lab analyzes together.

The rules for your project are in your quality assurance project plan (QAPP). The EPA sets the contents of a QAPP in its Quality Assurance Project Plan Standard (April 2024). Our article on water quality monitoring technologies explains how to plan a program and its QAPP. In a cloud data system, each rule in the QAPP becomes code. The code then checks every result in the same way, on the day that the result arrives.

Typical rules for water samples include:

  • Duplicates. A field duplicate is a second sample from the same place and time. A lab duplicate is a second analysis of the same sample. The relative percent difference (RPD) shows how much the two results differ. The British Columbia (BC) Field Sampling Manual sets a limit of 20% for lab duplicates at or above five times the detection limit. For field duplicates, the manual says that an RPD above 20% shows a possible problem and above 50% a definite problem.
  • Blanks. If the lab finds an analyte in the blank, the analyte can come from contamination.
  • Hold times. A hold time is the maximum time between the collection and the analysis of a sample. A late analysis can give a wrong result.
  • Ion balance. The total charge of the positive ions (cations) must be almost equal to the total charge of the negative ions (anions), in milliequivalents per litre. A large difference shows a missing analyte or an error.

When a result does not pass a rule, flag the result. Do not delete the result. Record the rule, the reason and the date with the flag. A reviewer can then see why the result is not in the trend analysis.

Check every result against guidelines on arrival

In Canada, most monitoring programs compare results with the Canadian Water Quality Guidelines of the Canadian Council of Ministers of the Environment (CCME). CCME is the council of federal, provincial and territorial environment ministers. Some provinces publish their own guidelines, such as the BC approved water quality guidelines. Your permit can also set limits for each discharge point.

Many guidelines are not a single number. The guideline changes with the chemistry of the water. The CCME long-term guideline for cadmium (2014) is 10(0.83 × log[hardness] − 2.46) µg/L. Hardness is the concentration of calcium and magnesium in the water, as mg/L of calcium carbonate. The formula applies between 17 and 280 mg/L of hardness.

The formula gives different limits for the same result:

  • At a hardness of 50 mg/L, the guideline is about 0.09 µg/L.
  • At a hardness of 100 mg/L, the guideline is about 0.16 µg/L.
  • A cadmium result of 0.12 µg/L is an exceedance in the first sample, but not in the second.

Other guidelines use more than one cofactor. A cofactor is an analyte that you need to calculate the guideline for a different analyte. The BC long-term guideline for dissolved zinc uses hardness, pH and dissolved organic carbon. The CCME guideline for ammonia changes with pH and temperature.

With a PDF, a person must find the hardness result for each sample and calculate each guideline by hand. A cloud data system takes the cofactors from the same sample and calculates the guideline for each result. The system then sends an alert to the manager when a result exceeds a guideline. Also record which version of each guideline the system used. Guidelines change, and a report from 2024 must stay correct after a guideline changes in 2026.

Stream sensor data with automatic checks

A sensor in the water can measure temperature, pH, dissolved oxygen or turbidity every few minutes. Telemetry sends each reading to the cloud by a cellular or satellite link. Our article on Internet of Things (IoT) sensors for water quality monitoring describes these sensor networks. A sensor that makes a reading every 5 minutes makes 105,120 readings each year. Nobody can check that many readings by eye.

Automatic tests can do this work. QARTOD (Quality Assurance of Real-Time Oceanographic Data) is a multi-agency program that started in 2003. The US Integrated Ocean Observing System (IOOS) of the National Oceanic and Atmospheric Administration (NOAA) manages the program. QARTOD publishes test manuals for dissolved oxygen, pH, nutrients, temperature and salinity. The tests include:

  • Gross range. Is the reading inside the range that the sensor can measure?
  • Climatology. Is the reading normal for this place and season?
  • Spike and rate of change. Did the value change too quickly from the last reading?
  • Flat line. Did the sensor repeat the same value for too long?

Each test gives a flag. The flags are 1 for a pass, 2 for not evaluated, 3 for suspect, 4 for a fail and 9 for missing data. Keep the raw reading, the flag and any correction in separate database columns. Also show the status of each record. The USGS marks its new data as provisional. The USGS provisional data statement says that provisional data can change after a full review. Your users must see which values are provisional and which values a reviewer approved.

Combine field results with satellite data

Satellite images show conditions across a full lake or estuary, between the sample stations. The images are too large to send by email. Most satellite archives are now in the cloud:

  • Copernicus is the Earth observation program of the European Union. The Copernicus Data Space Ecosystem held more than 78 petabytes (PB) of data online in 2024. One petabyte is one million gigabytes. Users can process the images from the Copernicus Sentinel satellites on the platform, without a download.
  • Landsat is the satellite program of the US National Aeronautics and Space Administration and the USGS. The USGS keeps the Landsat archive on AWS. New Landsat scenes arrive every day.

Process the images next to the archive. Then store the satellite estimates in the same system as your field results. Keep each match-up, which is a field sample and a satellite estimate for the same place and time. The match-ups show how well the satellite estimates agree with the lab results. Our article on monitoring technologies describes what satellites can measure in water, with a satellite project at the Port of Montreal as an example.

Give every user the same current data

Each user must see the same current data, but not every user needs the same access. Give each user a role. A field technician adds field data. A data manager approves flags. A regulator reads the data but cannot change the data.

Some users need the data in their own systems. Open standards let different systems exchange data without custom code. The Open Geospatial Consortium (OGC) is an international standards organization for geospatial data. OGC publishes these standards for sensor and water data:

  • The Sensor Observation Service (SOS) 2.0 is a standard for sensor data. The standard “defines a Web service interface which allows querying observations, sensor metadata, as well as representations of observed features”.
  • WaterML 2.0 is “a standard information model for the representation of water observations data”. Our guide to water resources management software explains how this standard connects station data to basin models.

In the United States, the EPA uses the Water Quality Exchange (WQX) format. The EPA loads WQX data into the Water Quality Portal. The portal holds more than 430 million records from more than 1,000 programs, organizations, Tribes and agencies (EPA, January 2026). Our article on interoperability standards explains these standards in more detail.

Also decide where your data lives. AWS has two regions in Canada: Canada (Central) since 2016 and Canada West (Calgary) since 2023. Microsoft Azure has Canada Central in Toronto and Canada East in Quebec. The Government of Canada Guideline on Service and Digital says that federal data at the Protected B level and above should stay in Canada. Protected B is a Government of Canada security category for sensitive information. If you work with a federal department, ask which data category applies.

Record every change to the data

An audit trail is a log of each change to the data: who made the change, when and why. Without an audit trail, nobody can explain why a number in a report is different from the number in the lab file.

A cloud data system gives three records:

  1. Every version of every file. When the lab sends a corrected EDD, the system keeps both files. You can reverse the first import, which deletes its data from the database. Then load the corrected file. The first file stays in the file store.
  2. A log of each edit and flag. Each change to a value or a flag has a user name, a date and a reason.
  3. Reports from saved queries. A saved query gives the same table when you run the query again next year.

Backups alone are not sufficient. Microsoft says that storage redundancy protects against hardware failure, but not against operations that change the data. If a person deletes a value by mistake, all copies of the data lose that value. Versions and an audit trail let you recover the value.

Limits of the cloud

The cloud does not solve every problem. Plan for these limits:

  • Cost. You pay for storage, computing and data transfer each month. An egress fee is a fee to move data out of a cloud. The Competition and Markets Authority (CMA) is the competition regulator of the United Kingdom. In March 2026, the CMA reported on its 2025 investigation of cloud services. The investigation “identified limits to customer choice as a result of data egress fees and barriers to interoperability”. Examine the costs to export your data before you choose a provider.
  • Lock-in. Lock-in is a high cost or effort to move your data to a different provider. Keep your raw files in open formats, and use open standards for exchange. Then you can move the data to a different system later.
  • Data sovereignty. Data sovereignty is the control of a country or a community over its data. A Canadian region does not protect you from all legal risk. A Government of Canada white paper says that “data residency does not mitigate against the application of foreign laws”.
  • Remote sites. Many mine and field sites have a slow or unreliable internet connection. A data logger, which is the device that records the sensor readings, must keep readings on site and send the readings when the connection returns.
  • Bad samples. A cloud data system cannot correct a contaminated bottle or a broken sensor. The rules only find the problem sooner.

How EnviroData applies these practices

RoundTable Environmental Informatics (RTEI) leads the environmental informatics practice at Hatfield Consultants. We develop and operate EnviroData, a cloud platform for environmental data. The platform started in 2012. Mines in British Columbia and oil sands operators use EnviroData for their monitoring data. The EnviroData documentation describes how the platform applies the practices in this article:

  • Lab files. The commercial labs ALS and Bureau Veritas can send results in the Hatfield EDD format. EnviroData loads each file automatically. First, EnviroData checks the file against a schema, which is a defined list of columns and data types. An error stops the import, and a warning needs a review.
  • Every version. The raw data repository keeps each uploaded file and its versions. An import events page lists each import, re-import and rollback. A rollback deletes the data of one import from the database.
  • One analyte list. EnviroData matches the analyte names from each lab and converts units automatically. For example, one lab reports bicarbonate in µg/L and a different lab in mg/L.
  • QA/QC flags. A data manager marks results as verified and accepted, preliminary or rejected. A rejected result stays in the database, but reports do not show the result.
  • Guidelines. EnviroData includes CCME, BC and Canadian drinking water guidelines. The platform calculates each guideline from cofactors in the same sample, such as hardness, pH and temperature.
  • Alerts. EnviroData sends an email after each import, and also when a result exceeds a selected guideline.
  • Continuous data. Sensor records come from AQUARIUS, time-series software from the company Aquatic Informatics. The records appear next to the lab results for each station.
Line graph of fluoride and total phosphorus results in mg/L from June 2017 to June 2018. A dashed line marks the CCME fluoride guideline at 0.12 mg/L, and several fluoride results are above the line.
Lab results at one station in EnviroData, from June 2017 to June 2018. The light blue diamonds are fluoride results, and the dashed line is the CCME guideline for fluoride (0.12 mg/L). The dark squares are total phosphorus results. Both analytes use the same mg/L scale. Screenshot: EnviroData documentation, Hatfield Consultants, cropped.

A checklist for your water quality data in the cloud

Use this checklist to examine your current program:

  1. Ask your lab to send an EDD with each report.
  2. Keep each original lab file without changes, and keep every version.
  3. Store each non-detect as a flag and a detection limit, not as zero.
  4. Write the QAPP rules for duplicates, blanks and hold times as automatic checks.
  5. Calculate each guideline from the cofactors in the same sample, and record the guideline version.
  6. Apply QARTOD tests to sensor data, and keep the raw readings.
  7. Give each user a role, and share data through open standards.
  8. Choose a cloud region in Canada, and make sure that you can export all of your data.

Sources

Next steps

Do you still receive your water quality results as PDFs by email? A cloud data system can load these results, check the results against your QAPP and guidelines, and alert you to each exceedance. RTEI designs and operates these systems for mines, energy operators and government agencies. Contact us to replace emailed lab reports with one checked data system.