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 frtitle=phraseβ title for resultant raster maphistory=phraseβ text to append to the next line of the map's metadata fileunits=stringβ text to use for map data unitsvdatum=stringβ text to use for map vertical datumsource1=phraseβ text to use for data source, line 1source2=phraseβ text to use for data source, line 2description=phraseβ text to use for data description or keyword(s)raster=stringβ raster map from which to copy category tableloadhistory=nameβ text file from which to load historysavehistory=nameβ text file in which to save historysemantic_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 authorBrad Douglas: GRASS 6 PortM. Hamish Bowman: command line enhancementsMarkus Neteler: category copy from other mapMaris 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
- alpine 3.24: grass-gis-doc 8.5.0-r1 Β· GPL-2.0-or-later
- ubuntu stonking: grass-doc 8.5.0-1ubuntu1 Β· 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