PadhaikoAll subjects

Remote Sensing for GIS, Spatial Data Modeling and Environmental Management

Remote Sensing and Geospatial Data Processing (ENCT 437)

Open in the Padhaiko app

6.1 Spatial Data Modeling in GIS

Integrating remote sensing products into a Geographic Information System (GIS) requires representing both discrete human/natural features and continuous field measurements in mathematically consistent spatial data structures, coordinate systems, and indexes.

Vector and Raster Data Structures

AspectVector Data StructureRaster Data Structure
Spatial PrimitivesDiscrete geometric objects: points , polylines (ordered vertices), and polygons (closed rings)Regular 2D grid (matrix) of uniform cells (pixels) indexed by row and column
Attribute StorageOne feature ID linked to a multi-column relational attribute tableEach grid cell holds a single numeric DN, reflectance, elevation, or class code
Topology & PrecisionExplicit adjacency, connectivity, and containment; exact sub-meter boundary precisionImplicit spatial adjacency via grid indices; precision bounded by cell size ()
Ideal RS / GIS UseRoad networks, administrative parcels, river centerlines, training ROIsSatellite imagery, DEMs, NDVI surfaces, land-cover grids, continuous interpolation
Overlay & ComputeVector polygon intersection is computationally complexCell-by-cell map algebra is fast and directly vectorizable

Coordinate Reference Systems: Geographic vs. Projected, UTM, and WGS84

To overlay satellite imagery with field GPS points and cadastral maps, every dataset must carry an unambiguous Coordinate Reference System (CRS):

Definition

Universal Transverse Mercator (UTM) Coordinate System

UTM divides the globe between and into longitudinal zones, each wide, projected using a secant Transverse Mercator cylinder (scale factor along the central meridian to keep scale distortion below across the zone):

Spatial Indexing Using R-Tree Concepts

Searching millions of vector footprints or satellite scene polygons sequentially () is too slow for interactive GIS. An R-tree (Rectangle-tree) is a height-balanced spatial index that groups nearby objects hierarchically by their Minimum Bounding Rectangles (MBRs):

Raster Map Algebra

Map algebra (Dana Tomlin) expresses spatial raster analysis as algebraic operations on gridded layers ():

Four Classes of Raster Map Algebra Operations
ClassSpatial ScopeMathematical Form / MechanismRemote Sensing & GIS Example
LocalSingle cell across or more stacked rastersNDVI band math, image differencing, slope thresholding
FocalNeighborhood window around (e.g., )Low-pass smoothing, Sobel edges, terrain slope/aspect from DEM
ZonalAll cells sharing the same zone ID in a zone raster Mean NDVI or total burned area per watershed or district polygon
GlobalEntire raster extent simultaneouslyEuclidean distance to roads, cost-distance, watershed flow accumulation

Every georeferenced raster links pixel indices to map coordinates via a 6-parameter affine geotransform:

where is the upper-left corner, is pixel width, and is negative pixel height for north-up images ().


6.2 Modern Geospatial Architectures

Modern Earth-observation archives hold petabytes of imagery on cloud object storage (S3, GCS). Downloading whole ZIP archives before processing does not scale; cloud-native geospatial architectures allow clients to discover, stream, and compute on exact regions of interest in place.

Cloud-Optimized GeoTIFFs (COGs)

A Cloud-Optimized GeoTIFF (COG) is a standard backward-compatible GeoTIFF file organized internally for efficient HTTP GET Range requests:

  1. Header & Image File Directories (IFDs) first: Placed at the beginning of the file so a client reads geospatial metadata and tile byte offsets in one tiny initial request.
  2. Internal Tiling: Pixels are stored in rectangular blocks (e.g., or ) rather than full scanline strips, allowing a client to fetch only the tiles covering a small study area.
  3. Internal Overviews (Pyramids): Downsampled resolutions () are embedded inside the same file so zoomed-out web maps read low-resolution tiles rapidly without scanning full-resolution data.

SpatioTemporal Asset Catalogs (STAC)

STAC is an open JSON specification for indexing and discovering Earth-observation assets across space, time, and sensors:

Multidimensional Geospatial Arrays

