MAPPING WATER EXTENTS USING WOFS

Francis Ndiritu
Francis Ndiritu

January 28, 2023

MAPPING WATER EXTENTS USING WOFS


Water extent mapping using the Water Observations from Space (WOFS) is a method of mapping the extent of surface water using satellite imagery. It uses a combination of optical and microwave imagery to identify the presence of water bodies, including open water, wetlands, and rivers. The imagery is then analyzed to determine the area of water present, as well as its depth, surface texture, and other characteristics. This information can then be used to create a detailed map of the water bodies and their extent. WOFS can also be used to monitor changes in water extent over time and to identify potential environmental risks and hazards related to water.


The Wetland Extents Mapping (WEM) procedure is a set of tools used to map water extents from satellite imagery. The procedure is used to map the locations of wetlands, rivers, lakes, and other water bodies. The procedure uses a combination of automated algorithms and manual editing to produce accurate water extents maps.

The procedure begins with the identification of water bodies using Landsat imagery. The imagery is then used to create a mask that identifies the areas of water and land. The mask is then edited to remove any false positives or areas that are not water.

The mask is then used to create a 1:1 scale representation of the water extent. The 1:1 scale representation is used to create a water extents map. The water extents map is then compared to the original Landsat imagery to ensure accuracy.

The WEM procedure is used to produce accurate, large-scale water extents maps. It is used to identify the location and size of water bodies, which can be used for water resource management and conservation. The procedure is also used to identify areas of high water risk and to help inform decisions about water management.

1. Install the required Python libraries:

In order to use Jupyter Notebook to map water extents, you will need to install the following Python libraries: numpy, rasterio, geopandas, matplotlib and rioxarray.

2. Import the libraries into Jupyter Notebook:

Once the libraries have been installed, you can import them into Jupyter Notebook by using the following code:

import numpy as np
import rasterio
import geopandas as gpd
import matplotlib.pyplot as plt
import rioxarray

3. Load the WOFS data into Jupyter Notebook:

Once the libraries have been imported, you can load the WOFS data into Jupyter Notebook by using the following code:

wofs_data = rasterio.open('/path/to/wofs_data.tif')

4. Create a GeoDataFrame from the WOFS data:

Once the WOFS data is loaded into Jupyter Notebook, you can create a GeoDataFrame from the data by using the following code:

gdf = gpd.GeoDataFrame.from_features(wofs_data.read(1), crs=wofs_data.crs)

5. Visualize the water extents:

Finally, you can use the GeoDataFrame to visualize the water extents by using the following code:

fig, ax = plt.subplots()
gdf.plot(column='water_extent', cmap='Blues', ax=ax)
ax.set_title('Water extents')
plt.show()


Tools used

JupyterLab

Plug-ins used

geopandasMatplotlibNumPy

tags

GEOPANDAS

You might also like

Join the community!

We're a place where geospatial professionals showcase their works and discover opportunities.