Remote sensing measures the Earth without touching it. Optical sensors record reflected sunlight in a few broad bands or hundreds of narrow ones, radar sends its own microwaves and works through cloud and at night, LiDAR times laser pulses to map terrain and trees in three dimensions, and drones fly the same field every week. Turning those measurements into crop maps, flood extents, forest loss, field boundaries or the water a crop uses is the work of this chapter.
These 152 notebooks are chapter 09 of the GeoLattice tutorials. They cover data access, optical, radar, UAV, hyperspectral and LiDAR data, texture analysis, super-resolution, image classification, object detection, foundation models, the surface energy balance and soil moisture, and finish with seventeen capstone projects, using geolattice.rsense with real imagery from Bangladesh, the United States and around the world.
GeoLattice
GeoLattice is a Python library for geospatial analysis that brings vector and raster processing, spatial analysis, spatial statistics, geostatistics, spatial databases, web and cloud GIS and remote sensing together under one import. It is built on GDAL, NumPy, pandas, GeoPandas, Shapely and xarray, so its functions take and return objects these libraries already use: GeoDataFrames, xarray DataArrays and Datasets, NumPy arrays and GDAL-readable files.
GDAL and PROJ must be installed first, with Python GDAL bindings that match the GDAL library (conda or your system package manager). Then install the remote sensing option, or the full set for the deep-learning notebooks:
python3-m pip install "geolattice[remote-sensing]"python3-m pip install "geolattice[all]"# adds PyTorch and torchgeo for deep learning
GPUs, large vision models and foundation models have their own extras (rsense-gpu, rsense-vision, rsense-foundation, rsense-uav-dl), which a plain install leaves out.
The chapter uses six imports:
import geolattice.rsense as rsimport geolattice.rsense.classify.image_classification as icimport geolattice.rsense.foundation_models as fmimport geolattice.rsense.surface_energy_balance as sebimport geolattice.rsense.soil_moisture as smfrom geolattice.rsense import edge_detectors as ed
Data and sensors
geolattice.rsense reads imagery into xarray, runs on the CPU or a GPU, and has a submodule for each kind of sensor.
Start with the foundation notebooks; they set up the environment, data access and the CPU and GPU backends used everywhere else. The sensor chapters (optical, radar, UAV, hyperspectral and LiDAR) can then be read in any order, followed by the analysis and learning chapters and the capstones.
The notebooks read the imagery in Data/00_shared/data_remote_sensing/ and Data/08_remote_sensing/ of the repository (Landsat, Sentinel-1, Sentinel-2, MODIS, UAV, LiDAR and commercial images), and download further scenes from STAC catalogues, NASA Earthdata and ASF where a notebook says so.
License
GeoLattice is released under the MIT License. See LICENSE.