Basic Example of Saline Intrusion Modeling with SEAWAT and Flopy - Tutorial

SEAWAT is a model developed by the USGS for the simulation of three-dimensional variable density groundwater flow with solute and heat transport. The software is based on MODFLOW-2000 and MT3DMS and on its latest version it can simulate viscosity variations and provide faster execution times. SEAWAT is implemented on Flopy, the Python library to build, run and represent MODFLOW models. This tutorial has the complete workflow to create and represent a basic example of saline instrusion with SEAWAT and Flopy on a Jupyter Notebook.

Read More

Determination of Flow Direction Vectors from a MODFLOW Model with Python and Flopy - Tutorial

Groundwater flow direction representation is useful to understand the actual and predicted conditions of the groundwater flow regime. The arrow direction and magnitude give a quick perspective of the main groundwater flow directions and the interconexion between sources and discharge points. This tutorial show the complete workflow to determine the flow directions from a MODFLOW model done with Model Muse. The scripting insert a background image, georeference the model from parameters exported as comments, and export the resulting figure as a PNG file. The tutorial is done in Python 3 on a Jupyter Notebook.

Read More

How to make a Piper Diagram in Python - Tutorial

A Piper Diagram is an effective graphic procedure to segregate relevant analytical data to understand the sources of the dissolved constituents in water. This procedure was born under the statement that most natural waters contain cations and anions in chemical equilibrium. It is assumed that the most abundant cations are calcium (Ca), magnesium (Mg) and sodium (Na). The most common anions are bicarbonate (HCO3), sulphate (SO4) and chloride (Cl).

The Piper diagram can be made by free and commercial desktop software, however in this tutorial we have generated the Python scripts and working procedure to create a Piper Diagram from values stored in a working spreadsheet.

Read More

NDVI calculation from Landsat8 images with Python 3 and Rasterio - Tutorial

Satellite images are georasters, these images are a regular array of columns and rows (a matrix per band) with a georeferenciation. Python is a programming and data analysis language very versatile for the matrix algebra with the Numpy library, however there was no efective and simple way to process a georaster until the development of the Rasterio package.

Rasterio is a library to open, write, explore and analyze georasters in Python. The library uses GeoTIFF images along with other formats and is capable to work with satellite images, digital elevation models, and drone generated imagery.

This tutorial show the complete procedure to analyse the NDVI from a Landsat 8 image with Python 3 and Rasterio. The scripting and representation was performed on a interactive enviroment called Jupyter Notebook, finally the result georaster was opened in QGIS and compared with some background images.

Read More

Sentinel2 images exploration and processing with Python and Rasterio - Tutorial

Rasterio is a Python library that allows to read, inspect, visualize and write geospatial raster data. The library uses GeoTIFF and other spatial raster formats and is capable of working with satellite imagery, digital elevation models, and drone imagery data products. Rasterio allows you to import a single band or multiband geospatial raster in a interactive Python enviroment as Jupyter notebook, the library can keep the “duality” of the geospatial raster, that means, it can handle the location and resolution parameters as well as the matrix values of the gridded elements.

This tutorial shows some basic procedures to explore a multiband Sentinel 2 granule with Python 3 and Rasterio on a Jupyter Notebook. The tutorial shows the commands to identify the raster array dimensions and the geospatial referencing parameters, make representation of each visible band and export band composites as true color and false color geoespatial rasters in Tiff format.

Read More

Elevation Model Conditioning and Stream Network Delimitation with Python and Pysheds - Tutorial

Digital elevation models (DEMs) from satellite interpretation (Aster DEM or Alos Palsar) come with “sinks” from errors in the elevation interpretation, raster resolution or reprojection. There is a need to correct those rasters in order to interpret the hydrological features. This tutorial show the process to condition a digital elevation model (DEM) dowloaded from a NASA/USGS server (gdex.cr.usgs.gov) with the Pysheds library of Python. The tutorial was done on a Jupyter Notebook, input files and scripts are attached on the final part of the post.

Read More

How to calculate a Terrain Volume with QGIS3 - Tutorial

Calculate volumes is an easy task on QGIS 3 with the use of SAGA GIS tools under the Processing toolbox. Raster volumes can be calculated above or below a base level and two other specific calculation, input rasters need to be in UTM. These type of calculation is useful for earth movement, reservoir design, risk analysis and other spatial analysis.

The tutorial presented on this post shows the complete procedure to calculate the raster volume above a base level on QGIS3.

Read More

Watershed and Stream Network Delimitation with Python and Pysheds - Tutorial

What would happen if we shift our GIS geoprocessing to Python? What would happen if we treat our raster and vector spatial data as objects and variables on a Python 3 script? Then we can ask ourselves if it is neccessary to reinvent the wheel, it is necessary to change a workflow that already work on a GIS software.

There is a simple answer to this dilemma: More control

Working with Python give us more control on the geoprocessing itself since we leave the Graphical User Interface (GUI) with its icons, buttons and dialog boxes. With Python running on a Jupyter Notebook, we can link with specific files, define geoprocess and it options, make plots of draft and final data, and export results to vector/raster SIG formats. There are other advantages of spatial analysis in Python which are the reproducibility and the processing speed.

Read More

Modelling of a karst conduit system using Model Muse and MODFLOW-CFP - Tutorial

Karst systems are characterized by underground drainage systems formed by the dissolution of soluble rocks. The behaviour of these systems is hard to be conceptualized due to the uncertainty in the location and geometry of these underground caves and its connection with the porous media.

In order to be able to model these systems, the Conduit Flow Process (CFP) package (developed by the United States Geological Survey – USGS) can simulate turbulent ground-water flow by coupling the groundwater flow equation with formulations for a discrete network of cylindrical pipes.

The following tutorial explains how to set up a simple karst conduit system in a previously existing MODFLOW model and the analysis of the results.

Read More

Available QGIS tools and plugins for hydrological modeling - Review

QGIS is viewed as a software for the spatial data processing to create the input data for a hydrogeological modeling as HEC-HMS or RS-Minerve. But, are there any hydrological software that can run on the QGIS interface? There are some half answers and complete answers that we will answer in this article.

Read More

A new version of the FREEWAT plugin (v.1.1.1) for QGIS is now available for download!

Dear FREEWAT Users,

We wish to inform you that a new version of the FREEWAT plugin (v.1.1.1) is available since December the 4th 2018.

Besides fixing some minor bugs (thanks to Iacopo Borsi – TEA SISTEMI SpA) notified by the FREEWAT Users, this release includes:

  •  an enhancement of the Multi-Node Well package (MNW2) of MODFLOW (thanks to Giovanna De Filippis – Scuola Superiore Sant’Anna);

  •  two new packages for solute exchange with surface water bodies (e.g., rivers, lakes). This is now accomplished in FREEWAT through the integration of the Streamflow Transport (SFT) and Lake Transport (LKT) packages of MT3D-USGS (thanks to Giovanna De Filippis – Scuola Superiore Sant’Anna).

A list of the bugs fixed is available in the plugin folder.

Read More

2D Contaminant Transport Modeling with MODFLOW, MT3D-USGS and Flopy

Making hydrogeological models can take a long time, from construction, visualization of results and calibration. It is important to use tools that can optimize these tasks and allow the time saved to be used in the analysis of the system.

In this opportunity we will use Flopy to replicate a 2D transport model from a previous post. Flopy is a versatile set of Python scripts which can be used to run MODFLOW and MT3D, amongst other MODFLOW-related groundwater programs in a simple and efficient way. It will be seen how useful this tool is to automate the process of creating groundwater models since modifications of the boundary conditions can be done just by changing the text file.

In addition, MT3D-USGS will be used for the transport modelling. It is an updated release of the groundwater solute transport code MT3DMS, which has new transport modeling capabilities that provide a greater flexibility in the simulation of solute transport and reactive solute transport.

Read More

Setting Up Heterogeneities and Remediation Schemas for Contaminant Plumes with MODFLOW + MT3D

Aquifers can be porous, fractured or karstic. Due to the geological setup and processes related to the formation of the porous media, these acuifers can present a high degree of heterogeneity that affect/impact the groundwater flow patterns and contaminant transport and distribution.

Contaminant plumes for puntual/aerial sources interact with aquifer heterogeneities and anisotropies. Understanding and conceptualizing the distribution of the different hydrogeological units and their properties on the subsurface is a challenge for hydrogeologist, numerical modelers and remediation specalists.

Read More

Basic Example of Contaminant Plume Modeling with MT3D-USGS and Model Muse

MT3D-USGS is the one of the latest software for contaminant transport developed by the USGS. The initial release was on 2016 as a updated release of MT3DMS. The software has new capabilities for transport modeling coupled with the current MODFLOW packages, it can model unsaturated-zone transport, reactions and remediation schemas.

This transport modeling code is implemented in the pre and postprocessing software for groundwater modeling Model Muse, also developed by the USGS. This tutorial show a basic example of contaminant transport from a point source in a groundwater flow regime controlled by regional flow and discharge to ponds and rivers.

