g.gui.mapswipe
Interactively compares two maps by swiping a visibility bar.
g.gui.mapswipe [first=name] [second=name] [mode=string] [--verbose] [--quiet] [--qq] [--ui]
Example:
g.gui.mapswipe
grass.script.run_command("g.gui.mapswipe", first=None, second=None, mode="swipe", verbose=False, quiet=False, superquiet=False)
Example:
gs.run_command("g.gui.mapswipe")
Parameters
first=name
First (top/right) raster map
second=name
Second (bottom/left) raster map
mode=string
View mode
Allowed values: swipe, mirror
Default: swipe
swipe: swiping the upper map layer to show the map layer below
mirror: synchronized maps side by side
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--qq
Very quiet module output
--ui
Force launching GUI dialog
first : str, optional
First (top/right) raster map
Used as: input, raster, name
second : str, optional
Second (bottom/left) raster map
Used as: input, raster, name
mode : str, optional
View mode
Allowed values: swipe, mirror
swipe: swiping the upper map layer to show the map layer below
mirror: synchronized maps side by side
Default: swipe
verbose: bool, optional
Verbose module output
Default: False
quiet: bool, optional
Quiet module output
Default: False
superquiet: bool, optional
Very quiet module output
Default: False
wxGUI Map Swipe
DESCRIPTION
The Map Swipe is a wxGUI component which allows the
user to interactively compare two raster maps of the same area by
revealing different parts of the raster maps. It is useful e.g. for
comparing raster maps from different time periods. Map Swipe can be
launched from the menu File -> Map Swipe
.
Map Swipe allows you to:
- switch orientation of the swipe line (horizontal or vertical)
- zooming, panning
- automatically load maps when opening Map Swipe with two selected raster maps in Layer Manager
- compare 2 raster maps or load different combinations of raster and vector maps and set transparency (advanced mode)
- save display to graphics file
- display text labels with map names
- choose between 'swipe' mode (default) and 'mirror' mode (synchronized maps displayed side by side)
- change the appearance of cursor in 'mirror' mode (available in Map Swipe settings)
Figure: Pre and post disaster images of the tsunami in Japan in 2011. The upper
MODIS image taken on February 26, 2011, shows the coastline under normal
conditions while the lower MODIS image on March 13, 2011, shows a clear
view of tsunami flooding along the coastline. Water, black and dark blue
in these false-color images, still covers the ground as much as five
kilometers (three miles) from the coast. Source: Earth
Observatory/NASA
SEE ALSO
See also the user wiki page.
AUTHOR
Anna Kratochvilova, Czech Technical University in Prague, Czech Republic
SOURCE CODE
Available at: g.gui.mapswipe source code
(history)
Latest change: Friday Feb 21 12:41:42 2025 in commit 7d39c54