p.dem.prep - Prepare a planetary DEM for photometric and terrain analysis.
Processes a planetary elevation or radius map: optionally fills NULL voids using the reference ellipsoid radius, converts absolute radius-from-centre to topographic height above the ellipsoid, and clips extreme outliers.
p.dem.prep prepares a planetary Digital Elevation Model (DEM) for
use in photogrammetry and shape-from-shading workflows. It applies a
sequence of optional preprocessing steps:
NULL filling — fills data gaps by cubic-spline interpolation
Spike removal — replaces outlier values exceeding the local
median by N×σ with the local median
Sphere normalisation — subtracts the best-fit sphere radius to
produce a height-above-reference map
Smoothing — applies a Gaussian low-pass filter to reduce
high-frequency noise
The output DEM is suitable as input to p.slope.planet, p.shadow.planet,
and as shape-model data for p.photomet via the p_shapemodel DEM
callback.