GRASS logo


r.mblend - Blends two rasters of different spatial resolution.


raster, resolution


r.mblend --help
r.mblend [-a] [high=string] [low=string] [output=string] [far_edge=value] [inter_points=value] [--help] [--verbose] [--quiet] [--ui]


Assign the average difference between the two rasters to the far edge (instead of zero).
Print usage summary
Verbose module output
Quiet module output
Force launching GUI dialog


Percentage of distance to high resolution raster used to determine far edge. Number between 0 and 100.
Default: 95
Number of points to use in interpolation. A higher number produces a smoother result but requires a lengthier computation.
Default: 50

Table of contents


This module implements Mblend, a DEM merging method proposed by Leitão et al. (2016). It deals with cases where a study area is only partially covered by a high resolution DEM, with a coarser DEM available for the remainder (as in the case shown below). r.mblend merges the two DEMs, producing a smooth transition from the high resolution DEM to the low resolution DEM.

The module works by identifying the edge between the two rasters (near edge, shown in read below) and the edge composed by the cells in the low resolution DEM farther away from the high resolution raster (far edge, shown in blue below). To each point along the near edge is assigned the difference between the two DEMs. To each point in the far edge is assigned the value 0. The Inverse Distance Weighted (IDW) method is then used to interpolate a new raster with the points along the two edges. This differences raster thus trends from the full difference at the near edge towards zero at the far edge.

The differences raster is finally added to the low resolution DEM given as input. In the resulting DEM, cells along the near edge take the values in the high resolution raster. The farther away from the near edge (and closer to to the far edge) the closer is their value is to the low resolution raster, producing a smooth transition, without artefacts.


Merge the best_dem and other_dem raster maps from the current mapset:
r.mblend high=best_dem low=other_dem output=result
Modifying the far edge distance cut-off:
r.mblend high=best_dem low=other_dem output=result far_edge=90


J.P. Leitão, D. Prodanovic, C. Maksimovic, Improving merge methods for grid-based digital elevation models, Computers & Geosciences, Volume 88, March 2016, Pages 115-131, ISSN 0098-3004,


The source code implementing this module is also available at GitHub.


Luís Moreira de Sousa
EAWAG: Swiss Federal Institute of Aquatic Science and Technology.

Last changed: $Date: 2017-05-24 15:46:44 +0200 (Wed, 24 May 2017) $


Available at: r.mblend source code (history)

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

© 2003-2018 GRASS Development Team, GRASS GIS 7.4.1svn Reference Manual