Time-series remote sensing, climate reanalysis, and hyperspectral cubes are naturally modeled as labeled -dimensional arrays (data cubes) with dimensions such as (time, band, y, x). Unlike plain NumPy arrays indexed only by integer positions, multidimensional geospatial formats (Zarr, NetCDF4/HDF5) attach named coordinate axes (timestamps, wavelengths, projected ), physical units, CRS metadata, and chunking layouts for parallel out-of-core computation.

Array Processing with Python: rasterio, geopandas, and xarray

Core Python Geospatial Libraries in Remote Sensing Workflows
LibraryPrimary AbstractionCore Capabilities
rasterioGDAL-backed raster datasets (DatasetReader)Windowed/COG reading via HTTP Range requests, affine transforms, CRS reprojection, rasterization, and writing GeoTIFFs
geopandasSpatial tabular GeoDataFrame (Shapely + Pandas)Reading/writing Shapefile/GeoPackage/GeoJSON, CRS reprojection (to_crs), spatial joins, buffers, and polygon clipping masks
xarrayLabeled -D DataArray and Dataset (often with rioxarray & Dask)Dimension-aware indexing (.sel(time=..., band=...)), temporal composites (.resample, .groupby), and lazy chunked array math
Cloud-Native NDVI & Zonal Summary Workflow (rasterio, geopandas, xarray)Python
import geopandas as gpd
import rasterio
from rasterio.mask import mask
import xarray as xr

# 1. Read district boundary vector and reproject to raster CRS
aoi = gpd.read_file("study_area.gpkg")
with rasterio.open("https://example.org/sentinel2_b04_cog.tif") as src_red:
    aoi_proj = aoi.to_crs(src_red.crs)
    red_arr, _ = mask(src_red, aoi_proj.geometry, crop=True)

with rasterio.open("https://example.org/sentinel2_b08_cog.tif") as src_nir:
    nir_arr, _ = mask(src_nir, aoi_proj.geometry, crop=True)

# 2. Wrap into labeled xarray DataArrays and compute NDVI
red = xr.DataArray(red_arr[0].astype("float32"), dims=("y", "x"))
nir = xr.DataArray(nir_arr[0].astype("float32"), dims=("y", "x"))
ndvi = (nir - red) / (nir + red + 1e-6)
print("Mean AOI NDVI:", float(ndvi.mean()))

6.3 Environmental Management Applications

Multi-Temporal Land-Use/Land-Cover (LULC) Monitoring

Tracking LULC dynamics (deforestation, urban sprawl, glacial retreat, agricultural expansion) compares co-registered, radiometrically normalized multi-date imagery:

Disaster Assessment: Flood Mapping and Wildfire Burn Severity

  1. Flood Inundation Mapping via SAR Backscatter Thresholding: Because floods occur under heavy monsoon clouds, optical sensors are frequently blocked. Synthetic Aperture Radar (SAR) penetrates clouds day and night. Calm open floodwater acts as a specular reflector, bouncing radar pulses away from the side-looking antenna and returning very low backscatter (typically below in VV/VH).
    • Pre- and Post-Event Analysis: Comparing a post-flood SAR image against a dry-season baseline excludes permanent water bodies (rivers, lakes) and isolates newly inundated floodwater pixels via Otsu or empirical thresholding plus slope masking (removing radar shadows on steep hillsides).
  2. Wildfire Burn-Severity Assessment using NBR: Healthy vegetation reflects strongly in NIR and weakly in SWIR2, whereas charred ash and exposed dry soil reflect poorly in NIR and strongly in SWIR2:
Standard USGS Burn-Severity Thresholds Based on dNBR
RangeBurn Severity ClassEcological Impact
Enhanced RegrowthPost-fire vegetation recovery exceeds pre-fire greenness
UnburnedNo detectable fire damage
Low SeveritySurface litter burned; canopy largely intact
Moderate SeverityPartial canopy scorch and understory consumption
High SeverityComplete canopy mortality and deep soil charring

Thermal Remote Sensing, LST, and Urban Heat Islands

Thermal infrared (TIR) sensors (, e.g., Landsat TIRS, MODIS, ASTER) measure emitted thermal radiance to retrieve Land Surface Temperature (LST).

Definition

Brightness Temperature, Emissivity Correction, and Split-Window LST

  1. At-Sensor Brightness Temperature (, in Kelvin): Inverting Planck's law assuming blackbody emissivity :

