Thiem steady-state solution for confined aquifers in Aquifer App - Tutorial

Aquifer App, a web framework for application in hydrogeology now has a tool for the interpretation of the Hydraulic Transmissivity based on the Thiem solution. This is a perfect tool to parametrize homogeneous and confined aquifers on steady state flow conditions.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Docker image containing the parallel version of MODFLOW 6 with application examples

Modflow on parallel processing seemed to lie in the far-off future, but now it’s possible to take advantage of most of your cores to run parallelized versions of MODFLOW 6. Since most MODFLOW modelers work on Windows we wanted to bring something more than a “packed” solution; our goal was to bring an enriched “packed” experience.

Read More
Comment

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

A Python class for crop line recognition with Rasterio and Scikit Image - Tutorial

The use of Python classes is a level of abstraction that allows us to store functions and variables in an effective way. With a Python class we can modify/repeat our analysis in Python without much effort.

We have done an applied example of crop line recognition using a Python class. The procedure uses a drone orthophoto and a shapefile of an area of interest, has options for the filter and creates a shapefile from the recognized lines. 


Tutorial



Input data

You can download the input data from this link.



Code

from workingFunctions import cropRecognition
import geopandas as gpd
# create a crop recognition object
cropLines = cropRecognition('Data/Rst/Ortho-DroneMapper_Clipped2.tif')
# refine band red=1 green=2 blue=3
cropLines.band = 2
#plot selected band
cropLines.plotBand()
#define canny filter sigma to represent
cropLines.cannyMin, cropLines.cannyMean, cropLines.cannyMax = 4,5,6 #1,2,3
#display different canny filters
cropLines.cannyFilterDisplay()
#define selected canny filter
cropLines.cannySigma = 6
#show canny filter array
cropLines.cannyFilter
array([[False, False, False, ..., False, False, False],
       [False, False, False, ..., False, False, False],
       [False, False, False, ..., False, False, False],
       ...,
       [False, False, False, ..., False, False, False],
       [False, False, False, ..., False, False, False],
       [False, False, False, ..., False, False, False]])
#perform hough transform for crop line recornition
cropLines.displayHoughTransform()
#define the geometry of the area of interest
aoi = gpd.read_file('Data/Shp/aoi.shp')
cropLines.aoiGeom = aoi.iloc[0].geometry
cropLines.aoiGeom
#create lines in the area of interest extension
cropLines.linesToAoi()
#export interpreted data to shapefile
cropLines.createShapefile('Data/cropRows.shp')
#plot crop lines 
import rasterio
import matplotlib.pyplot as plt
from rasterio.plot import show

df = gpd.read_file('Data/cropRows.shp')
image = rasterio.open('Data/Rst/Ortho-DroneMapper_Clipped2.tif')
fig, ax = plt.subplots(figsize=(12,8))
lineShow = df.plot(column='angle', cmap='RdBu', ax=ax)
rasterShow = show(image, ax=ax, alpha=0.5)
plt.show()




Comment

Saul Montoya

Saul Montoya es Ingeniero Civil graduado de la Pontificia Universidad Católica del Perú en Lima con estudios de postgrado en Manejo e Ingeniería de Recursos Hídricos (Programa WAREM) de la Universidad de Stuttgart con mención en Ingeniería de Aguas Subterráneas y Hidroinformática.

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

How to direct download / clip elevations and import them to Model Muse with Python - Tutorial

If you work often with numerical models this process will save you much time. The traditional method of downloading elevation models (Aster DEM) from websites, and reprojecting / clipping them with GIS software can be time consuming and pulls you out of other critical tasks on model conceptualization and calibrations. We have done a complete process in Python under WSL that runs Ubuntu in Windows, this platform was chosen due to the complexities of installing GDAL in Windows.

There are two scripts, one to download the images and the second to translate and clip the image. Finally the elevation are imported as a Surfer Grid File (*.grd) into a model in Model Muse.

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, 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
Comment

 

Suscribe to our online newsletter

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

 

How to run Modflow 6 models on the background with Flopy, Linux and Nohup - Tutorial

If by chance you ended up working with large scale models with long execution times on JupyterLab you might find some restrictions related to the interface itself. Since the model execution is related to the session your computer can go into suspension before the process has finished or you need to keep a tab open to ensure the process is running smoothly. We have explored alternatives to run the model on the background, having some resources to reach the simulation progress and monitoring the process.

Read More
Comment

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

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
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 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

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

Web representation of water chemistry data and hydrological features with Qgis2Web and Github

As for the myth of Icarus who wanted to fly close to the sun, sometimes normal Qgis users want to fly close to the web however our “wings” are unknown. Qgis2Web is a robust Qgis plugin that is 8 years old, has more than 177 releases and allows a normal Qgis user to fly to the web with minimal knowledge of html, javascript or other web standards.

Read More
Comment

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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

 

3d visualization of Modflow 6 models with Model Viewer - Tutorial

Model Viewer is an excellent option for the visualization and even the animation of MODFLOW models. There is a version of Model Viewer for Modflow 6 models and another for the rest of MODFLOW versions. This tutorial deals with the whole procedure of 3d model visualization that covers the model import, setting up the vertical exaggeration, making isosurfaces, show flow direction arrows, plotting boundary conditions among other features of Model Viewer.

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 make a wind rose online with Hatari Utils - Tutorial

This is an applied tutorial for the online representation of a wind rose with Hatari Utils from wind speed and direction stored on an CSV file or inserted in an online form. The tutorial explores the online options of Hatari Utils to represent windroses as bars, boxes, polygons or contours.

Read More
Comment

 

Suscribe to our online newsletter

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

 

Spatial data processing for groundwater modeling in Model Muse - Tutorial

Groundwater model creation requires a complete set of spatial data for the different hydraulic parameters, boundary conditions and other model items. Vector and raster data need to be preprocessed, converted, reprojected to fit the requirements of Model Muse.

This tutorial covers an applied case of raster and vector data processing for a groundwater model over the Oahu island (Hawaii, USA). The tutorial covers the steps to download the data, extract the river network and import the spatial data into Model Muse.

Read More
Comment

 

Suscribe to our online newsletter

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

 

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
Comment

 

Suscribe to our online newsletter

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