Geological modeling of sedimentary layers from geospatial rasters with Python and Gempy - Tutorial

Based on a coupled workflow on QGIS and Python it is possible to extract the required information for a Gempy model and run it for defined voxel sizes. This tutorial covers the whole procedure of spatial data preparation, data preprocessing in defined formats and geological modeling with Python and Gempy.

Read More

How to georeference a image/raster with Python and Rasterio - Tutorial

Georeferencing in Python has the advantage that it can be performed repeatedly without the need to define control points each time. It also allows you to add/remove control points and observe the impact on the transformation array. This tutorial demonstrates the complete georeferencing process of a national map using 3 points whose pixel coordinates have been extracted from the Paint utility in Windows. The tutorial also exports the raster while assigning a reference system.

Read More

Groundwater modeling of a pumping test over a confined aquifer with MODFLOW-6 and FloPy - Tutorial

We have done an applied groundwater model for a pumping test on a confined aquifer. The wellsite is located on the Clairborne aquifer (Georgia, USA) and has two observations on different layers besides the well itself. The aquifer test has two periods of pumping and recovery that last 3 days each one and the numerical model was constructed with MODFLOW-6 based on a Python script with the FloPy package. Comparison among observed and simulated wells were done with plots in Matplotlib.

Read More

Lithium speciation calculation on salt lake brines with Phreeqc and Python - Tutorial

Lithium interaction with the aqueous phase on brines phase is not well understood or at least not well covered by the scientific publications. To evaluate brine composition, brine dynamics and the interaction of the different components is really a challenge with the available tools for geochemical modeling as Phreeqc since it doesn’t appear in all the databases and in most it is only associated with sulfates.

Read More

Online tools for groundwater modeling preprocessing with Model Muse - Tutorial

If you want to speed up some steps in groundwater modeling you might be interested in the tools presented on this tutorial. We have developed some online tools that replace intense and time consuming tasks on desktop software and web servers and provide vector and raster data on the formats required by Model Muse. The tutorial covers the steps of DEM generation as Surfer Grid File (*.grd) with the definition of watersheds and river network based on two online services provided by Hatarilabs.

Read More

How to split Modflow 6 groundwater model with Flopy and MF6Splitter - Tutorial

Modflow 6 has changed in many ways the traditional concepts of groundwater modeling; now a group of models can run under a "simulation" and these models can interchange flow and transport. Under this structure Flopy has implemented a tool to split a groundwater model into several models where their results can be reconstructed and compared to the original entire models. Capabilities and features like this make Flopy and Modflow 6 a great tool for developing advanced groundwater models that simulate complicated tasks or requirements to the groundwater flow regime.

Read More

How to reproject, clip and interactively plot HDFs with Python and GDAL - Tutorial

Large amount of spatial data is indexed and delivered through files in Hierarchical Data Format (HDF). These files are compatible with desktop GIS software as QGIS but they are not so easy to open/read/process with standard Python libraries as Rasterio, or with dedicated libraries. On our research we found the spatial functionality on the powerful GDAL binaries and library for Python. 

Read More

Online crop counting from drone orthophotos with Hatari Utils - Tutorial

Orthophoto from drones provide us aerial imagery with spatial resolution in the scale of centimeters. With this high definition and cheap orthophotos we can interpret, analyze and quantify objects on a horizontal distribution by means of machine learning libraries for image recognition and cluster analysis.

Read More

How to download Actual Evapotranspiration ET raster data (MYD16A2) with Python and Earthaccess - Tutorial

Evaluation of environmental processes requires a spatial temporal approach with the right tools to represent, process and analyze raster data. The process of satellite imagery selection on a web server is highly manual with limited options to manage an intensive amount of datasets. There are packages available to download certain Nasa imagery with Python, but the Earthaccess library allows users to download different dataset with options to login, select by time and location, and define folders to download data.

We have done a complete process to download actual evapotranspiration (MYD16A2) imagery with Python and Earthaccess for a given period and location. The files are stored in a folder and represented with QGIS.

Read More

How to create a Piper plot online with Aquifer App - Tutorial

We present our own webapp for the representation of the Piper Diagram, Stiff Diagram and Scholler Diagram. The webapp was developed in Python Django and it is entirely free for everyone. The main objective behind this webapp was to develop a user friendly and minimum requirement tool to create these water quality / hidrogeochemical diagrams. The video tutorial shows the complete procedure to update the working file and then generate the diagrams.

Read More

Online determination of Time of Concentration from a Raster DEM with Hatari Utils - Tutorial

Hatari Utils is our app for different hydrological analysis. The app provides the geometry of the basin, river network and main river as ESRI shapefiles and based on the output from the delineation we can determine the Time of Concentration under several formulas. The app also gives the mean and median of all time results.

Read More

Modeling of mixing water / effluent with OpenFoam and HatariUtils - Tutorial

Modeling flow on open channels and simulating water mixing to evaluate the final concentrations and mixing area was a hard task with conventional open source software. Based on our research and app development we came up with a process to model flow of water and effluent mixing and then calculate the mass flux with the initial concentration of certain chemical components to have a fully 3d simulation of the concentration development with time and distance from source.

Read More

State of the art of open digital elevation imagery and online watershed delineation - Tutorial

The processes of working with digital elevation models (DEMs) and watershed delineation are in constant change over time. Even though the elevation datasets date from 10 years ago; the web servers and tools for data processing have changed in recent years. With online tools such as Hatari Utils, the watershed delineation can be performed in a few steps with practical outputs as vector files and watershed statistics.

Read More

Online main channel determination from a river network with Hatari Utils - Tutorial

If you want to determine the longest channel of a river network automatically this feature Hatari Utils might be of your interest. Hatari Utils is a toolbox for different analysis in water resources and beyond. On the “watershed delimitation” tool you can define the catchment, the river network and now you can define the main channel (longest succession of segments that connect a source to the outlet of the basin) automatically on the catchment delineation.

Read More

How to measure strike and dip from rasters with QGIS and ThreePointMethod plugin - Tutorial

If you have a geological contact as a geospatial and you want to calculate/measure the strike and dip at a certain point, this tutorial might help you. The ThreePointMethod is a QGIS plugin that calculates a plane strike and dip direction using the three-point method. It works with a point shapefile and a digital elevation model.

Read More

Online Mapping Urban Temperature with Istsos and Python - Tutorial

Geospatial mapping of environmental variables is key to understand habitats and in this case urban habitats. We have done research in temperature mapping stored in the cloud with Raspberrys and a Istsos server, this time we have coupled a gps sensor to make urban temperature map from the data retrieved from the server. This tutorial shows the procedure to retrieve the data, convert it to a geopandas datagrame, export as ESRI shapefile and undertand the temperature distribution relation with the land cover.

Read More

How to install the geological Python library Gempy in Windows with WSL - Tutorial

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.

This tutorial is developed under a Ubuntu 20.04.2 image installed from the Windows Store and covers all the steps to setup the user, install core packages, install Python packages and set up local paths to have a complete Gempy enviroment running under Jupyter lab.

Read More