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 isS2_1, iconic.operation=stringβ required, this is the ~operation to be performed~.- Options:
add,remove,print - Default:
add
- Options:
π 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
Print semantic label information about single raster map
r.semantic.label map=T33UVR_20180506T100031_B01 operation=print
Print extended semantic label information for a list of raster map
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
- 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