GRASS logo

NAME

p.spectral.planet - Spectral filtering for planetary multi-band rasters.
Applies spectral-domain operations (high-pass subtraction, divisive filter, band ratio) to a group of single-band rasters treated as a spectral cube. Band wavelengths are read from a two-column CSV (wavelength,width). Input maps must be named input.1, input.2, etc.

KEYWORDS

Planetary, Spectral & Mineral Mapping, spectral, hyperspectral, imagery

SYNOPSIS

p.spectral.planet
p.spectral.planet --help
p.spectral.planet input=string output=name operation=string [window=integer] [wavelength1=float] [wavelength2=float] [wavelengths=string] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=string [required]
Base name of input band rasters (input.1, .2, ...)
output=name [required]
Output raster (band ratio / high-pass band index result)
operation=string [required]
Spectral operation to apply
Options: highpass, divfilter, bandratio, banddepth
window=integer
Window width in bands (highpass/divfilter)
Default: 5
wavelength1=float
Primary wavelength [µm] for bandratio or banddepth center
wavelength2=float
Secondary wavelength [µm] for bandratio denominator or banddepth shoulder
wavelengths=string
CSV file with wavelength,width per band (if not uniform)

Table of contents

DESCRIPTION

p.spectral.planet computes spectral analysis products from a multi-band GRASS imagery group. Supported operations:

For sam the reference spectrum is read from a text file with one reflectance value per line (one per group band).

Uses the p_spectra library (band_depth, sam, continuum_remove functions).

EXAMPLES

Compute a spectral angle map against a pyroxene reference spectrum:

p.spectral.planet group=crism_trdr operation=sam \
    spectrum=pyroxene_spectrum.txt output=crism_sam

Compute a band ratio (CRISM band 73 / band 23):

p.spectral.planet group=crism_trdr operation=ratio \
    band_a=73 band_b=23 output=crism_ratio_73_23

REFERENCES

NOTES

For method=sam, the reference spectrum must have the same number of bands as the input group in the same order; the output angle map is in radians. For method=depth, the three wavelength-index parameters (band_a, band_c1, band_c2) identify the absorption centre and continuum anchor points by band position (1-based), not by wavelength value.

SEE ALSO

p.mineral.indices, p.specpix, p.bandnorm

AUTHOR

Yann Chemin

SOURCE CODE

Available at: p.spectral.planet source code (history)

Accessed: Sunday Nov 15 11:06:09 2026


Main index | Paint index | Topics index | Keywords index | Graphical index | Full index

© 2003-2026 GRASS Development Team, GRASS 8.5.1dev Reference Manual