r.semantic.label(1)

πŸ’– r.semantic.label β€” the GRASS GIS User's Manual glow-up ✨

okay bestie, welcome to r.semantic.label from the GRASS GIS User's Manual, section 1 (that's the user commands girlies πŸŽ€). she's all about semantic label information and she's here to help you keep your raster maps organized. no cap.


🌸 NAME 🌸

r.semantic.label β€” manages semantic label information assigned to a single raster map or to a list of raster maps. she's the label-maker of your dreams, fr fr. πŸ’…


πŸ”– KEYWORDS πŸ”–

general, imagery, semantic label, image collections β€” iykyk.


πŸ¦‹ SYNOPSIS πŸ¦‹

r.semantic.label
r.semantic.label --help
r.semantic.label map=name[,name,...]  [semantic_label=name[,name,...]]
operation=string  [--help]  [--verbose]  [--quiet]  [--ui]

✨ Flags ✨

  • --help β€” prints the usage summary, aka the lil cheat sheet. 🫢
  • --verbose β€” verbose module output. she talks more. she tells you things.
  • --quiet β€” quiet module output. she's giving mysterious, lowkey.
  • --ui β€” force launching the GUI dialog. main character energy, graphically.

πŸŽ€ Parameters πŸŽ€

  • map=name[,name,...] β€” [required] name of the raster map(s). one map or a whole lil squad of them, your call.
  • semantic_label=name[,name,...] β€” name of the semantic label identifier (example: S2_1). this is the label you're stamping on πŸ’–
  • operation=string β€” [required] the operation to be performed.
    • Options: add, remove, print
    • Default: add

πŸ’œ DESCRIPTION πŸ’œ

r.semantic.label allows assigning semantic label information to a single raster map or to a list of specified raster maps. the semantic label can be defined by the semantic_label option β€” you just tell her what to call it. 🏷️

already got a semantic label sitting there that you don't want anymore? no worries bestie, operation=remove takes it off a specified raster map. clean slate, periodt.

and if you just wanna look at what's already been assigned? the module also lets you print detailed semantic label information already assigned to a raster map by using operation=print. she's transparent, she's honest, she's everything. πŸ’…

oh and also β€” either a single raster map or a list of raster maps can be given by the map option. flexible queen. 🌈


πŸ“ NOTES πŸ“

heads up babes: only raster maps from the current mapsets can be modified. that's the vibe check. if it's not in your current mapset, she can't touch it. 😭

for more information about the semantic label concept and the supported sensors (generic multispectral system, Landsat-5, Landsat-7, Landsat-8, Sentinel-2) β€” go peek at the i.band.library module. she's the lore keeper. πŸ“šβœ¨

semantic labels are supported by temporal GRASS modules. the name of a STRDS can be extended by a band identifier in order to filter the result by a semantic label. see t.register, t.rast.list, t.info and t.rast.mapcalc modules for examples β€” they're all serving looks. πŸ‘‘


πŸ“ EXAMPLES πŸ“

🌟 Assign semantic label to a single raster map

r.semantic.label map=T33UVR_20180506T100031_B01 semantic_label=S2_1

one map, one label. simple. elegant. iconic.

🌟 Assign semantic label to a list of raster maps

r.semantic.label map=T33UVR_20180506T100031_B01,T33UVR_20180521T100029_B01 semantic_label=S2_1,S2_1

two maps, both get S2_1. matching outfits, we love to see it. 🫢

🌟 Assign different semantic labels to a list of raster maps

r.semantic.label map=T33UVR_20180506T100031_B01,T33UVR_20180506T100031_B02 semantic_label=S2_1,S2_2

now they're individuals. S2_1 and S2_2, each living her own truth. πŸ’–

🌟 Remove semantic label from a list of raster maps

r.semantic.label map=T33UVR_20180506T100031_B01,T33UVR_20180506T100031_B02 operation=remove

bye bye labels πŸ‘‹ it's giving fresh start.

r.semantic.label map=T33UVR_20180506T100031_B01 operation=print

just one map's receipts, please.

r.semantic.label map=T33UVR_20180506T100031_B01,T33UVR_20180506T100031_B02 operation=print

the full extended tea β˜• for the whole list. obsessed.


πŸ’€ KNOWN ISSUES πŸ’€

r.semantic.label allows managing semantic labels only related to 2D raster maps. so like, 2D only, bestie. that's the limit. don't come at her with 3D, she will simply not. πŸ™ˆ


πŸ‘€ SEE ALSO πŸ‘€

i.band.library, r.info, r.support

go say hi, they're all in the friend group. 🌸


πŸ‘‘ AUTHORS πŸ‘‘

Martin Landa

Development sponsored by mundialis GmbH & Co. KG (for the openEO EU H2020 grant 776242)


🌈 SOURCE CODE 🌈

Available at: r.semantic.label source code (history)

Accessed: Saturday Jan 17 05:41:52 2026

Main index | Raster 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 β€” brought to you by GRASS 8.4.2, r.semantic.label(1), accessed Saturday Jan 17 05:41:52 2026. go label something. slay. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from