Top 10 open-source tools for environmental data science

By · Updated

A Hatfield field technician in Alberta connects sensor cables to the data logger box of a weather station tower that lies in the grass

In short: Environmental informatics turns field data, lab results, sensor records and satellite images into answers that people can trust. Open-source tools do most of this work. A database such as PostGIS keeps the monitoring data. Python, R and QGIS analyze the data and make maps. Git and Jupyter record each step, and Docker keeps the same software environment. Then a reviewer or a regulator can run the analysis again and get the same result. The software is free to use, but staff time, support and some related services are not free.

The 10 tools at a glance

Each tool has one main job in the environmental data chain. The data chain starts with a field sample or a satellite image and ends with a report, a map or a decision. The table gives the job, the licence and one example of environmental use for each tool. This list includes tools that environmental teams use often, that have active maintainers and that use open licences. The sections after the table explain each tool.

ToolMain jobLicence or statusExample of environmental use
1. PostgreSQL and PostGISKeep monitoring data and query it by locationPostgreSQL Licence, GPL v2 or later (PostGIS)Find all water samples from stations in one watershed
2. GDALRead, write and convert spatial file formatsMITEnvironment and Climate Change Canada tutorials save weather data to files with GDAL
3. PythonClean, analyze and model dataPSF License (Python), BSD-3-Clause (pandas, GeoPandas, rasterio)Natural Resources Canada tutorials read elevation and land cover data
4. RStatistics, trend tests and graphsGPL (R, terra), GPL-2 or MIT (sf)The main analysis tool in 66.9% of ecology articles in 2023
5. Xarray and DaskAnalyze large gridded data, such as climate model outputApache-2.0 (Xarray), BSD-3-Clause (Dask)Core libraries of the Pangeo geoscience community
6. QGISMake maps and do spatial analysis on the desktopGPL v2 or laterShow Canadian weather layers from the GeoMet service
7. STAC and openEOFind and process satellite imagesOpen standards of the Open Geospatial ConsortiumThe STAC API of Natural Resources Canada, Copernicus openEO
8. JupyterKeep code, results and notes in one documentBSD-3-ClauseThe analysis environment in GEO Analytics Canada
9. GitRecord each change to codeGPL v2Show which change in a script changed a result
10. DockerRun the same software environment on each computerApache-2.0 (Docker Engine)Pangeo images with Xarray, Dask and Jupyter installed
Ten open-source tools for environmental data. Licences are from each project’s licence page or package page, November 2026. GPL is the GNU General Public License.

Tools that store and convert the data

1. PostgreSQL and PostGIS: a home for monitoring data

PostgreSQL is an open-source database. PostGIS adds spatial data types and spatial functions to PostgreSQL. With PostGIS, a database can answer a question such as “Which samples come from stations less than 5 km downstream of the mine?”.

Environmental monitoring data needs a database for three reasons:

  • Context. The database links each result to its station, its sample date and its laboratory.
  • Control. The database prevents conflicts when two people change the same record.
  • One source. Python, R, QGIS and web maps can all read the same data from PostGIS.

PostgreSQL is common outside science too. In the 2025 Stack Overflow developer survey, 55.6% of the respondents said that they used PostgreSQL. The survey asked software developers, not environmental scientists.

PostgreSQL uses the PostgreSQL Licence, which is similar to the BSD and MIT licences. PostGIS uses the GPL, version 2 or later. The PostGIS project released PostGIS 3.7 on October 30, 2026. It works with PostgreSQL 14 to 19.

For analysis of large files on one computer, use DuckDB. DuckDB is an analytical database that runs inside your program or notebook, without a server. Its spatial extension adds spatial functions, and DuckDB reads and writes GeoParquet files directly.

Use PostGIS for a database that many people and systems share. Use DuckDB for fast analysis of large files. DuckDB uses the MIT licence. Our article on cloud-native file formats explains GeoParquet and the tools that read it, such as DuckDB.

2. GDAL: the translator between data formats

GDAL (Geospatial Data Abstraction Library) reads and writes many raster and vector formats. Raster data is a grid of cells, such as a satellite image or an elevation model. Vector data is points, lines and polygons, such as sample stations, streams and lease boundaries. The GDAL documentation lists the raster formats and the vector formats.

