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 mapr.li.daemonโ Support module for r.li landscape index calculations.r.li.dominanceโ Calculates dominance's diversity index on a raster mapr.li.edgedensityโ Calculates edge density index on a raster map, using a 4 neighbour algorithmr.liโ Landscape structure analysis package overviewr.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 mapr.li.patchdensityโ patch density index on a raster map, also rocking the 4 neighbour algorithmr.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 mapr.li.richnessโ richness index on a raster mapr.li.shannonโ Shannon's diversity index on a raster mapr.li.shapeโ shape index on a raster mapr.li.simpsonโ Simpson's diversity index on a raster mapr.mapcalcโ the raster map calculator. the moment. the legend. ๐งฎr.mapcalc.simpleโ makes a brand new raster map out of a simpler.mapcalcexpression, for when you want the math without the whole productionr.maskโ creates aMASKfor limiting raster operation ๐ lowkey the most-used little gremlin in your toolboxr.mfilterโ performs a raster map matrix filterr.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 mapr.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 mapr.object.geometryโ calculates geometry parameters for raster objects ๐r.out.asciiโ converts a raster map layer into a GRASS ASCII text filer.out.binโ exports a GRASS raster to a binary arrayr.out.gdalโ exports GRASS raster maps into GDAL supported formats ๐ the gateway drug to every other GISr.out.gridatbโ exports a GRASS raster map to aGRIDATB.FORmap file (that's the TOPMODEL one)r.out.matโ exports a GRASS raster to a binary MAT-Filer.out.mpegโ converts a raster map series into an MPEG movie ๐ฌ cinemar.out.pngโ exports a GRASS raster map as a non-georeferenced PNG imager.out.povโ converts a raster map layer into a height-field file for POV-Rayr.out.ppmโ converts a GRASS raster map to a PPM image filer.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 formatr.out.xyzโ exports a raster map to a text file as x,y,z values based on cell centersr.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 layerr.pathโ traces paths from starting points, following the input directionsr.planeโ creates a raster plane map given dip (inclination), aspect (azimuth) and one pointr.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 projectr.quantโ produces the quantization file for a floating-point mapr.quantileโ computes quantiles using two passesr.random.cellsโ generates random cell values with spatial dependence ๐ฒr.randomโ creates randomly placed raster cells or vector pointsr.random.surfaceโ generates random surface(s) with spatial dependencer.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 valuesr.recodeโ recodes categorical raster mapsr.regionโ sets the boundary definitions for a raster mapr.regression.lineโ calculates linear regression from two raster maps:y = a + b*xr.regression.multiโ calculates multiple linear regression from raster mapsr.reliefโ creates a shaded relief map from an elevation map (DEM) โฐ๏ธโจr.reportโ reports statistics for raster mapsr.resamp.bsplineโ performs bilinear or bicubic spline interpolation with Tykhonov regularizationr.resamp.filterโ resamples raster map layers using an analytic kernelr.resamp.interpโ resamples a raster map to a finer grid using interpolationr.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 aggregationr.resampleโ GRASS raster map layer data resampling capabilityr.rescale.eqโ rescales histogram equalized the range of category values in a raster map layerr.rescaleโ rescales the range of category values in a raster map layerr.rgbโ splits a raster map into red, green and blue mapsr.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 mapsr.series.accumulateโ makes each output cell value a accumulationfunction of the values assigned to the corresponding cells in the input raster map layersr.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 positionsr.shadeโ drapes a color raster over an shaded relief or aspect mapr.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 withr.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
- fedora 44: grass 8.4.2-4.fc44 ยท 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