where are band-specific thermal calibration constants.

  1. Single-Channel Emissivity-Corrected LST (): Real surfaces have spectral emissivity (e.g., water , dense vegetation , bare concrete/soil ). Correcting for emissivity at effective wavelength :
  1. Split-Window (SW) Algorithms: Use two adjacent TIR bands inside the atmospheric window (e.g., near and near ). Because atmospheric water vapor absorbs slightly more strongly at than at , the brightness-temperature difference directly parameterizes atmospheric attenuation without external radiosonde profiles:

where , , is atmospheric water vapor, and are regression coefficients.

Combining TIR-derived LST with NDVI and impervious-surface fraction guides urban cooling interventions such as tree-canopy corridors, parks, and high-albedo cool roofs.


Worked Out Examples

Example 6.1

6.1 (6 marks)

  1. A ground station in Kathmandu lies at longitude , latitude . Determine its UTM zone number and central meridian .
  2. A north-up Landsat raster in that zone has upper-left origin with , (). Compute the map coordinates of pixel .

Determining UTM zone and central meridian:

  • UTM zone number:
  • Central meridian of Zone :

Applying the affine geotransform to :

Answer:
  1. Kathmandu at lies in UTM Zone 45N with central meridian .
  2. Pixel maps to .
Example 6.2

6.2 (8 marks)

  1. A post-classification LULC change matrix (values in ) between (rows) and (columns) across a basin is:
LULC Change Matrix (2015 to 2025, in km²)
ForestCroplandUrban Total
Forest
Cropland
Urban
Total

Compute (a) total unchanged (persistent) area and percentage, and (b) net change in Forest and Urban areas.

  1. In the same region, a forest plot before a wildfire had , and after the fire had . Compute and classify the burn severity.

Analyzing the LULC change matrix:

  • Total persistent area (diagonal sum):
  • Net change:
    • Forest: ( net loss, driven mainly by converted to Cropland and to Urban, partially offset by reforestation).
    • Urban: ( net expansion).

Computing pre-fire NBR, post-fire NBR, and dNBR:

Since , the plot suffered High Severity burn.

Answer:
  1. Persistent area is (); net change is for Forest and for Urban.
  2. , , and (High Severity).
Example 6.3

6.3 (6 marks)

Landsat 8 TIRS Band 10 () measures at-sensor brightness temperatures over an urban concrete roof () and over a surrounding vegetated rural park (). Using :

  1. Compute the emissivity-corrected Land Surface Temperature () in Kelvin and for both sites.
  2. Calculate the Surface Urban Heat-Island (SUHI) intensity .

Emissivity-corrected LST for the urban concrete site ():

With and :

Emissivity-corrected LST for the rural vegetation site () and SUHI intensity: With :

Surface Urban Heat-Island intensity:

Answer:
  1. Urban LST (); Rural LST ().
  2. Surface UHI intensity .

Exercises

Exercise — RS for GIS, Geospatial Architectures & Environmental Management

Question 1

Distinguish between vector and raster data structures and between a Geographic Coordinate System (WGS84) and a Projected Coordinate System (UTM). Explain how R-tree spatial indexing accelerates GIS queries. For Pokhara at longitude , find its UTM zone number and central meridian.

Vector vs. raster, GCS vs. PCS, and R-trees: Vector models represent discrete points, lines, and polygons with explicit topology and exact boundary coordinates, whereas raster models represent continuous fields as regular grids suited to fast map algebra. A GCS (e.g., WGS84 EPSG:4326) uses angular degrees on a 3D ellipsoid, while a PCS (e.g., UTM) projects onto flat meters for accurate area and distance calculations. An R-tree groups nearby objects hierarchically inside Minimum Bounding Rectangles (MBRs), pruning non-intersecting subtrees in time during spatial queries.

UTM zone and central meridian for :

Answer:

Vector stores discrete topology while raster stores continuous grids; WGS84 GCS uses degrees while UTM PCS uses meters; R-trees prune spatial searches via hierarchical MBRs. Pokhara lies in UTM Zone 44N with central meridian .

Question 2

Explain the four classes of raster map algebra (local, focal, zonal, global) with one remote-sensing example each, and describe how Cloud-Optimized GeoTIFFs (COGs) and SpatioTemporal Asset Catalogs (STAC) enable scalable cloud-native geospatial workflows in Python (rasterio, geopandas, xarray).

Four classes of raster map algebra:

  • Local: Cell-by-cell math at (e.g., computing NDVI from NIR and Red bands).
  • Focal: Neighborhood window around (e.g., smoothing or DEM slope).
  • Zonal: Summary statistics grouped by polygon/zone ID (e.g., mean rainfall per watershed).
  • Global: Depends on the entire grid (e.g., distance to nearest road or flow accumulation).

COG, STAC, and Python stack: STAC indexes satellite scenes as searchable JSON Items with spatiotemporal extents and Asset links, while COGs place IFD headers upfront and store internally tiled, multi-resolution overviews so rasterio can fetch only intersecting tiles via HTTP Range requests. geopandas handles vector AOIs and CRS reprojection, and xarray performs labeled multi-dimensional array calculations across space, bands, and time.

Answer:

Map algebra spans local, focal, zonal, and global scopes. STAC provides standardized spatiotemporal metadata discovery and COGs enable partial HTTP Range reads of tiled overviews, processed together by geopandas (vectors), rasterio (tiled rasters), and xarray (labeled -D cubes).

Question 3

Compare image differencing and post-classification comparison for multi-temporal LULC monitoring. A 2010–2020 change matrix (in ) across a watershed shows: Agriculture Agriculture , Agriculture Urban , Agriculture Forest ; Forest Agriculture , Forest Forest , Forest Urban ; Urban Urban (zero transitions from Urban to other classes). Compute the percentage of persistent area and the net change in Forest and Urban areas.

Image differencing vs. post-classification comparison: Image differencing subtracts co-registered single bands/indices () to locate change magnitude rapidly but cannot identify "from–to" land-cover transitions. Post-classification compares two independently classified maps via a change matrix to quantify every class-to-class conversion, though classification errors from both dates multiply.

Persistence and net change calculations:

  • Persistent area: .
  • 2010 vs. 2020 Forest area: ; .
  • 2010 vs. 2020 Urban area: ; .
Answer:

Image differencing detects magnitude without class transitions, whereas post-classification builds a full from–to change matrix. Persistent area is (); net changes are (Forest) and (Urban).

Question 4

Explain why SAR backscatter thresholding is effective for flood inundation mapping during monsoon storms, and describe the pre- vs. post-event NBR workflow for wildfire burn severity. If a forest site has pre-fire and post-fire , compute and state the burn-severity class.

SAR flood mapping & NBR burn-severity principle: Microwave SAR penetrates thick monsoon clouds day and night; smooth open floodwater reflects radar pulses specularly away from the sensor, producing very low backscatter () compared to rough land. Comparing pre- and post-flood SAR isolates newly inundated terrain while masking out permanent rivers. For wildfires, burning destroys NIR-reflecting leaf cell structure and exposes SWIR2-reflecting ash/soil, lowering and creating a positive .

Computing , , and :

Since , this corresponds to Moderate (Moderate–High) Burn Severity.

Answer:

SAR penetrates clouds and detects specular dark floodwater by low thresholding relative to pre-event baselines. For the wildfire site, , , and (Moderate Severity).

Question 5

Explain how split-window thermal infrared algorithms retrieve Land Surface Temperature (LST) without external atmospheric profiles, and describe the physical drivers of Surface Urban Heat Islands (SUHI). If a TIR band at records brightness temperature over a surface with emissivity , calculate the emissivity-corrected LST () in Kelvin and ().

Split-window LST and SUHI drivers: Split-window algorithms use two adjacent TIR channels (around and ) that experience different water-vapor absorption; their brightness-temperature difference cancels atmospheric water-vapor attenuation directly. Urban Heat Islands arise from low-albedo dark pavements, high-heat-capacity concrete/asphalt, reduced vegetation evapotranspiration, urban canyon trapping, and anthropogenic heat release.

Emissivity-corrected LST calculation: With and :

In degrees Celsius:

Answer:

Split-window algorithms exploit differential water-vapor absorption between adjacent TIR channels to remove atmospheric effects, and SUHI reflects impervious surfaces, low albedo, and reduced evapotranspiration. The corrected LST is ().

← RS Pattern Recognition and Classifications