Many analysts never use GDAL directly, but their tools use it. QGIS, the Python package rasterio and the R packages sf and terra all read files through GDAL. The GDAL command-line programs are useful for conversions that you must do many times. Environment and Climate Change Canada (ECCC) gives an example. The open data tutorials of the Meteorological Service of Canada (MSC) show how to save weather and climate data to a file with GDAL.

GDAL uses the MIT licence. Some optional parts of a GDAL installation can have different licences.

GDAL can be difficult to install, because it uses many other C and C++ libraries. Examples are PROJ and GEOS, libraries for map projections and geometry. Terrio is a new open-source alternative, written in the Rust programming language. It reads, writes, converts and reprojects many of the same formats without these C libraries. Terrio does not try to replace all of GDAL, and its interface can change before version 1.0.

Terrio is in early development. Test it on your own data before you use it in production. For regulated work, GDAL has a longer record. Our article on cloud-native file formats compares the speed of Terrio and GDAL.

Tools that analyze the data

3. Python: a general language for data

Python is a general programming language. In the 2025 Stack Overflow developer survey, 57.9% of all respondents said that they used Python. These libraries do most of the environmental data work in Python:

  • pandas for tables, such as lab results and logger records
  • GeoPandas for vector data, such as stations, catchments and spill locations. GeoPandas does not read raster data.
  • rasterio and rioxarray for raster data, such as satellite images and elevation models
  • scikit-learn for machine learning, such as land cover classification

Natural Resources Canada (NRCan) publishes Python tutorials for its datacube. A datacube is a set of satellite and elevation layers on a common grid, ready for analysis. The tutorials use rasterio and rioxarray to read elevation and land cover data from the cloud. Python is a good choice for teams that must also build data pipelines, web services or machine learning models.

4. R: a language for statistics

R is a language for statistics and graphics. It is the main analysis tool in ecology. Gao and colleagues examined 125,494 articles in 40 ecology journals. R was the main analysis tool in 42% of the articles. This share increased from 10.3% in 2008 to 66.9% in 2023.

For spatial data, use sf for vector data and terra for raster data. The terra package also reads vector data. It replaces the raster package, as the CRAN page for raster says. CRAN removed rgdal, rgeos and maptools in October 2023. You cannot install these three packages from CRAN now, so old scripts that use them need changes.

RoundTable Environmental Informatics (RTEI) leads the environmental informatics practice at Hatfield Consultants. In 2023, Hatfield made a set of R tools for the British Columbia Ministry of Forests. The tools check the quality of data from tipping bucket rain gauges. Our article on R and Python for environmental data analysis compares the two languages with example scripts.

5. Xarray and Dask: data larger than memory

Climate model output and satellite time series have many dimensions. They have a value for each latitude, longitude and time, and sometimes for each depth. Xarray gives a name to each dimension. You can select “July 2025” or “depth 0 to 10 m” by name, not by position in an array. Xarray reads NetCDF and Zarr, two common formats for this data.

Dask divides a large calculation into small parts. It runs the parts in parallel on a laptop, a server or a cloud cluster. With Dask, Xarray can analyze a dataset that is larger than the memory of the computer.

The Pangeo community uses Xarray, Dask and Jupyter together for “open, reproducible, and scalable science”. Our comparison of Spark and Dask for environmental data explains when each tool is better.

6. QGIS: maps and spatial analysis on the desktop

QGIS is a desktop geographic information system (GIS). Use it to examine data, make maps for reports and do spatial analysis without code. QGIS reads data from PostGIS, from files and from web map services. For example, ECCC gives instructions to add its MSC GeoMet weather layers to QGIS. The QGIS Python console and graphical models can repeat a workflow.

The QGIS project released QGIS 4.0 in March 2026. The QGIS roadmap shows that version 4.4 (November 2026) is the next long-term release (LTR). An LTR gets corrections for a longer period. It suits organizations that must use the same version for a year or more. Until 4.4 replaces it, 3.44 is the LTR on the QGIS download page.

