i.spectral(1)
β¨ i.spectral β¨
okay bestie, welcome to GRASS GIS User's Manual π this is the page for i.spectral, and no cap it's a good one.
πΈ NAME πΈ
i.spectral β displays spectral response at user specified locations in group or images. literally what it says on the tin, and it ate π
π KEYWORDS π
imagery, querying, raster, multispectral
π¦ SYNOPSIS π¦
i.spectral
i.spectral --help
i.spectral [-cgt] [group=name] [subgroup=name]
[raster=name[,name,...]] coordinates=east,north[,east,north,...]
[output=name] [format=string] [--overwrite] [--help] [--verbose]
[--quiet] [--ui]
β¨ FLAGS β¨
-cβ show the sampling coordinates instead of numbering them in the legend (only valid when you're also using the-gflag, iykyk)-gβ usegnuplotfor display π«Ά-tβ output to text file--overwriteβ allow output files to overwrite existing files (yes, it will genuinely just bulldoze them, so be careful π)--helpβ print usage summary--verboseβ verbose module output--quietβ quiet module output--uiβ force launching GUI dialog
π PARAMETERS π
group=nameβ name of input imagery groupsubgroup=nameβ name of input imagery subgroupraster=name[,name,...]β name of input raster map(s)coordinates=east,north[,east,north,...]β coordinates. required, bestie, you cannot skip this one πoutput=nameβ name for output image, valid for-g(or text file when you're using the-tflag)format=stringβ graphics format for the output file (valid for the-gflag)- Options:
png,eps,svg - Default:
png
- Options:
π DESCRIPTION π
i.spectral displays spectral response at user specified locations in images. that's it, that's the whole vibe β
π₯ NOTES π₯
this script requires the launch of one of the supported monitors (cairo,png,ps) orgnuplotto be installed. no monitor, no plot, periodt π
πΈ EXAMPLE πΈ
Analysis of LANDSAT TM7 channels (North Carolina dataset):
g.region raster=lsat7_2002_10 -p
i.spectral -g raster=lsat7_2002_10,lsat7_2002_20,lsat7_2002_30,lsat7_2002_40,lsat7_2002_50,lsat7_2002_70 \
coordinates=636069,215440,637958,223393,633277,223605
Spectral plot of 3 different land cover types: (1) water, (2) green vegetation, and (3) highway π
North Carolina sample dataset:
g.region raster=lsat7_2002_10 -p
LIST=`g.list type=raster pattern="lsat7_2002_[1-5,7]0" separator=","`
d.mon start=cairo output=plot.png
i.spectral raster=$LIST coordinates=637502.25,221744.25
d.mon stop=cairo
This will search all LANDSAT map for 2002 but select only the B, G, R, NIR, and MIR channels. main character energy fr fr π
π«Ά SEE ALSO π«Ά
d.where, r.what, Cairo driver, PNG driver, PS driver (Postscript)
π AUTHORS π
- Markus Neteler
- Francesco Pirotti
π SOURCE CODE π
Available at: i.spectral source code (history)
Accessed: Saturday Jan 17 05:41:52 2026
Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index
Β© 2003-2025 GRASS Development Team, GRASS GIS 8.4.2 Reference Manual
and that's the whole page bestie π¦ GRASS 8.4.2, i.spectral(1) β go plot something iconic, ily, mwah π
π
π¦ where this page comes from
- fedora 44: grass 8.4.2-4.fc44 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms