r.semantic.label(1grass)

πŸ’– r.semantic.label πŸ’–

okay bestie, welcome to r.semantic.label from the GRASS User's Manual β€” it's the little tool that manages semantic label information assigned to a single raster map or to a whole list of raster maps. it's giving librarian energy, but for your imagery. πŸ’…


✨ KEYWORDS ✨

general, imagery, semantic label, image collections


🌸 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 "what do I even type" cheat sheet.
  • --verbose β€” verbose module output. she talks more. πŸ’¬
  • --quiet β€” quiet module output. she whispers. 🀫
  • --ui β€” forces the GUI dialog to launch, for when you want buttons instead of typing.

πŸ¦‹ Parameters

  • map=name[,name,...] β€” required, bestie. this is the name (or names) of your raster map(s). comma-separated list, no cap.
  • semantic_label=name[,name,...] β€” the name of the semantic label identifier. the example given is S2_1, iconic.
  • operation=string β€” required, this is the ~operation to be performed~.
    • Options: add, remove, print
    • Default: add

πŸ’œ DESCRIPTION πŸ’œ

so what does r.semantic.label actually do? she lets you assign semantic label information to a single raster map, or to a list of raster maps you specify. the semantic label itself gets defined by the semantic_label option β€” you just tell her which one.

already labeled something and now you're having regrets? so real. you can remove an already-assigned semantic label from a specified raster map with operation=remove. the way that she also lets you print detailed semantic label info that's already assigned to a raster map via operation=print?? obsessed. πŸ“

and yes, you can feed her either a single raster map or a list of raster maps through the map option. flexible queen. πŸ‘‘


🌈 NOTES 🌈

⚠️ heads up: only raster maps from the current mapsets can be modified. don't come for maps in other mapsets, she will not hear you.

want the full lore on the semantic label concept and which sensors are supported? that's the generic multispectral system, Landsat-5, Landsat-7, Landsat-8, and Sentinel-2, btw β€” go read the i.band.library module. iykyk. πŸ›°οΈ

semantic labels are also supported by temporal GRASS modules, bestie. the name of a STRDS can be extended by a band identifier so you can filter the result by a semantic label. for examples, go peep t.register, t.rast.list, t.info and t.rast.mapcalc. ✨


πŸŽ€ EXAMPLES πŸŽ€

Assign semantic label to a single raster map

r.semantic.label map=T33UVR_20180506T100031_B01 semantic_label=S2_1

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

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

Remove semantic label from a list of raster maps

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

😭 KNOWN ISSUES 😭

r.semantic.label allows managing semantic labels only related to 2D raster maps. that's it, that's the fine print. no 3D glow-up for her. πŸ™ˆ


πŸ‘€ SEE ALSO πŸ‘€

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


🫢 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)

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!! πŸŽ‰ this absolute icon of a manual is part of the GRASS 8.5.0 Reference Manual, Β© 2003-2026 GRASS Development Team β€” and the page itself is from GRASS 8.5.0. go forth and label your rasters, you main character. periodt. πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from