r.support(1grass)

r.support1grass

Allows creation and/or modification of raster map layer support files.

Usage

r.support

r.support --help

r.support [-bsnd] map=name [title=phrase] [history=phrase] [units=string] [vdatum=string] [source1=phrase] [source2=phrase] [description=phrase] [raster=string] [loadhistory=name] [savehistory=name] [semantic_label=phrase] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Keywords

raster, metadata

Overview

r.support allows the user to create and/or edit raster map support information. Editing of raster map color tables, category labels, header, history, semantic label elements and title is supported. Category labels can also be copied from another raster map.

Raster semantic labels and band management

Raster semantic label concept is similar to dimension name in other GIS and remote sensing applications. Most common usage will be assigning a remote sensing platform sensor band identifier to the raster map metadata, although any identifier is supported (see i.band.library). Raster semantic label is suggested to work with imagery classification tools.

Examples

These examples are based on the North Carolina dataset, more specifically the landuse raster map. Copy the landuse map to the current mapset

g.copy raster=landuse,my_landuse

Update statistics

r.support -s map=my_landuse

Update Title

r.support map=my_landuse title="Landuse copied"

Append to History Metadata

r.support map=my_landuse history="Copied from PERMANENT mapset"

Update Units Display

r.support map=my_landuse units=meter

Set semantic label

Note: landuse map doesn’t confirm to CORINE specification. This is an example only.

r.support map=my_landuse semantic_label=CORINE_LULC

Notes

If metadata options such as title or history are given the module will run non-interactively. If only the map name is given r.support will run interactively within a terminal shell and the user with be prompted for input.

Freeform metadata information is stored in a "hist" file which may be appended to by using the history option. Currently this is limited to 50 lines of text with a maximum line length of 78 characters. Any input larger than this will be wrapped to the next line. All other metadata strings available as standard options are limited to 79 characters.

Source code

Available at: r.support source code (history)

Accessed: Monday Feb 24 17:50:53 2025

Main index | Raster index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual

Releases

9 releases since Debian 5.0 (Lenny); the text changed 8 times.

  1. 5.0
  2. 6.0
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13

Authors

Micharl Shapiro, CERL: Original author
Brad Douglas: GRASS 6 Port
M. Hamish Bowman: command line enhancements
Markus Neteler: category copy from other map
Maris Nartiss: semantic label management

From grass-doc 8.4.1-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.