Read More

Spatial Manipulation of a Autocad DXF File with Python3 and GeoPandas - Tutorial

In GIS the objects are related to a spatial location. Usually there is no need to modify a location since spatial data comes from field work or other surveys. When we work with CAD files as DXF (Autocad Drawing Exchange Format) files, sometimes the spatial data is available as a layout view and not as a model view. The layout data is on local coordinates, and at specific scale therefore we need to scale and translate the spatial data to “return” it to its original spatial location and extension.

We tried to make this job with Inkscape and QGIS3, but we were unsuccessful to complete the scale and translation. While working with the DXF in Inkscape, each object selection, layer order combination, object ungrouping took several minutes and the results were poor. At the lowest motivational stage of this spatial request, we thought that it might me something in Python that can be useful for this.

On a internet search, we found that the spatial version of the Pandas data analysis library: Geopandas was capable not only to open the DXF files, but also to scale, translate, and filter spatial data according to specific criteria. Geopandas is capable to export spatial data in different formats and to plot data interactively on a Jupyter Notebook.

This tutorial shows the procedure to open a DXF file in Python pandas, perform scale and translation to place the spatial features on their original position, filter unwated objects on the layout view and export results to QGIS3 as shapefile.

Read More

How to georeference a Raster/Image in QGIS3 - Tutorial

Sometimes spatial information could only be found on paper or as an image, that is why the process of georeferencing the rasters/images is key for the extraction of spatial data from a document.

In QGIS3 the georeferencing process uses the GDAL library. The Georefencer option appears on the Raster dropdown menu in the main toolbar. Georeferencing process in QGIS3 is almost the same than in former QGIS versions. This tutorial shows the whole procedure to georeference a raster file in PNG format on QGIS 3.4 Madeira.

Read More
Smiley face

Subscribe to our free e-newsletter for tutorials, articles, webminars, courses and more.  

Groundwater Quality Analysis with QGIS3 Tutorial - Case Arsenic in California

Physical process on the surface and underground flow regime are spatially and temporal distributed, therefore the use of GIS software is key to understand the different patterns in groundwater flow and quality and the interaction with surface flow, geology and anthropogenic factors.

QGIS is a open geographical information system (GIS) software that brings a variety of tools for the thematic spatial representation of the groundwater quality components. This tutorial shows a whole exercise of data preparation, color based representation, ruled based representation of points above standars, spatial interpolation and contour representation.

Read More

Basic Example of Seawater Intrusion Modeling with MODFLOW, Model Muse and SWI2

Seawater intrusion is an issue in coastal aquifer management especially on arid environments. Overexplotation of groundwater resources by high production wells on intensive irrigation schemes could lead to an intrusion of saline water from sea and an impact to the quality of water sources.

Available options to assess the behaviour and impact of seawater intrusion are limited in both open source and commercial software; there is also a need of highly skilled groundwater modelers to understand the complex model setup and model output that can provide useful information about the groundwater flow regimen and the risks to water quality posed by seawater intrusion.

Seawater Intrusion Package 2 (SWI2) is a modeling software developed by the USGS and coupled on MODFLOW-2005. SWI2 allows three-dimensional variable-density groundwater flow and seawater intrusion in coastal aquifer systems. This tutorial deals with a basic example of the implementation of SWI2 on a MODFLOW model contructed on Model Muse. The tutorial show the whole procedure of model setup, datasets implementation, conceptualization of boundary conditions and result evaluation.

Read More

Modeling Coastal Aquifer in MODFLOW / ModelMuse and QGIS - Tutorial

Assessing the groundwater flow regime in coastal aquifers is a challenge for numerical modelers. In order to have a complete set of parameters and input data for a valuable numerical simulation we need to compile several hydrogeological studies, reconstruct datasets and proof the accuracy of hydraulic tests. Still some parameter would be missing but the experience and criteria of the groundwater modeler would achieve adequate simulations and predictions required by an adaptive sustainable groundwater resources management.

Read More

Basic Example of the River Package (RIV) in MODFLOW with Model Muse

Aquifer modeling requires understanding and expertise on the different boundary conditions available to represent the physical process related to the groundwater flow regime on determined spatial and temporal discretizations. MODFLOW has a set of boundary conditions of specified head, specified flux and mixed. There is a particular boundary condition created for the representation of the interaction between a river and the surrounding aquifer: the River Package (RIV). This tutorial show the implementation procedure of a River Package (RIV) on a regional model with a discussion on the model output and water balance.

Read More