Example of Seawater Intrusion Modeling with Modflow 6, Model Muse and Flopy - Tutorial

MODFLOW 6 implements the Buoyancy package for the simulation of variable density and seawater intrusion cases. The tools are implemented in the Python package Flopy, however the workflow has changed substantially from the previous models of flow and transport. We have developed an applied case seawater intrusion model on a regular geometry model constructed with Model Muse for flow and Flopy for transport.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

What to do when your MODFLOW MT3D contaminant plume doesn’t migrate?

This is a problem that every hydrogeologist - numerical modeler has faced many times over his/her professional career independently from the theoretical background and skills with the code, graphical user interface or Python library.

We don’t know why groundwater “flows” and a contaminant plume “migrates” when both move on the aquifer system. After you construct you model geometry, setup the flow boundary condition, specify your transport package, define your contaminant sources, run your MODFLOW flow model and then run your MT3D model (or even your MT3DMS model) you will find that there is no plume, none, nada, nichts.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Open source groundwater software besides MODFLOW - Updated July 2023

A special concern arises from the gap between the stage of development of open source groundwater software and the actual capabilities of the common groundwater modelers (we mean, the main group of modelers). Even though we are passionate about software we don’t find the time or the right momentum to have a real experience with those codes.

From our research, we have listed the top open source groundwater software with a brief summary of the capabilities and useful links. We have to mention that there are some packages that can simulate groundwater flow in software like OpenFoam; however, those variants are not listed here.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Is glTF an alternative to VTK for the representation of voronoi mesh Modflow6 models?

Representation of geospatial objects in 2D are well covered by the GIS software and standards where we have powerful tools and interchangeable spatial files, however when we work on 3D objects the universe of software and tools is like a jungle with a wide variety of issues. We will always consider 3D as the ultimate representation of an object using a computer, by sure the holograms and augmented reality can improve the way we interact with a object geometry, but since we are not in the common near future we will give much effort to the representation of these objects in our computer screens, tables and cellphones.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to reproject single and multiple rasters with Python and Rasterio - Tutorial

Raster reprojection is a common task on GIS analysis however to do it with only Python commands has some challenges. We have done an applied example of raster reprojection for single and multiple rasters from WGS 84 UTM to WGS 84 Geographic. The codes work on monoband and multiband rasters and can reproject from to any projection by specifiyin it EPSG code.

The tutorial is done on a conda enviroment that has the geospatial libraries installed. You can set up the environment by following this tutorial:

https://hatarilabs.com/ih-en/how-to-install-python-geospatial-libraries-gdal-fiona-rasterio-etc-under-a-conda-env-in-windows

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Tutorial to do a tutorial in open source software for water resources

Let's have a look at the tutorial concept in its real dimension. A tutorial is a period of instruction that provides practical information about a specific topic. The tutorial can be given by an individual or institution and has a goal to teach you something or master you in something you didn't know before.

However in water resources software, we don’t see the tutorial as a part of the documentation or a key part of the learning experience. The tutorial is in fact an essential part needed to understand the whole capabilities of the software in practical exercises. It´s true that most software delivery exercises of different applied cases, but we can’t say they are tutorial in fact because those exercises lack a perspective of guided work.

Read More
2 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Effective stress calculation from MODFLOW Groundwater Flow Model with Model Muse & Flopy - Tutorial

Effective stress theory was developed by Terzaghi in the 1920s. Based on our modeling experience we wanted to calculate the effective stress based on the results from a MODFLOW groundwater model. Finally, after 6 years from the first thought about it we came with a full deduction of the effective stress calculation based on the model geometry and an applied example for the effective stress calculation on a hillslope groundwater flow model.

The example model was developed in Modflow-Nwt and Model Muse, whereas the effective stress determination was done with scripts in Python and Hataripy (our fork of Flopy). The scripts can also generate 3D objects as VTK files of the model results, geometry and stresses that can be visualized in Paraview.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to change your career to hydrogeology… with appropriate success

We are not a talent agency, we are not even a job portal;however, as other topics on this blog, we post based on requests from our followers. We don’t want to conceptualize the definition of a job or a career, but let’s have a common agreement that a successful career in geosciences is an occupation that provides a level of satisfaction, covers some basic necessities and keeps you motivated to know more.

If your idea of success is to manage a big group of people, we might suggest you evaluate the construction or the retail industry; if you want approval and being recognized for your work you can start your own blog or become a Youtuber.

Read More
1 Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Which are the limitations of online learning for hydroinformatics?

Based on our experience in online learning for water resources based on open source that dates way before the Covid pandemia, we have seen some limitations of elearning as a framework to teach software for water resources.

Even though we can conceptualize elearning as something new, it is in fact a poor performance copy of the classroom environment on the computer. We simulate the whiteboard (we prefer chalkboard, less allergic), the teacher, the interventions, the assignments, the exams and everything else that is related to the normal classroom, even breaks and graduations. But this “Second Life” version of education has its limitations that have to be well assessed in order to define strategies to achieve the objective of education: bring new and better capabilities to water resources professionals.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to manage psychological stress of hydrogeologists / numerical modelers?

Over the time, we have seen numerical modeling as a great tool for the evaluation of the groundwater flow regime and we might have seen numerical modelers as high level professionals with strong analytical capabilities that can provide all the answers we need to proof that a project is sustainable or the accuracy of a predictive simulation. On a broad perspective we might have overestimated the numerical modeling exercise and sometimes deified numerical modelers, but by sure we haven’t seen them as humans.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to insert and read Observation Points (OBS6) in Modflow 6 with Model Muse and Flopy - Tutorial

Modflow 6 has a new approach in setting up observation points and it's essentially different to the previous versions. The OBS6 package works not only with heads and drawdowns but also with flows, so it's also possible to calibrate the model against baseflow or any other recorded flow from a boundary condition directly. We have created an applied case of the implementation of piezometers in a hillslope groundwater flow model in Modflow 6 and Model Muse. The tutorial covers all the steps related to the implementation of the observed points in Model Muse as well as the comparison among simulated and observed heads through scripts in Flopy.

Read More
3 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to install the Python geological modeling library Gempy in Windows with Debian and WSL

Gempy is an open-source library for modeling geology written in Python. The library is capable of creating complex 3D geological models including structures, fault networks, and unconformities and it can be coupled with uncertainty analysis.

Due to the required packages and specific configuration the installation of Gempy is a challenge on Windows, we have developed an alternative installation process by the use of a Debian kernel under a Windows Subsystem for Linux. This tutorial shows the complete procedure to install Gempy from the Debian kernel setup to the review of the Gempy in Python.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to create a point/line/polygon shapefile with Python and Fiona - Tutorial

Storage, management and analysis of geospatial vector data as an ESRI shapefile is a common procedure of GIS and related professionals. The generation of these spatial files can be done not only on a desktop software but also by Python commands. We have created an applied example that shows the procedure in Python to create point, line, and polygon shapefiles from a csv file by the use of the Fiona library.

Read More
6 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to install Python geospatial libraries (Gdal, Fiona, Rasterio, etc) under a Conda Env in Windows

Python is a great tool for spatial analysis and geomachine learning, however sometimes the Windows operating system presents some difficulties to install and run the bunch of Python libraries such as Gdal, Fiona, Geopandas, Rasterio. We are aware that most geoscientists, water resources specialists and related professionals work on Windows, therefore we are always in the search of new ways to get Python working with all its geospatial capabilities in every computer. We have created a tutorial that shows the installation process of the Python geospatial libraries in Windows by the use of a Conda environment; the process is simple on its steps, however the sequence and factors related to the package compatibility are important on the installation.

Read More
2 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

A place to find MODFLOW executables for any operating system: Windows, Mac or Linux

A normal distribution of the core versions of MODFLOW as well as its variants, and Modflow-Based particle tracking and solute transport models includes not only the executables for Windows, but also the documentation, source code, test problems and other utility programs. Working with the multiple tools of Modflow implies a huge collection of files that aren’t useful for the simulation itself if you are working on Windows. Modelers working on Mac or Linux had to compile our executable by themselves.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to extract centroid coordinates in QGIS with Field Calculator - Tutorial

We did a simple procedure in QGIS but unknown to us that extracts the centroids of lines and polygons with Field Calculator commands inside the attribute table. The procedure is straightforward and does not involve the use of any intermediate layer.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

How to install Postgresql and Postgis in Windows 10 with WSL and Debian - Tutorial


The normal method to install Postgresql and Postgis requires the set up of several binaries and the workflow is usually on graphical user interfaces (GUI). We wanted to come with a way to install Postgresql and Postgis in Windows 10 while keeping the shell experience from Linux. This tutorial shows the procedure to install the database inside a Debian application (it could be Ubuntu as well) in Windows 10 that can actually be accessible from QGIS.


The normal method to install Postgresql and Postgis requires the set up of several binaries and the workflow is usually on graphical user interfaces (GUI). We wanted to come with a way to install Postgresql and Postgis in Windows 10 while keeping the shell experience from Linux. This tutorial shows the procedure to install the database inside a Debian application (it could be Ubuntu as well) in Windows 10 that can actually be accessible from QGIS.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

What we dont see in the development of open source software for groundwater modeling

Usually we dedicate much time to developing tutorials and sometimes, just a few times, we actually write an article on this blog. Lately, our aim to discover and code is much greater than our impulse to give our opinion. This post is a special case where we write something without knowing if it is written because we are motivated or because there is something that needs to be written. In any case, writing this post doesn’t make us more free or happy... “Es macht uns nicht mehr zufrieden”... because we don´t know much about some things related to human nature.

Read More
3 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

5 tutorials for crop detection and vegetation delineation with Python and QGIS

Over the last months we have researched the different tools in Python and QGIS available to recognize crops and vegetation as geospatial vector files. We have used a variety of techniques that range from machine learning algorithms with Scikit Learn and Scikit Image to just more innovative band combinations and reclassifications in QGIS. This article shows the summary of the tutorials produced so far that we are sure will be very helpful for GIS professionals and geoscientists.

Read More
Comment

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.

 

Mixing groundwater and seawater geochemical modeling with Phreeqc and Python - Tutorial

Phreeqc can solve geochemical simulations for a specific solution and simulations relying on previous results. We have developed a tutorial that goes through the Example 3 from the Phreeqc documentation in a stepwise approach to simulate groundwater, seawater, the mixing from both and cases regarding the equilibrium with calcite and dolomite. There is a Python class capable of running the input files and parse results incluided on the scripting part of the input files.

Read More
2 Comments

 

Suscribe to our online newsletter

Subscribe for free newsletter, receive news, interesting facts and dates of our courses in water resources.