1r.support(1) GRASS GIS User's Manual r.support(1)
2
3
4
6 r.support - Allows creation and/or modification of raster map layer
7 support files.
8
10 raster, metadata
11
13 r.support
14 r.support --help
15 r.support [-bsnd] map=name [title=phrase] [history=phrase]
16 [units=string] [vdatum=string] [source1=phrase] [source2=phrase]
17 [description=phrase] [raster=string] [loadhistory=name] [savehis‐
18 tory=name] [semantic_label=phrase] [--overwrite] [--help] [--ver‐
19 bose] [--quiet] [--ui]
20
21 Flags:
22 -b
23 Delete the semantic label
24
25 -s
26 Update statistics (histogram, range)
27
28 -n
29 Create/reset the null file
30
31 -d
32 Delete the null file
33
34 --overwrite
35 Allow output files to overwrite existing files
36
37 --help
38 Print usage summary
39
40 --verbose
41 Verbose module output
42
43 --quiet
44 Quiet module output
45
46 --ui
47 Force launching GUI dialog
48
49 Parameters:
50 map=name [required]
51 Name of raster map
52
53 title=phrase
54 Title for resultant raster map
55
56 history=phrase
57 Text to append to the next line of the map’s metadata file
58
59 units=string
60 Text to use for map data units
61
62 vdatum=string
63 Text to use for map vertical datum
64
65 source1=phrase
66 Text to use for data source, line 1
67
68 source2=phrase
69 Text to use for data source, line 2
70
71 description=phrase
72 Text to use for data description or keyword(s)
73
74 raster=string
75 Raster map from which to copy category table
76
77 loadhistory=name
78 Text file from which to load history
79
80 savehistory=name
81 Text file in which to save history
82
83 semantic_label=phrase
84 Semantic label e.g. S2_8A
85
87 r.support allows the user to create and/or edit raster map support in‐
88 formation. Editing of raster map color tables, category labels, header,
89 history, semantic label elements and title is supported. Category la‐
90 bels can also be copied from another raster map.
91
92 Raster band management
93 Raster semantic label concept is similar to dimension name in other GIS
94 and remote sensing applications. Most common usage will be assigning a
95 remote sensing platform sensor band ID to the raster, although any
96 identifier is supported. Raster semantic label is suggested to work
97 with imagery classification tools.
98
100 These examples are based on the North Carolina dataset, more specfi‐
101 cally the landuse raster map. Copy the landuse map to the current
102 mapset
103 g.copy raster=landuse,my_landuse
104
105 Update statistics
106 r.support -s map=my_landuse
107
108 Update Title
109 r.support map=my_landuse title="Landuse copied"
110
111 Append to History Metadata
112 r.support map=my_landuse history="Copied from PERMANENT mapset"
113
114 Update Units Display
115 r.support map=my_landuse units=meter
116
117 Set semantic label
118 Note: landuse map doesn’t confirm to CORINE specification. This is an
119 example only.
120 r.support map=my_landuse semantic_label=CORINE_LULC
121
123 If metadata options such as title or history are given the module will
124 run non-interactively. If only the map name is given r.support will
125 run interactively within a terminal shell and the user with be prompted
126 for input.
127
128 Freeform metadata information is stored in a "hist" file which may be
129 appended to by using the history option. Currently this is limited to
130 50 lines of text with a maximum line length of 78 characters. Any input
131 larger than this will be wrapped to the next line. All other metadata
132 strings available as standard options are limited to 79 characters.
133
135 r.category, r.describe, r.info, r.null, r.region, r.report, r.time‐
136 stamp
137
139 Micharl Shapiro, CERL: Original author
140 Brad Douglas: GRASS 6 Port
141 M. Hamish Bowman: command line enhancements
142 Markus Neteler: category copy from other map
143 Maris Nartiss: semantic label management
144
146 Available at: r.support source code (history)
147
148 Accessed: Saturday Jan 21 21:15:14 2023
149
150 Main index | Raster index | Topics index | Keywords index | Graphical
151 index | Full index
152
153 © 2003-2023 GRASS Development Team, GRASS GIS 8.2.1 Reference Manual
154
155
156
157GRASS 8.2.1 r.support(1)