Our article on cloud-native geospatial file formats shows how QGIS reads data directly from cloud storage.

Tools that find and process satellite data

7. STAC and openEO: open standards for Earth observation

Earth observation archives are too large to download. Two open standards let you find and process only the images that you need:

Our GEO Analytics Canada platform uses these open standards. It gives each user a JupyterLab environment, a private code repository and a container registry (a private store for container images). In 2015, Hatfield also made a plugin for the open-source Sentinel-1 Toolbox of the European Space Agency. The plugin detected floating water hyacinth on Lake Victoria in Africa. The toolbox is now part of SNAP, which uses the GPL version 3.

Tools that make the analysis repeatable

A regulator, a client or a peer reviewer can ask how you got a result. With these three tools, you can show the actual steps.

8. Jupyter: code, results and notes in one document

A Jupyter notebook keeps code, results, graphs and text in one file. JupyterLab is the current interface for notebooks. Notebooks are good for exploration, for training and for reports that show each step of an analysis.

Notebooks are not a good place for code that must run every day. Move tested code from a notebook into a script or a package. Then the code is easier to test and to reuse.

9. Git: a record of each change

Git records each change to code and text files: who made the change, when and why. If a new version of a script gives a different result, Git shows what changed. Platforms such as GitHub and GitLab keep Git repositories online. Teams can examine a change before they accept it.

Git is not a good tool for large data files. Our guide to versioning large environmental datasets explains other tools for data.

10. Docker: the same software on each computer

A container is a package that holds an application and all the libraries that it needs. A container image that works on the laptop of an analyst works the same way on a server or a cloud platform. The Pangeo project publishes container images with Xarray, Dask and Jupyter already installed.

The engine that runs containers is open source. Docker Engine and its Moby project use the Apache 2.0 licence. Docker Desktop is different. According to the Docker pricing FAQ, government organizations need a paid subscription for Docker Desktop. Companies with 250 or more employees, or US$10 million or more in annual revenue, also need one. Podman is an open-source alternative that runs the same container images.

Other open-source tools to know

These tools are not in the top 10, but environmental teams often need them:

  • Leaflet and MapLibre GL JS. These JavaScript libraries put interactive maps on web pages. Leaflet 1.9.4 is the stable version, and version 2.0 is in beta. Our guide to environmental dashboards shows how maps help managers.
  • InVEST. This suite of free, open-source models maps and values ecosystem services, such as water purification and coastal protection. The Natural Capital Alliance at Stanford University makes InVEST.

Free software still has costs

Open source means that anyone can read, use, change and share the source code, under the terms of its licence. It does not mean that the software costs nothing to operate. Plan for these costs:

  • Staff time to install, update and support the tools
  • Servers or cloud computing to run the tools
  • Paid products around some tools, such as Docker Desktop for governments and large organizations
  • Licence conditions. Copyleft licences, such as the GPL, require you to share the source code of a changed version that you distribute. Permissive licences, such as MIT, BSD and Apache 2.0, have fewer conditions.

Before you replace a proprietary tool

If you replace a proprietary tool with an open-source tool, compare more than the licence cost. Make sure that the replacement does the same functions. Estimate the work to integrate the replacement and to move your data and workflows to it. Identify the team that will maintain it.

A replacement can also remove features that users need. For example, a basic open-source container registry can have fewer features than a complete registry, such as user management, security scans and a dashboard. Compare the features before you replace a tool, not after.

How to choose tools for your project

Start with the decision that the data must support, not with the tool. Then answer these questions:

  1. Who will use the results: analysts, managers or the public?
  2. Which languages and tools does your team know now?
  3. Does each licence permit your use, for example commercial or government use?
  4. Is each project active? Examine the date of the last release and the number of maintainers.
  5. Can you move your data and code to different tools later? Open formats and OGC standards make this easier.

Our introduction to environmental data science explains the steps of a typical analysis.

Sources

Next steps

Most environmental data teams need only part of this list. Start with a database for your monitoring data and one analysis language that your team knows. Use Git from the first day. RTEI designs and operates environmental data systems with these tools. Contact us to choose the tools for your environmental data.