Overview
TerraLab provides a suite of command-line tools for processing Defense Meteorological Satellite Program (DMSP) Visible Near-infrared (DVNL) data and calibrating Sky Quality Meter (SQM) models. These tools are designed to work together in a pipeline for light pollution analysis.When to Use CLI Tools
Use the CLI tools when you need to:- Batch process large DVNL raster datasets
- Automate workflows for light pollution mapping
- Calibrate models from ground-truth SQM measurements
- Generate maps of predicted sky brightness
- Preprocess data outside the main TerraLab GUI application
Available Commands
All CLI tools are installed automatically when you install TerraLab. They are accessible from any terminal after installation.Main Application
terralab- Launch the TerraLab GUI application
DVNL Processing
terralab-dvnl-preprocess- Validate and clean DVNL GeoTIFF filesterralab-dvnl-convolve- Apply radial kernel convolution to DVNL rasters
SQM Calibration
terralab-calibrate-sqm- Fit empirical model from ground-truth SQM dataterralab-predict-sqm- Generate SQM prediction maps from calibrated models
Typical Workflow
- Preprocess DVNL data to ensure proper formatting and NoData handling
- Convolve the preprocessed raster with a dispersion kernel (Gaussian or power-law)
- Calibrate a model using ground-truth SQM measurements (if available)
- Predict SQM values across the entire convolved raster
Installation
All CLI tools are installed automatically with TerraLab:Getting Help
All commands support the--help flag to display usage information: