forked from OSGeo/grass-addons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
r.fusion: lowres-highres image fusion (OSGeo#997)
* r.fusion: lowres-highres image fusion Co-authored-by: Anna Petrasova <kratochanna@gmail.com> --------- Co-authored-by: Anna Petrasova <kratochanna@gmail.com>
- Loading branch information
1 parent
3888454
commit e978f60
Showing
3 changed files
with
427 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
MODULE_TOPDIR = ../.. | ||
|
||
PGM = r.fusion | ||
|
||
include $(MODULE_TOPDIR)/include/Make/Script.make | ||
|
||
default: script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<h2>DESCRIPTION</h2> | ||
|
||
<em>r.fusion</em> enhances the resolution of a raster map by using spatial | ||
detail of a high-resolution map. The actual values in the resultant output map | ||
correspond to the input map while the spatial detail corresponds to the | ||
high-resolution map. The effect is similar to pan-sharpening, but the method | ||
can be applied more generally, not only to imagery but also to climatological | ||
data such as temperature or precipitation. | ||
|
||
<h2>NOTES</h2> | ||
|
||
Two different methods are available with the <b>method</b> option: | ||
<em>difference</em> and <em>proportion</em>. | ||
|
||
<p> | ||
The <em>difference</em> method uses the formula | ||
<p> | ||
A - B + B = A | ||
<p> | ||
more specifically | ||
<p> | ||
highres(A<sub>lowres</sub> - B<sub>lowres</sub>) + B<sub>highres</sub> = A<sub>highres</sub> | ||
<p> | ||
where <em>highres()</em> is a function to interpolate the differences. Here, | ||
<em>r.resamp.filter</em> is used for interpolation. | ||
|
||
<p> | ||
The <em>proportion</em> method is suitable for e.g. precipitation where zero | ||
precipition must stay zero precipition, and uses the formula | ||
<p> | ||
A / B * B = A | ||
<p> | ||
more specifically | ||
<p> | ||
highres(A<sub>lowres</sub> / B<sub>lowres</sub>) * B<sub>highres</sub> = A<sub>highres</sub> | ||
<p> | ||
|
||
Again, <em>highres()</em> is a function to interpolate the proportions, and | ||
<em>r.resamp.filter</em> is used for interpolation. For the <em>proportion</em> | ||
method, all values in the high-resolution B map must be > 0. | ||
|
||
|
||
<h2>SEE ALSO</h2> | ||
|
||
<em> | ||
<a href="https://grass.osgeo.org/grass-stable/manuals/r.resamp.filter.html">r.resamp.filter</a> | ||
</em> | ||
|
||
|
||
<h2>AUTHOR</h2> | ||
|
||
Markus Metz, mundialis |
Oops, something went wrong.