1raster(1)                     Grass User's Manual                    raster(1)
2
3
4

GRASS GIS 7.8.2 Reference Manual

6       Geographic  Resources  Analysis Support System, commonly referred to as
7       GRASS, is a Geographic Information System  (GIS)  used  for  geospatial
8       data  management  and analysis, image processing, graphics/maps produc‐
9       tion, spatial modeling, and visualization. GRASS is currently  used  in
10       academic  and  commercial settings around the world, as well as by many
11       governmental agencies and environmental consulting companies.
12
13       This reference manual details the use of modules distributed with  Geo‐
14       graphic  Resources Analysis Support System (GRASS), an open source (GNU
15       GPLed), image processing and geographic information system  (GIS).   Go
16       to raster introduction | topics
17
18       Go back to help overview
19
20   Raster commands:
21       r.basins.fill                                                Generates watershed subbasins raster map.
22
23       r.blend                                                      Blends color components of two raster maps by a given ratio.
24
25       r.buffer                                                     Creates  a raster map showing buffer zones surrounding cells
26                                                                    that contain non-NULL category values.
27
28       r.buffer.lowmem                                              Creates a raster map showing buffer zones surrounding  cells
29                                                                    that contain non-NULL category values.
30
31       r.buildvrt                                                   Build  a  VRT (Virtual Raster) from the list of input raster
32                                                                    maps.
33
34       r.carve                                                      Generates stream channels.
35
36       r.category                                                   Manages  category  values   and   labels   associated   with
37                                                                    user-specified raster map layers.
38
39       r.circle                                                     Creates  a  raster  map containing concentric rings around a
40                                                                    given point.
41
42       r.clump                                                      Recategorizes data in a raster map by  grouping  cells  that
43                                                                    form physically discrete areas into unique categories.
44
45       r.coin                                                       Tabulates  the mutual occurrence (coincidence) of categories
46                                                                    for two raster map layers.
47
48       r.colors                                                     Creates/modifies the color table associated  with  a  raster
49                                                                    map.
50
51       r.colors.out                                                 Exports the color table associated with a raster map.
52
53       r.colors.stddev                                              Sets  color  rules  based on stddev from a raster map’s mean
54                                                                    value.
55
56       r.composite                                                  Combines red, green and blue raster maps into a single  com‐
57                                                                    posite raster map.
58
59       r.compress                                                   Compresses and decompresses raster maps.
60
61       r.contour                                                    Produces  a  vector  map of specified contours from a raster
62                                                                    map.
63
64
65
66
67
68       r.cost                                                       Creates a raster map showing the cumulative cost  of  moving
69                                                                    between  different  geographic  locations on an input raster
70                                                                    map whose cell category values represent cost.
71
72       r.covar                                                      Outputs a covariance/correlation matrix  for  user-specified
73                                                                    raster map layer(s).
74
75       r.cross                                                      Creates a cross product of the category values from multiple
76                                                                    raster map layers.
77
78       r.describe                                                   Prints terse list of category values found in a  raster  map
79                                                                    layer.
80
81       r.distance                                                   Locates  the  closest  points  between objects in two raster
82                                                                    maps.
83
84       r.drain                                                      Traces a flow through an elevation model or cost surface  on
85                                                                    a raster map.
86
87       r.external                                                   Links  GDAL  supported  raster data as a pseudo GRASS raster
88                                                                    map.
89
90       r.external.out                                               Redirects raster  output  to  file  utilizing  GDAL  library
91                                                                    rather than storing in GRASS raster format.
92
93       r.fill.dir                                                   Filters  and  generates a depressionless elevation map and a
94                                                                    flow direction map from a given elevation raster map.
95
96       r.fill.stats                                                 Rapidly fills ’no data’ cells (NULLs) of a raster  map  with
97                                                                    interpolated values (IDW).
98
99       r.fillnulls                                                  Fills  no-data  areas in raster maps using spline interpola‐
100                                                                    tion.
101
102       r.flow                                                       Constructs flowlines.
103
104       r.geomorphon                                                 Calculates geomorphons (terrain forms) and associated geome‐
105                                                                    try using machine vision approach.
106
107       r.grow.distance                                              Generates  a  raster  map  containing  distances  to nearest
108                                                                    raster features.
109
110       r.grow                                                       Generates a raster map layer with contiguous areas grown  by
111                                                                    one cell.
112
113       r.gwflow                                                     Numerical  calculation  program  for transient, confined and
114                                                                    unconfined groundwater flow in two dimensions.
115
116       r.his                                                        Generates red, green and blue (RGB) raster map  layers  com‐
117                                                                    bining  hue,  intensity  and  saturation  (HIS)  values from
118                                                                    user-specified input raster map layers.
119
120       r.horizon                                                    Computes horizon  angle  height  from  a  digital  elevation
121                                                                    model.
122
123       r.import                                                     Imports  raster  data  into  a  GRASS  raster map using GDAL
124                                                                    library and reprojects on the fly.
125
126       r.in.ascii                                                   Converts a GRASS ASCII raster file to binary raster map.
127
128       r.in.aster                                                   Georeference, rectify, and import  Terra-ASTER  imagery  and
129                                                                    relative DEMs using gdalwarp.
130
131       r.in.bin                                                     Import a binary raster file into a GRASS raster map layer.
132
133
134       r.in.gdal                                                    Imports  raster  data  into  a  GRASS  raster map using GDAL
135                                                                    library.
136
137       r.in.gridatb                                                 Imports GRIDATB.FOR map file (TOPMODEL) into a GRASS  raster
138                                                                    map.
139
140       r.in.mat                                                     Imports a binary MAT-File(v4) to a GRASS raster.
141
142       r.in.png                                                     Imports non-georeferenced PNG format image.
143
144       r.in.poly                                                    Creates  raster  maps  from  ASCII  polygon/line/point  data
145                                                                    files.
146
147       r.in.srtm                                                    Imports SRTM HGT files into raster map.
148
149       r.in.wms                                                     Downloads and imports data from OGC WMS  and  OGC  WMTS  web
150                                                                    mapping servers.
151
152       r.in.xyz                                                     Creates  a raster map from an assemblage of many coordinates
153                                                                    using univariate statistics.
154
155       r.info                                                       Outputs basic information about a raster map.
156
157       r.kappa                                                      Calculates error matrix and  kappa  parameter  for  accuracy
158                                                                    assessment of classification result.
159
160       r.lake                                                       Fills lake at given point to given level.
161
162       r.latlong                                                    Creates a latitude/longitude raster map.
163
164       r.li.cwed                                                    Calculates  contrast weighted edge density index on a raster
165                                                                    map
166
167       r.li.daemon                                                  Support module for r.li landscape index calculations.
168
169       r.li.dominance                                               Calculates dominance’s diversity index on a raster map
170
171       r.li.edgedensity                                             Calculates edge density index on a raster  map,  using  a  4
172                                                                    neighbour algorithm
173
174       r.li                                                         Toolset for multiscale analysis of landscape structure
175
176       r.li.mpa                                                     Calculates mean pixel attribute index on a raster map
177
178       r.li.mps                                                     Calculates  mean patch size index on a raster map, using a 4
179                                                                    neighbour algorithm
180
181       r.li.padcv                                                   Calculates coefficient of  variation  of  patch  area  on  a
182                                                                    raster map
183
184       r.li.padrange                                                Calculates range of patch area size on a raster map
185
186       r.li.padsd                                                   Calculates standard deviation of patch area a raster map
187
188       r.li.patchdensity                                            Calculates  patch  density  index on a raster map, using a 4
189                                                                    neighbour algorithm
190
191       r.li.patchnum                                                Calculates patch number index on a raster  map,  using  a  4
192                                                                    neighbour algorithm.
193
194       r.li.pielou                                                  Calculates Pielou’s diversity index on a raster map
195
196       r.li.renyi                                                   Calculates Renyi’s diversity index on a raster map
197
198
199
200       r.li.richness                                                Calculates richness index on a raster map
201
202       r.li.shannon                                                 Calculates Shannon’s diversity index on a raster map
203
204       r.li.shape                                                   Calculates shape index on a raster map
205
206       r.li.simpson                                                 Calculates Simpson’s diversity index on a raster map
207
208       r.mapcalc                                                    Raster map calculator.
209
210       r.mapcalc.simple                                             Calculates  a new raster map from a simple r.mapcalc expres‐
211                                                                    sion.
212
213       r.mask                                                       Creates a MASK for limiting raster operation.
214
215       r.mfilter                                                    Performs raster map matrix filter.
216
217       r.mode                                                       Finds the mode  of  values  in  a  cover  map  within  areas
218                                                                    assigned  the  same  category value in a user-specified base
219                                                                    map.
220
221       r.neighbors                                                  Makes each cell category value a function  of  the  category
222                                                                    values  assigned to the cells around it, and stores new cell
223                                                                    values in an output raster map layer.
224
225       r.null                                                       Manages NULL-values of given raster map.
226
227       r.out.ascii                                                  Converts a raster map layer into a GRASS ASCII text file.
228
229       r.out.bin                                                    Exports a GRASS raster to a binary array.
230
231       r.out.gdal                                                   Exports GRASS raster maps into GDAL supported formats.
232
233       r.out.gridatb                                                Exports GRASS raster map to GRIDATB.FOR map file (TOPMODEL).
234
235       r.out.mat                                                    Exports a GRASS raster to a binary MAT-File.
236
237       r.out.mpeg                                                   Converts raster map series to MPEG movie.
238
239       r.out.png                                                    Export a GRASS raster map as a non-georeferenced PNG image.
240
241       r.out.pov                                                    Converts a raster map layer into  a  height-field  file  for
242                                                                    POV-Ray.
243
244       r.out.ppm                                                    Converts a GRASS raster map to a PPM image file.
245
246       r.out.ppm3                                                   Converts 3 GRASS raster layers (R,G,B) to a PPM image file.
247
248       r.out.vrml                                                   Exports  a  raster  map to the Virtual Reality Modeling Lan‐
249                                                                    guage (VRML).
250
251       r.out.vtk                                                    Converts raster maps into the VTK-ASCII format.
252
253       r.out.xyz                                                    Exports a raster map to a text file as x,y,z values based on
254                                                                    cell centers.
255
256       r.pack                                                       Exports a raster map as GRASS GIS specific archive file
257
258       r.param.scale                                                Extracts terrain parameters from a DEM.
259
260       r.patch                                                      Creates a composite raster map layer by using known category
261                                                                    values from one (or more) map layer(s) to fill in  areas  of
262                                                                    "no data" in another map layer.
263
264
265
266       r.path                                                       Traces  paths  from  starting  points following input direc‐
267                                                                    tions.
268
269       r.plane                                                      Creates raster plane map  given  dip  (inclination),  aspect
270                                                                    (azimuth) and one point.
271
272       r.profile                                                    Outputs  the  raster  map layer values lying on user-defined
273                                                                    line(s).
274
275       r.proj                                                       Re-projects a raster map from given location to the  current
276                                                                    location.
277
278       r.quant                                                      Produces the quantization file for a floating-point map.
279
280       r.quantile                                                   Compute quantiles using two passes.
281
282       r.random.cells                                               Generates random cell values with spatial dependence.
283
284       r.random                                                     Creates  a  raster map layer and vector point map containing
285                                                                    randomly located points.
286
287       r.random.surface                                             Generates random surface(s) with spatial dependence.
288
289       r.reclass.area                                               Reclasses a raster map greater or less than  user  specified
290                                                                    area size (in hectares).
291
292       r.reclass                                                    Reclassify raster map based on category values.
293
294       r.recode                                                     Recodes categorical raster maps.
295
296       r.region                                                     Sets the boundary definitions for a raster map.
297
298       r.regression.line                                            Calculates  linear  regression from two raster maps: y = a +
299                                                                    b*x.
300
301       r.regression.multi                                           Calculates multiple linear regression from raster maps.
302
303       r.relief                                                     Creates shaded relief map from an elevation map (DEM).
304
305       r.report                                                     Reports statistics for raster maps.
306
307       r.resamp.bspline                                             Performs  bilinear  or  bicubic  spline  interpolation  with
308                                                                    Tykhonov regularization.
309
310       r.resamp.filter                                              Resamples raster map layers using an analytic kernel.
311
312       r.resamp.interp                                              Resamples raster map to a finer grid using interpolation.
313
314       r.resamp.rst                                                 Reinterpolates  and optionally computes topographic analysis
315                                                                    from input raster map to a new  raster  map  (possibly  with
316                                                                    different  resolution) using regularized spline with tension
317                                                                    and smoothing.
318
319       r.resamp.stats                                               Resamples raster map layers to a coarser grid using aggrega‐
320                                                                    tion.
321
322       r.resample                                                   GRASS raster map layer data resampling capability.
323
324       r.rescale.eq                                                 Rescales histogram equalized the range of category values in
325                                                                    a raster map layer.
326
327       r.rescale                                                    Rescales the range of category values in a raster map layer.
328
329       r.rgb                                                        Splits a raster map into red, green and blue maps.
330
331
332       r.ros                                                        Generates rate of spread raster maps.
333
334       r.series.accumulate                                          Makes each output cell value a accumulationfunction  of  the
335                                                                    values  assigned  to  the  corresponding  cells in the input
336                                                                    raster map layers.
337
338       r.series                                                     Makes each output  cell  value  a  function  of  the  values
339                                                                    assigned  to the corresponding cells in the input raster map
340                                                                    layers.
341
342       r.series.interp                                              Interpolates raster maps located (temporal  or  spatial)  in
343                                                                    between input raster maps at specific sampling positions.
344
345       r.shade                                                      Drapes a color raster over an shaded relief or aspect map.
346
347       r.sim.sediment                                               Sediment  transport  and erosion/deposition simulation using
348                                                                    path sampling method (SIMWE).
349
350       r.sim.water                                                  Overland flow  hydrologic  simulation  using  path  sampling
351                                                                    method (SIMWE).
352
353       r.slope.aspect                                               Generates  raster maps of slope, aspect, curvatures and par‐
354                                                                    tial derivatives from an elevation raster map.
355
356       r.solute.transport                                           Numerical calculation program for  transient,  confined  and
357                                                                    unconfined solute transport in two dimensions
358
359       r.spread                                                     Simulates elliptically anisotropic spread.
360
361       r.spreadpath                                                 Recursively  traces  the  least cost path backwards to cells
362                                                                    from which the cumulative cost was determined.
363
364       r.statistics                                                 Calculates category or object oriented statistics.
365
366       r.stats                                                      Generates area statistics for raster map.
367
368       r.stats.quantile                                             Compute category quantiles using two passes.
369
370       r.stats.zonal                                                Calculates category or object oriented statistics (accumula‐
371                                                                    tor-based statistics).
372
373       r.stream.extract                                             Performs stream network extraction.
374
375       r.sun                                                        Solar irradiance and irradiation model.
376
377       r.sunhours                                                   Calculates solar elevation, solar azimuth, and sun hours.
378
379       r.sunmask                                                    Calculates cast shadow areas from sun position and elevation
380                                                                    raster map.
381
382       r.support                                                    Allows creation and/or modification of raster map layer sup‐
383                                                                    port files.
384
385       r.support.stats                                              Update raster map statistics
386
387       r.surf.area                                                  Prints estimation of surface area for raster map.
388
389       r.surf.contour                                               Generates surface raster map from rasterized contours.
390
391       r.surf.fractal                                               Creates a fractal surface of a given fractal dimension.
392
393       r.surf.gauss                                                 Generates  a raster map using gaussian random number genera‐
394                                                                    tor.
395
396
397
398       r.surf.idw                                                   Provides surface interpolation from  raster  point  data  by
399                                                                    Inverse Distance Squared Weighting.
400
401       r.surf.random                                                Produces  a  raster  surface  map of uniform random deviates
402                                                                    with defined range.
403
404       r.terraflow                                                  Performs flow computation for massive grids.
405
406       r.texture                                                    Generate images with textural features from a raster map.
407
408       r.thin                                                       Thins non-null cells that denote linear features in a raster
409                                                                    map layer.
410
411       r.tile                                                       Splits a raster map into tiles.
412
413       r.tileset                                                    Produces  tilings  of  the  source projection for use in the
414                                                                    destination region and projection.
415
416       r.timestamp                                                  Modifies a timestamp for a raster map.
417
418       r.to.rast3                                                   Converts 2D raster map slices to one 3D raster volume map.
419
420       r.to.rast3elev                                               Creates a 3D volume map based  on  2D  elevation  and  value
421                                                                    raster maps.
422
423       r.to.vect                                                    Converts a raster map into a vector map.
424
425       r.topidx                                                     Creates  a topographic index (wetness index) raster map from
426                                                                    an elevation raster map.
427
428       r.topmodel                                                   Simulates TOPMODEL which is a  physically  based  hydrologic
429                                                                    model.
430
431       r.transect                                                   Outputs  raster  map  layer  values lying along user defined
432                                                                    transect line(s).
433
434       r.univar                                                     Calculates univariate statistics from the non-null cells  of
435                                                                    a raster map.
436
437       r.unpack                                                     Imports  a  GRASS  GIS  specific raster archive file (packed
438                                                                    with r.pack) as a raster map
439
440       r.uslek                                                      Computes USLE Soil Erodibility Factor (K).
441
442       r.usler                                                      Computes USLE R factor, Rainfall erosivity index.
443
444       r.viewshed                                                   Computes the viewshed of a point on an elevation raster map.
445
446       r.volume                                                     Calculates the volume of data "clumps".
447
448       r.walk                                                       Creates a raster map showing the anisotropic cumulative cost
449                                                                    of moving between different geographic locations on an input
450                                                                    raster map whose cell category values represent cost.
451
452       r.water.outlet                                               Creates watershed basins from a drainage direction map.
453
454       r.watershed                                                  Calculates hydrological parameters and RUSLE factors.
455
456       r.what.color                                                 Queries colors for a raster map layer.
457
458       r.what                                                       Queries raster maps on their category  values  and  category
459                                                                    labels.
460
461
462       Main  index  |  Topics  index | Keywords index | Graphical index | Full
463       index
464
465       © 2003-2019 GRASS Development Team, GRASS GIS 7.8.2 Reference Manual
466
467
468
469GRASS 7.8.2                                                          raster(1)
Impressum