Hi,
Two years ago I asked the same question:
On 7/20/05, Jonathan Greenberg <jgreenberg@arc.nasa.gov> wrote:
I have two quick questions:
1) Can I have two overlapping raster images in two different windows, and
"link" them so as I move through one image, the second window moves with it?
and I git this answer from "John Gillette" <JGillette@rfmd.com>. I
remember that it worked well back then. You need to start both
monitors X0 and X1. Hope it helps...
---------------------------------------------------------------------------------------------------------
[GRASSLIST:5636] Linking Monitors script
try this:
Select and then Erase x1 and then display what ever you want there.
Select x0 and erase and display other info there.
Run this script to either pan or zoom in x0. After finishing
the pan or zoom x1 will redraw it's contents at the same region
thereby "following" what ever is done in x0.
The disadvantage is that you can only do 1 pan or zoom at a time,
i.e. not interactively.
usage:
script_name z <- does zoom instead of pan
script_name
zooming and panning in x0. x0 is selected at exit.
Does this help?
John
------------------
#!/bin/sh
d.mon select=x1
monitor1=`d.save -o`
d.mon select=x0
if [ "$1" = "z" ]
then
d.zoom
else
d.pan
fi
region=`g.region -g`
d.mon select=x1
d.erase
g.region $region
eval "$monitor1"
d.mon select=x0
exit 0
2) How easy is it to display a z-profile of a currently selected pixel in
GRASS?
--j
--
Jonathan A. Greenberg, PhD
NRC Research Associate
NASA Ames Research Center
MS 242-4
Moffett Field, CA 94035-1000
650-604-5896
AIM: jgrn307
MSN: jgrn307@hotmail.com