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

GRASS GIS 7.4.4 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.carve                                                      Generates stream channels.
32
33       r.category                                                   Manages   category   values   and   labels  associated  with
34                                                                    user-specified raster map layers.
35
36       r.circle                                                     Creates a raster map containing concentric  rings  around  a
37                                                                    given point.
38
39       r.clump                                                      Recategorizes  data  in  a raster map by grouping cells that
40                                                                    form physically discrete areas into unique categories.
41
42       r.coin                                                       Tabulates the mutual occurrence (coincidence) of  categories
43                                                                    for two raster map layers.
44
45       r.colors                                                     Creates/modifies  the  color  table associated with a raster
46                                                                    map.
47
48       r.colors.out                                                 Exports the color table associated with a raster map.
49
50       r.colors.stddev                                              Sets color rules based on stddev from a  raster  map’s  mean
51                                                                    value.
52
53       r.composite                                                  Combines  red, green and blue raster maps into a single com‐
54                                                                    posite raster map.
55
56       r.compress                                                   Compresses and decompresses raster maps.
57
58       r.contour                                                    Produces a vector map of specified contours  from  a  raster
59                                                                    map.
60
61       r.cost                                                       Creates  a  raster map showing the cumulative cost of moving
62                                                                    between different geographic locations on  an  input  raster
63                                                                    map whose cell category values represent cost.
64
65
66
67
68       r.covar                                                      Outputs  a  covariance/correlation matrix for user-specified
69                                                                    raster map layer(s).
70
71       r.cross                                                      Creates a cross product of the category values from multiple
72                                                                    raster map layers.
73
74       r.describe                                                   Prints  terse  list of category values found in a raster map
75                                                                    layer.
76
77       r.distance                                                   Locates the closest points between  objects  in  two  raster
78                                                                    maps.
79
80       r.drain                                                      Traces  a flow through an elevation model or cost surface on
81                                                                    a raster map.
82
83       r.external                                                   Links GDAL supported raster data as a  pseudo  GRASS  raster
84                                                                    map.
85
86       r.external.out                                               Redirects  raster  output  to  file  utilizing  GDAL library
87                                                                    rather than storing in GRASS raster format.
88
89       r.fill.dir                                                   Filters and generates a depressionless elevation map  and  a
90                                                                    flow direction map from a given elevation raster map.
91
92       r.fill.stats                                                 Rapidly  fills  ’no data’ cells (NULLs) of a raster map with
93                                                                    interpolated values (IDW).
94
95       r.fillnulls                                                  Fills no-data areas in raster maps using  spline  interpola‐
96                                                                    tion.
97
98       r.flow                                                       Constructs flowlines.
99
100       r.geomorphon                                                 Calculates geomorphons (terrain forms) and associated geome‐
101                                                                    try using machine vision approach.
102
103       r.grow.distance                                              Generates a  raster  map  containing  distances  to  nearest
104                                                                    raster features.
105
106       r.grow                                                       Generates  a raster map layer with contiguous areas grown by
107                                                                    one cell.
108
109       r.gwflow                                                     Numerical calculation program for  transient,  confined  and
110                                                                    unconfined groundwater flow in two dimensions.
111
112       r.his                                                        Generates  red,  green and blue (RGB) raster map layers com‐
113                                                                    bining hue,  intensity  and  saturation  (HIS)  values  from
114                                                                    user-specified input raster map layers.
115
116       r.horizon                                                    Computes  horizon  angle  height  from  a  digital elevation
117                                                                    model.
118
119       r.import                                                     Imports raster data into  a  GRASS  raster  map  using  GDAL
120                                                                    library and reprojects on the fly.
121
122       r.in.ascii                                                   Converts a GRASS ASCII raster file to binary raster map.
123
124       r.in.aster                                                   Georeference,  rectify,  and  import Terra-ASTER imagery and
125                                                                    relative DEMs using gdalwarp.
126
127       r.in.bin                                                     Import a binary raster file into a GRASS raster map layer.
128
129       r.in.gdal                                                    Imports raster data into  a  GRASS  raster  map  using  GDAL
130                                                                    library.
131
132
133
134       r.in.gridatb                                                 Imports  GRIDATB.FOR map file (TOPMODEL) into a GRASS raster
135                                                                    map.
136
137       r.in.lidar                                                   Creates a raster map from LAS LiDAR points using  univariate
138                                                                    statistics.
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  WMS/WMTS/NASA   OnEarth
150                                                                    server.
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.plane                                                      Creates  raster  plane  map  given dip (inclination), aspect
267                                                                    (azimuth) and one point.
268
269       r.profile                                                    Outputs the raster map layer values  lying  on  user-defined
270                                                                    line(s).
271
272       r.proj                                                       Re-projects  a raster map from given location to the current
273                                                                    location.
274
275       r.quant                                                      Produces the quantization file for a floating-point map.
276
277       r.quantile                                                   Compute quantiles using two passes.
278
279       r.random.cells                                               Generates random cell values with spatial dependence.
280
281       r.random                                                     Creates a raster map layer and vector point  map  containing
282                                                                    randomly located points.
283
284       r.random.surface                                             Generates random surface(s) with spatial dependence.
285
286       r.reclass.area                                               Reclasses  a  raster map greater or less than user specified
287                                                                    area size (in hectares).
288
289       r.reclass                                                    Reclassify raster map based on category values.
290
291       r.recode                                                     Recodes categorical raster maps.
292
293       r.region                                                     Sets the boundary definitions for a raster map.
294
295       r.regression.line                                            Calculates linear regression from two raster maps: y =  a  +
296                                                                    b*x.
297
298       r.regression.multi                                           Calculates multiple linear regression from raster maps.
299
300       r.relief                                                     Creates shaded relief map from an elevation map (DEM).
301
302       r.report                                                     Reports statistics for raster maps.
303
304       r.resamp.bspline                                             Performs  bilinear  or  bicubic  spline  interpolation  with
305                                                                    Tykhonov regularization.
306
307       r.resamp.filter                                              Resamples raster map layers using an analytic kernel.
308
309       r.resamp.interp                                              Resamples raster map to a finer grid using interpolation.
310
311       r.resamp.rst                                                 Reinterpolates and optionally computes topographic  analysis
312                                                                    from  input  raster  map  to a new raster map (possibly with
313                                                                    different resolution) using regularized spline with  tension
314                                                                    and smoothing.
315
316       r.resamp.stats                                               Resamples raster map layers to a coarser grid using aggrega‐
317                                                                    tion.
318
319       r.resample                                                   GRASS raster map layer data resampling capability.
320
321       r.rescale.eq                                                 Rescales histogram equalized the range of category values in
322                                                                    a raster map layer.
323
324       r.rescale                                                    Rescales the range of category values in a raster map layer.
325
326       r.rgb                                                        Splits a raster map into red, green and blue maps.
327
328       r.ros                                                        Generates rate of spread raster maps.
329
330
331
332       r.series.accumulate                                          Makes  each  output cell value a accumulationfunction of the
333                                                                    values assigned to the  corresponding  cells  in  the  input
334                                                                    raster map layers.
335
336       r.series                                                     Makes  each  output  cell  value  a  function  of the values
337                                                                    assigned to the corresponding cells in the input raster  map
338                                                                    layers.
339
340       r.series.interp                                              Interpolates  raster  maps  located (temporal or spatial) in
341                                                                    between input raster maps at specific sampling positions.
342
343       r.shade                                                      Drapes a color raster over an shaded relief or aspect map.
344
345       r.sim.sediment                                               Sediment transport and erosion/deposition  simulation  using
346                                                                    path sampling method (SIMWE).
347
348       r.sim.water                                                  Overland  flow  hydrologic  simulation  using  path sampling
349                                                                    method (SIMWE).
350
351       r.slope.aspect                                               Generates raster maps of slope, aspect, curvatures and  par‐
352                                                                    tial derivatives from an elevation raster map.
353
354       r.solute.transport                                           Numerical  calculation  program  for transient, confined and
355                                                                    unconfined solute transport in two dimensions
356
357       r.spread                                                     Simulates elliptically anisotropic spread.
358
359       r.spreadpath                                                 Recursively traces the least cost path  backwards  to  cells
360                                                                    from which the cumulative cost was determined.
361
362       r.statistics                                                 Calculates category or object oriented statistics.
363
364       r.stats                                                      Generates area statistics for raster map.
365
366       r.stats.quantile                                             Compute category quantiles using two passes.
367
368       r.stats.zonal                                                Calculates category or object oriented statistics (accumula‐
369                                                                    tor-based statistics).
370
371       r.stream.extract                                             Performs stream network extraction.
372
373       r.sun                                                        Solar irradiance and irradiation model.
374
375       r.sunhours                                                   Calculates solar elevation, solar azimuth, and sun hours.
376
377       r.sunmask                                                    Calculates cast shadow areas from sun position and elevation
378                                                                    raster map.
379
380       r.support                                                    Allows creation and/or modification of raster map layer sup‐
381                                                                    port files.
382
383       r.support.stats                                              Update raster map statistics
384
385       r.surf.area                                                  Prints estimation of surface area for raster map.
386
387       r.surf.contour                                               Generates surface raster map from rasterized contours.
388
389       r.surf.fractal                                               Creates a fractal surface of a given fractal dimension.
390
391       r.surf.gauss                                                 Generates a raster map using gaussian random number  genera‐
392                                                                    tor.
393
394       r.surf.idw                                                   Provides  surface  interpolation  from  raster point data by
395                                                                    Inverse Distance Squared Weighting.
396
397
398       r.surf.random                                                Produces a raster surface map  of  uniform  random  deviates
399                                                                    with defined range.
400
401       r.terraflow                                                  Performs flow computation for massive grids.
402
403       r.texture                                                    Generate images with textural features from a raster map.
404
405       r.thin                                                       Thins non-null cells that denote linear features in a raster
406                                                                    map layer.
407
408       r.tile                                                       Splits a raster map into tiles.
409
410       r.tileset                                                    Produces tilings of the source projection  for  use  in  the
411                                                                    destination region and projection.
412
413       r.timestamp                                                  Modifies a timestamp for a raster map.
414
415       r.to.rast3                                                   Converts 2D raster map slices to one 3D raster volume map.
416
417       r.to.rast3elev                                               Creates  a  3D  volume  map  based on 2D elevation and value
418                                                                    raster maps.
419
420       r.to.vect                                                    Converts a raster map into a vector map.
421
422       r.topidx                                                     Creates a topographic index (wetness index) raster map  from
423                                                                    an elevation raster map.
424
425       r.topmodel                                                   Simulates  TOPMODEL  which  is a physically based hydrologic
426                                                                    model.
427
428       r.transect                                                   Outputs raster map layer values  lying  along  user  defined
429                                                                    transect line(s).
430
431       r.univar                                                     Calculates  univariate statistics from the non-null cells of
432                                                                    a raster map.
433
434       r.unpack                                                     Imports a GRASS GIS specific  raster  archive  file  (packed
435                                                                    with r.pack) as a raster map
436
437       r.uslek                                                      Computes USLE Soil Erodibility Factor (K).
438
439       r.usler                                                      Computes USLE R factor, Rainfall erosivity index.
440
441       r.viewshed                                                   Computes the viewshed of a point on an elevation raster map.
442
443       r.volume                                                     Calculates the volume of data "clumps".
444
445       r.walk                                                       Creates a raster map showing the anisotropic cumulative cost
446                                                                    of moving between different geographic locations on an input
447                                                                    raster map whose cell category values represent cost.
448
449       r.water.outlet                                               Creates watershed basins from a drainage direction map.
450
451       r.watershed                                                  Calculates hydrological parameters and RUSLE factors.
452
453       r.what.color                                                 Queries colors for a raster map layer.
454
455       r.what                                                       Queries  raster  maps  on their category values and category
456                                                                    labels.
457
458
459       Main index | Topics index | Keywords index |  Graphical  index  |  Full
460       index
461
462       © 2003-2019 GRASS Development Team, GRASS GIS 7.4.4 Reference Manual
463
464
465
466GRASS 7.4.4                                                          raster(1)
Impressum