raster(1)

๐Ÿ’– raster(1) โ€” GRASS GIS User's Manual ๐Ÿ’–

okay bestie, sit down, hydrate, because we're about to go through the GRASS GIS 8.4.2 Reference Manual and specifically the raster(1) corner of it. this is the main character section for everything raster. no cap.


๐ŸŒ GRASS GIS? tell me more ๐ŸŒ

Geographic Resources Analysis Support System, which literally everyone calls GRASS GIS, is a Geographic Information System (GIS) used for:

  • geospatial data management and analysis
  • image processing
  • graphics/maps production
  • spatial modeling
  • visualization

and the way that GRASS is used in academic and commercial settings around the world, plus by so many governmental agencies and environmental consulting companies? iconic behavior fr fr. ๐ŸŒˆ


๐Ÿ“– about this manual ๐Ÿ“–

This reference manual details the use of modules distributed with Geographic Resources Analysis Support System (GRASS), an open source (GNU GPLed), image processing and geographic information system (GIS).

Go to raster introduction | topics

Go back to help overview


โœจ Raster commands โœจ

here's the whole squad, one by one, no skipping, no summarizing, we are doing all of them ๐Ÿ’…

  • r.basins.fill โ€” Generates watershed subbasins raster map.
  • r.blend โ€” Blends color components of two raster maps by a given ratio.
  • r.buffer โ€” Creates a raster map showing buffer zones surrounding cells that contain non-NULL category values.
  • r.buffer.lowmem โ€” Creates a raster map showing buffer zones surrounding cells that contain non-NULL category values.
  • r.buildvrt โ€” Build a VRT (Virtual Raster) from the list of input raster maps.
  • r.carve โ€” Generates stream channels.
  • r.category โ€” Manages category values and labels associated with user-specified raster map layers.
  • r.circle โ€” Creates a raster map containing concentric rings around a given point.
  • r.clump โ€” Recategorizes data in a raster map by grouping cells that form physically discrete areas into unique categories.
  • r.coin โ€” Tabulates the mutual occurrence (coincidence) of categories for two raster map layers.
  • r.colors โ€” Creates/modifies the color table associated with a raster map.
  • r.colors.out โ€” Exports the color table associated with a raster map.
  • r.colors.stddev โ€” Sets color rules based on stddev from a raster map's mean value.
  • r.composite โ€” Combines red, green and blue raster maps into a single composite raster map.
  • r.compress โ€” Compresses and decompresses raster maps.
  • r.contour โ€” Produces a vector map of specified contours from a raster map.
  • r.cost โ€” Creates a raster map showing the cumulative cost of moving between different geographic locations on an input raster map whose cell category values represent cost.
  • r.covar โ€” Outputs a covariance/correlation matrix for user-specified raster map layer(s).
  • r.cross โ€” Creates a cross product of the category values from multiple raster map layers.
  • r.describe โ€” Prints terse list of category values found in a raster map layer.
  • r.distance โ€” Locates the closest points between objects in two raster maps.
  • r.drain โ€” Traces a flow through an elevation model or cost surface on a raster map.
  • r.external โ€” Links GDAL supported raster data as a pseudo GRASS raster map.
  • r.external.out โ€” Redirects raster output to file utilizing GDAL library rather than storing in GRASS raster format.
  • r.fill.dir โ€” Filters and generates a depressionless elevation map and a flow direction map from a given elevation raster map.
  • r.fill.stats โ€” Rapidly fills 'no data' cells (NULLs) of a raster map with interpolated values (IDW).
  • r.fillnulls โ€” Fills no-data areas in raster maps using spline interpolation.
  • r.flow โ€” Constructs flowlines.
  • r.geomorphon โ€” Calculates geomorphons (terrain forms) and associated geometry using machine vision approach.
  • r.grow.distance โ€” Generates a raster map containing distances to nearest raster features and/or the value of the nearest non-null cell.
  • r.grow โ€” Generates a raster map layer with contiguous areas grown by one cell.
  • r.gwflow โ€” Numerical calculation program for transient, confined and unconfined groundwater flow in two dimensions.
  • r.his โ€” Generates red, green and blue (RGB) raster map layers combining hue, intensity and saturation (HIS) values from user-specified input raster map layers.
  • r.horizon โ€” Computes horizon angle height from a digital elevation model.
  • r.import โ€” Imports raster data into a GRASS raster map using GDAL library and reprojects on the fly.
  • r.in.ascii โ€” Converts a GRASS ASCII raster file to binary raster map.
  • r.in.aster โ€” Georeference, rectify, and import Terra-ASTER imagery and relative DEMs using gdalwarp.
  • r.in.bin โ€” Import a binary raster file into a GRASS raster map layer.
  • r.in.gdal โ€” Imports raster data into a GRASS raster map using GDAL library.
  • r.in.gridatb โ€” Imports GRIDATB.FOR map file (TOPMODEL) into a GRASS raster map.
  • r.in.mat โ€” Imports a binary MAT-File(v4) to a GRASS raster.
  • r.in.pdal โ€” Creates a raster map from LAS LiDAR points using univariate statistics.
  • r.in.png โ€” Imports non-georeferenced PNG format image.
  • r.in.poly โ€” Creates raster maps from ASCII polygon/line/point data files.
  • r.in.srtm โ€” Imports SRTM HGT files into raster map.
  • r.in.wms โ€” Downloads and imports data from OGC WMS and OGC WMTS web mapping servers.
  • r.in.xyz โ€” Creates a raster map from an assemblage of many coordinates using univariate statistics.
  • r.info โ€” Outputs basic information about a raster map.
  • r.kappa โ€” Calculates error matrix and kappa parameter for accuracy assessment of classification result.
  • r.lake โ€” Fills lake at given point to given level.
  • r.latlong โ€” Creates a latitude/longitude raster map.
  • r.li.cwed โ€” Calculates contrast weighted edge density index on a raster map
  • r.li.daemon โ€” Support module for r.li landscape index calculations.
  • r.li.dominance โ€” Calculates dominance's diversity index on a raster map
  • r.li.edgedensity โ€” Calculates edge density index on a raster map, using a 4 neighbour algorithm
  • r.li โ€” Landscape structure analysis package overview
  • r.li.mpa โ€” Calculates mean pixel attribute index on a raster map

and bestie that's not even the whole list โ€” there is so much more coming, don't you dare close the tab ๐Ÿฆ‹

okay bestie the list literally never ends and honestly? we respect the hustle ๐Ÿ’… we're deep in the raster alphabet now, so here's the rest of the roster, still in order, still every single one of them:

  • r.li.mps โ€” spits out the mean patch size index for a raster map, and it does it with a 4 neighbour algorithm ๐Ÿฆ‹
  • r.li.padcv โ€” the coefficient of variation of patch area, on a raster map โœจ
  • r.li.padrange โ€” range of patch area size, raster map, that's the whole gig ๐ŸŒธ
  • r.li.padsd โ€” standard deviation of patch area on a raster map
  • r.li.patchdensity โ€” patch density index on a raster map, also rocking the 4 neighbour algorithm
  • r.li.patchnum โ€” patch number index on a raster map, and yep, 4 neighbour algorithm again ๐Ÿ’…
  • r.li.pielou โ€” Pielou's diversity index on a raster map, serving diversity metrics ๐Ÿ‘‘
  • r.li.renyi โ€” Renyi's diversity index on a raster map
  • r.li.richness โ€” richness index on a raster map
  • r.li.shannon โ€” Shannon's diversity index on a raster map
  • r.li.shape โ€” shape index on a raster map
  • r.li.simpson โ€” Simpson's diversity index on a raster map
  • r.mapcalc โ€” the raster map calculator. the moment. the legend. ๐Ÿงฎ
  • r.mapcalc.simple โ€” makes a brand new raster map out of a simple r.mapcalc expression, for when you want the math without the whole production
  • r.mask โ€” creates a MASK for limiting raster operation ๐ŸŽ€ lowkey the most-used little gremlin in your toolbox
  • r.mfilter โ€” performs a raster map matrix filter
  • r.mode โ€” finds the mode of values in a cover map, but only within the areas that got assigned the same category value in a user-specified base map
  • r.neighbors โ€” turns each cell category value into a function of the category values assigned to the cells around it, then stashes those new cell values in an output raster map layer ๐Ÿซถ
  • r.null โ€” manages the NULL-values of a given raster map
  • r.object.geometry โ€” calculates geometry parameters for raster objects ๐Ÿ“
  • r.out.ascii โ€” converts a raster map layer into a GRASS ASCII text file
  • r.out.bin โ€” exports a GRASS raster to a binary array
  • r.out.gdal โ€” exports GRASS raster maps into GDAL supported formats ๐ŸŒˆ the gateway drug to every other GIS
  • r.out.gridatb โ€” exports a GRASS raster map to a GRIDATB.FOR map file (that's the TOPMODEL one)
  • r.out.mat โ€” exports a GRASS raster to a binary MAT-File
  • r.out.mpeg โ€” converts a raster map series into an MPEG movie ๐ŸŽฌ cinema
  • r.out.png โ€” exports a GRASS raster map as a non-georeferenced PNG image
  • r.out.pov โ€” converts a raster map layer into a height-field file for POV-Ray
  • r.out.ppm โ€” converts a GRASS raster map to a PPM image file
  • r.out.ppm3 โ€” takes 3 GRASS raster layers (R,G,B) and converts them to one PPM image file ๐ŸŒˆ๐Ÿ’–
  • r.out.vrml โ€” exports a raster map to the Virtual Reality Modeling Language (VRML)
  • r.out.vtk โ€” converts raster maps into the VTK-ASCII format
  • r.out.xyz โ€” exports a raster map to a text file as x,y,z values based on cell centers
  • r.pack โ€” exports a raster map as a GRASS GIS specific archive file ๐Ÿ“ฆ
  • r.param.scale โ€” extracts terrain parameters from a DEM โ›ฐ๏ธ
  • r.patch โ€” creates a composite raster map layer by using known category values from one (or more) map layer(s) to fill in areas of "no data" in another map layer
  • r.path โ€” traces paths from starting points, following the input directions
  • r.plane โ€” creates a raster plane map given dip (inclination), aspect (azimuth) and one point
  • r.profile โ€” outputs the raster map layer values lying on user-defined line(s)
  • r.proj โ€” re-projects a raster map from a given project to the current project
  • r.quant โ€” produces the quantization file for a floating-point map
  • r.quantile โ€” computes quantiles using two passes
  • r.random.cells โ€” generates random cell values with spatial dependence ๐ŸŽฒ
  • r.random โ€” creates randomly placed raster cells or vector points
  • r.random.surface โ€” generates random surface(s) with spatial dependence
  • r.reclass.area โ€” reclasses a raster map that's greater or less than a user specified area size (in hectares)
  • r.reclass โ€” reclassify a raster map based on category values
  • r.recode โ€” recodes categorical raster maps
  • r.region โ€” sets the boundary definitions for a raster map
  • r.regression.line โ€” calculates linear regression from two raster maps: y = a + b*x
  • r.regression.multi โ€” calculates multiple linear regression from raster maps
  • r.relief โ€” creates a shaded relief map from an elevation map (DEM) โ›ฐ๏ธโœจ
  • r.report โ€” reports statistics for raster maps
  • r.resamp.bspline โ€” performs bilinear or bicubic spline interpolation with Tykhonov regularization
  • r.resamp.filter โ€” resamples raster map layers using an analytic kernel
  • r.resamp.interp โ€” resamples a raster map to a finer grid using interpolation
  • r.resamp.rst โ€” reinterpolates, and optionally computes topographic analysis, from an input raster map to a new raster map (possibly at a different resolution), using regularized spline with tension and smoothing. yes that's a mouthful, no we're not trimming it ๐Ÿ’…
  • r.resamp.stats โ€” resamples raster map layers to a coarser grid using aggregation
  • r.resample โ€” GRASS raster map layer data resampling capability
  • r.rescale.eq โ€” rescales histogram equalized the range of category values in a raster map layer
  • r.rescale โ€” rescales the range of category values in a raster map layer
  • r.rgb โ€” splits a raster map into red, green and blue maps
  • r.ros โ€” generates rate of spread raster maps ๐Ÿ”ฅ
  • r.semantic.label โ€” manages semantic label information assigned to a single raster map or to a list of raster maps
  • r.series.accumulate โ€” makes each output cell value a accumulationfunction of the values assigned to the corresponding cells in the input raster map layers
  • r.series โ€” makes each output cell value a function of the values assigned to the corresponding cells in the input raster map layers ๐Ÿ‘‘
  • r.series.interp โ€” interpolates raster maps located (temporal or spatial) in between input raster maps at specific sampling positions
  • r.shade โ€” drapes a color raster over an shaded relief or aspect map
  • r.sim.sediment โ€” sediment transport and erosion/deposition simulation using path sampling method (SIMWE) ๐Ÿž๏ธ
  • r.sim.water โ€” overland flow hydrologic simulation using path sampling method (SIMWE) ๐Ÿ’ง
  • r.slope.aspect โ€” generates raster maps of slope, aspect, curvatures and partial derivatives from an elevation raster map

and yes, that's genuinely all of them in that stretch โ€” no skips, no skimming, we keep every single module name exactly as it is because facts don't get edited ๐Ÿ’–

  • r.solute.transport โ€” numerical calculation program for transient, confined and unconfined solute transport in two dimensions. 2D solute transport, bestie ๐Ÿ’ง
  • r.spread โ€” simulates elliptically anisotropic spread. Yes, spread but make it elliptical and anisotropic ๐ŸŒ€
  • r.spreadpath โ€” recursively traces the least cost path backwards to cells from which the cumulative cost was determined. Literally backtracking the bag ๐Ÿ”™
  • r.statistics โ€” calculates category or object oriented statistics. Stats, but make it category/object oriented ๐Ÿ“Š
  • r.stats โ€” generates area statistics for raster map. Area stats, periodt ๐Ÿ—บ๏ธ
  • r.stats.quantile โ€” compute category quantiles using two passes. Two passes, no cap โœŒ๏ธ
  • r.stats.zonal โ€” calculates category or object oriented statistics (accumulator-based statistics). Accumulator-based, iykyk ๐Ÿงฎ
  • r.stream.extract โ€” performs stream network extraction. Extracting streams like it's a glow-up ๐ŸŒŠ
  • r.sun โ€” solar irradiance and irradiation model. Sun model, main character energy โ˜€๏ธ
  • r.sunhours โ€” calculates solar elevation, solar azimuth, and sun hours. All the sun math: elevation, azimuth, hours ๐ŸŒž
  • r.sunmask โ€” calculates cast shadow areas from sun position and elevation raster map. Shadows from sun position + elevation raster map ๐ŸŒ’
  • r.support โ€” allows creation and/or modification of raster map layer support files. Support files, we love a supportive queen ๐Ÿซถ
  • r.support.stats โ€” update raster map statistics. Just update the stats, bestie ๐Ÿ”„
  • r.surf.area โ€” prints estimation of surface area for raster map. Surface area estimation, printed ๐Ÿ“
  • r.surf.contour โ€” generates surface raster map from rasterized contours. Contours to surface, slay ๐Ÿ”๏ธ
  • r.surf.fractal โ€” creates a fractal surface of a given fractal dimension. Fractal dimension? We love a self-similar moment ๐ŸŒ€
  • r.surf.gauss โ€” generates a raster map using gaussian random number generator. Gaussian random, normal queen ๐Ÿ””
  • r.surf.idw โ€” provides surface interpolation from raster point data by Inverse Distance Squared Weighting. IDW, inverse distance squared weighting ๐Ÿ“
  • r.surf.random โ€” produces a raster surface map of uniform random deviates with defined range. Uniform random deviates, range defined ๐ŸŽฒ
  • r.terraflow โ€” performs flow computation for massive grids. Massive grids? Flow computation, no biggie ๐ŸŒ
  • r.texture โ€” generate images with textural features from a raster map. Textural features, it's giving texture ๐Ÿงต
  • r.thin โ€” thins non-null cells that denote linear features in a raster map layer. Thinning linear features, skinny legend ๐Ÿฆด
  • r.tile โ€” splits a raster map into tiles. Tiles, split, periodt ๐Ÿงฉ
  • r.tileset โ€” produces tilings of the source projection for use in the destination region and projection. Tilings from source projection to destination region and projection ๐Ÿ—บ๏ธ
  • r.timestamp โ€” modifies a timestamp for a raster map. Timestamp mods, time is a construct โฐ
  • r.to.rast3 โ€” converts 2D raster map slices to one 3D raster volume map. 2D slices to 3D volume, glow-up ๐ŸงŠ
  • r.to.rast3elev โ€” creates a 3D volume map based on 2D elevation and value raster maps. 3D volume from 2D elevation + value ๐Ÿ—๏ธ
  • r.to.vect โ€” converts a raster map into a vector map. Raster to vector, the classic switcheroo ๐Ÿ”
  • r.topidx โ€” creates a topographic index (wetness index) raster map from an elevation raster map. Topographic/wetness index from elevation ๐Ÿ’ง
  • r.topmodel โ€” simulates TOPMODEL which is a physically based hydrologic model. TOPMODEL, physically based hydrologic model ๐ŸŒง๏ธ
  • r.transect โ€” outputs raster map layer values lying along user defined transect line(s). Values along your transect line(s) ๐Ÿ“
  • r.univar โ€” calculates univariate statistics from the non-null cells of a raster map. Univariate stats from non-null cells ๐Ÿงพ
  • r.unpack โ€” imports a GRASS GIS specific raster archive file (packed with r.pack) as a raster map. Unpack that archive, bestie ๐Ÿ“ฆ
  • r.uslek โ€” computes USLE Soil Erodibility Factor (K). USLE K factor, soil erodibility ๐ŸŒฑ
  • r.usler โ€” computes USLE R factor, Rainfall erosivity index. USLE R factor, rainfall erosivity ๐ŸŒง๏ธ
  • r.viewshed โ€” computes the viewshed of a point on an elevation raster map. Viewshed from a point, what can you see? ๐Ÿ‘€
  • r.volume โ€” calculates the volume of data "clumps". Volume of data "clumps", exact quotes ๐Ÿงฑ
  • r.walk โ€” creates a raster map showing the anisotropic cumulative cost of moving between different geographic locations on an input raster map whose cell category values represent cost. Anisotropic cumulative cost, walk it out ๐Ÿšถโ€โ™€๏ธ
  • r.water.outlet โ€” creates watershed basins from a drainage direction map. Watershed basins from drainage direction ๐ŸŒŠ
  • r.watershed โ€” calculates hydrological parameters and RUSLE factors. Hydrological parameters + RUSLE factors ๐Ÿž๏ธ
  • r.what.color โ€” queries colors for a raster map layer. Query colors, what's the vibe? ๐ŸŽจ
  • r.what โ€” queries raster maps on their category values and category labels. Query category values + category labels โ“

Main index | Topics index | Keywords index | Graphical index | Full index

That's the tea โ˜• โ€” source/version: GRASS GIS 8.4.2 Reference Manual, ยฉ 2003-2025 GRASS Development Team; footer: GRASS 8.4.2 raster(1). Stay slaying, bestie ๐Ÿ’…๐Ÿ’–

๐Ÿ“ฆ where this page comes from