r.support(1grass)

πŸ’– r.support β€” the manual, but make it cute ✨

okay bestie, welcome to r.support(1grass), straight out of the GRASS User's Manual β€” it's the glow-up station for your raster map's ✨support files✨. let's get into it 🫢


🌸 NAME 🌸

r.support β€” allows creation and/or modification of raster map layer support files. it's giving metadata makeover πŸ’…


πŸŽ€ KEYWORDS πŸŽ€

raster, metadata


✨ SYNOPSIS ✨

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]

🚩 Flags

  • -b β€” delete the semantic label. bye bye label πŸ‘‹
  • -s β€” update statistics (histogram, range). numbers refresh moment πŸ“Š
  • -n β€” create/reset the null file
  • -d β€” delete the null file
  • --overwrite β€” allow output files to overwrite existing files. permission to be a lil reckless (consensually) πŸ”₯
  • --help β€” print usage summary
  • --verbose β€” verbose module output. it WILL yap πŸ—£οΈ
  • --quiet β€” quiet module output. shhh 🀫
  • --ui β€” force launching GUI dialog. for the visual girlies πŸ–₯️

🧚 Parameters

  • map=name [required] β€” name of raster map. bestie you literally cannot skip this one, it's required fr fr
  • title=phrase β€” title for resultant raster map
  • history=phrase β€” text to append to the next line of the map's metadata file
  • units=string β€” text to use for map data units
  • vdatum=string β€” text to use for map vertical datum
  • source1=phrase β€” text to use for data source, line 1
  • source2=phrase β€” text to use for data source, line 2
  • description=phrase β€” text to use for data description or keyword(s)
  • raster=string β€” raster map from which to copy category table
  • loadhistory=name β€” text file from which to load history
  • savehistory=name β€” text file in which to save history
  • semantic_label=phrase β€” semantic label e.g. S2_8A

πŸ’œ DESCRIPTION πŸ’œ

r.support is the one that lets you create and/or edit raster map support information. editing of raster map color tables, category labels, header, history, semantic label elements and title? all supported. all valid. all iconic πŸ‘‘

and yes, category labels can also be copied from another raster map. sharing is caring πŸ’ž

πŸ›°οΈ Raster semantic labels and band management

the 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. it's giving organized ✨


🌈 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. but if only the map name is given, r.support will run interactively within a terminal shell and the user with be prompted for input. choose your adventure bestie 🎒

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. know the limits, respect the limits πŸ’€


πŸ”— SEE ALSO πŸ”—

i.band.library, r.category, r.describe, r.info, r.null, r.region, r.report, r.semantic.label, r.timestamp

(links? we love links. go read 'em iykyk 🫢)


πŸ‘‘ 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

the legends themselves, no cap πŸ’…


πŸ’» SOURCE CODE πŸ’»

available at: r.support source code (history)

latest change: Friday Feb 07 19:16:09 2025 in commit: a82a39f673b97fafcfce1604dc3e6015cb96487a

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


and that's the whole page bestie!! πŸ’– stay slay, keep your metadata immaculate, and remember β€” this was the work of the GRASS Development Team, Β© 2003-2026, out of the GRASS 8.5.0 Reference Manual, with the page itself being r.support(1grass) for GRASS 8.5.0. mwah πŸŽ€βœ¨

πŸ“¦ where this page comes from