Command-Line Interface
landsat9geo installs a CLI entry point that runs the full pipeline
from a terminal.
Usage
landsat9geo {--tar FILE | --dir PATH} [options]
Required (one of):
--tar FILEPath to a Landsat 9 L2SP
.tararchive.--dir PATHPath to an already-extracted L2SP directory.
Options:
--shp FILEShapefile or GeoPackage for AOI clipping.
--pan FILEPanchromatic band (15 m) to enable Brovey pansharpening.
--dem FILEDEM raster for slope / aspect / hillshade derivatives.
-o, --output DIROutput directory (default:
geology_output).
Examples
Minimal — extract, mask, scale, compute ratios:
landsat9geo --tar LC09_L2SP_193036_20230713_20230715_02_T1.tar \
--shp zone_polygon.shp
With pansharpening and DEM:
landsat9geo --dir ./extracted/ \
--shp aoi.shp \
--pan LC09_B8.TIF \
--dem srtm30.tif \
-o results/
Output files
File |
Description |
|---|---|
|
7-band surface reflectance (cloud-masked, clipped, DEFLATE) |
|
Surface temperature in Kelvin |
|
Brovey-sharpened 15 m reflectance (if |
|
18-band stack — all spectral indices with band descriptions |
|
4-band stack: elevation, slope, aspect, hillshade (if |