-
Notifications
You must be signed in to change notification settings - Fork 0
/
r.patch.smooth.html
67 lines (57 loc) · 3.14 KB
/
r.patch.smooth.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<h2>DESCRIPTION</h2>
Module fuses rasters representing elevation together by patching them and smoothing
values along edges using either fixed or spatially variable overlap width.
Spatially variable overlap width is given by the difference
along the edge between the two rasters. Higher difference results in larger overlap width
to smooth the transition.
<p>
r.patch.smooth can be used, for example, for updating older, lower resolution
DEM (<b>input_b</b>) with newer, higher resolution DEM (<b>input_a</b>).
Note that both DEMs must be aligned and have the same resolution.
Smoothing uses weighted averaging on the overlap of the rasters.
r.patch.smooth supports 2 types of smoothing. The default one is
simpler and uses fixed overlap width defined in <b>smooth_dist</b>.
Since the differences along the seam line can vary,
the second option uses spatially variable overlap width and can be activated with flag <b>-s</b>.
The width is then computed based on the elevation differences along the edge and
transition angle <b>transition_angle</b> controlling the steepness of the transition.
If option <b>overlap</b> is specified, a map representing the spatially variable overlap
is created and can be used for inspecting the fusion results.
<center>
<img src="r_patch_smooth_overview.png" width=600 border=0><br>
Difference between fixed overlap width and spatially variable overlap.
</center>
<p>
For spatially variable overlap, options <b>parallel_smoothing</b>
and <b>difference_reach</b> can be specified.
Option <b>parallel_smoothing</b> smoothes the overlap zone in direction
parallel to the edge.
Option <b>difference_reach</b> enables to increase the sensitivity to higher
differences on the edges by taking maximum difference values in the cells
close to edges.
<center>
<img src="r_patch_smooth_parallel_smoothing.png" border=0><br>
Effect of <b>parallel_smoothing</b> option shown on overlap zone (created by specifying <b>overlap</b> option).
Image A shows result with value 3 and B with value 9.
</center>
<p>
Option <b>blend_mask</b> (experimental) can be used to specify which edges of
the input_a DEM should be excluded from the blending. This is useful when
DEMs A and B have identical edges (on the coast, for example) and we want
to preserve only A (not blend it with B along the coast).
The <b>blend_mask</b> raster can be created by digitizing area approximately around the excluded edges,
so that the edge of DEM A is inside the areas and the rest are NULLs.
This option requires more testing.
<h2>SEE ALSO</h2>
<a href="r.patch.html">r.patch</a>,
<a href="r.mapcalc.html">r.mapcalc</a>,
<a href="r.grow.distance.html">r.grow.distance</a>
<h2>REFERENCES</h2>
Anna Petrasova, Helena Mitasova, Vaclav Petras, Justyna Jeziorska.
<a href="https://link.springer.com/article/10.1186/s40965-017-0019-2">
Fusion of high-resolution DEMs for water flow modeling</a> (2017).
Open Geospatial Data, Software and Standards.
2: 6. <a href="https://doi.org/10.1186/s40965-017-0019-2">DOI: 10.1186/s40965-017-0019-2</a>
<h2>AUTHOR</h2>
Anna Petrasova, <a href="http://geospatial.ncsu.edu/osgeorel/">NCSU OSGeoREL</a><br>
<p><i>Last changed: $Date: 2016-02-12 14:32:45 -0500 (Thu, 12 Feb 2015) $</i>