DOKK / manpages / debian 12 / grass-doc / i.spectral.1grass.en
i.spectral(1grass) GRASS GIS User's Manual i.spectral(1grass)

i.spectral - Displays spectral response at user specified locations in group or images.

imagery, querying, raster, multispectral

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]


Show sampling coordinates instead of numbering in the legend (valid for -g flag)

Use gnuplot for display

output to text file

Allow output files to overwrite existing files

Print usage summary

Verbose module output

Quiet module output

Force launching GUI dialog


Name of input imagery group

Name of input imagery subgroup

Name of input raster map(s)

Coordinates

Name for output image is valid for -g (or text file for -t flag)

Graphics format for output file (valid for -g flag)
Options: png, eps, svg
Default: png

i.spectral displays spectral response at user specified locations in images.

This script requires the launch of one of the supported monitors (cairo, png, ps) or gnuplot to be installed.

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.

d.where, r.what, Cairo driver, PNG driver, PS driver (Postscript)

Markus Neteler
Francesco Pirotti

Available at: i.spectral source code (history)

Accessed: Sunday Jan 22 07:37:42 2023

Main index | Imagery index | Topics index | Keywords index | Graphical index | Full index

© 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual

GRASS 8.2.1