[GRASSLIST:1633] display several maps

Hi list,

I'm working on a project into GRASS which is composed by several maps.
(raster).
These maps have been imported into GRASS using r.in.tiff. and r.support.

Each of these maps has the good coordinates. They compose a large map.

But how can I display these maps together in the monitor ?
Using d.rast -o map1 ... d.rast -o map2 ...is quiet boring when you have
10 or more maps !
I've thought to write a small script to do that but maybe there is a
module to create a group of maps in a project.
I've tried to create a new group composed by all these maps but I'm not
able to display it (the name of these groups does not appear in the
g.list rast).

Have I done something wrong or do I forgot something ?

thanks for help

julien

Hi Julien

julien wrote:

Hi list,

I'm working on a project into GRASS which is composed by several
maps. (raster).
These maps have been imported into GRASS using r.in.tiff. and
r.support.

Each of these maps has the good coordinates. They compose a large
map.

But how can I display these maps together in the monitor ?
Using d.rast -o map1 ... d.rast -o map2 ...is quiet boring when you
have 10 or more maps !
I've thought to write a small script to do that but maybe there is a
module to create a group of maps in a project.
I've tried to create a new group composed by all these maps but I'm
not able to display it (the name of these groups does not appear in
the g.list rast).

I'm not sure what you did to try and group your maps. However, I believe
the command to use to create a single raster map out of several smaller
maps is r.patch. Please see the html documentation that comes with Grass
(starting point is documents/index.html). Select the raster commands
link and then the r.patch link. Please note that there are tips in the
"Notes" section that may be useful to you.

Hope this helps.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

r.patch is used to to make a composite map layer from several map layers
which are "registered to the same area of the Earth's surface". So I dont
think it will help Julien. I think JUlien is looking for something that
creates one large map from several "sub-maps" of an entire region .

best wishes,
Gail

Gail Higginbottom,
Centre for European Studies and General Linguistics,
University of Adelaide,
Adelaide, South Australia,
Australia. 5005.
and
Department of Physics and Mathematical Physics

ghigginb@physics.adelaide.edu.au

http://www.physics.adelaide.edu.au/~ghigginb/

(08) 8303:6440

On Tue, 20 Mar 2001, Justin Hickey wrote:

Hi Julien

julien wrote:
>
> Hi list,
>
> I'm working on a project into GRASS which is composed by several
> maps. (raster).
> These maps have been imported into GRASS using r.in.tiff. and
> r.support.
>
> Each of these maps has the good coordinates. They compose a large
> map.
>
> But how can I display these maps together in the monitor ?
> Using d.rast -o map1 ... d.rast -o map2 ...is quiet boring when you
> have 10 or more maps !
> I've thought to write a small script to do that but maybe there is a
> module to create a group of maps in a project.
> I've tried to create a new group composed by all these maps but I'm
> not able to display it (the name of these groups does not appear in
> the g.list rast).

I'm not sure what you did to try and group your maps. However, I believe
the command to use to create a single raster map out of several smaller
maps is r.patch. Please see the html documentation that comes with Grass
(starting point is documents/index.html). Select the raster commands
link and then the r.patch link. Please note that there are tips in the
"Notes" section that may be useful to you.

Hope this helps.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

Hi Gail

I'm sorry, but I have to disagree. We just used r.patch several weeks
ago to do just what Julien wants. We had several individual raster maps
(actually orthophotos) of an area and we used r.patch to create a single
map of the entire area.

Also, from the r.patch manual page we have the following from the
"Notes" section.

"Frequently, this program is used to patch together adjacent map layers"

So it appears that r.patch can be used for creating one large map from
several "sub-maps" of an entire region.

Gail Higginbottom wrote:

r.patch is used to to make a composite map layer from several map
layers which are "registered to the same area of the Earth's
surface". So I dont think it will help Julien. I think JUlien is
looking for something that creates one large map from several
"sub-maps" of an entire region .

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

Hi Gail

I'm sorry, but I have to disagree. We just used r.patch several weeks
ago to do just what Julien wants. We had several individual raster maps
(actually orthophotos) of an area and we used r.patch to create a single
map of the entire area.

Also, from the r.patch manual page we have the following from the
"Notes" section.

"Frequently, this program is used to patch together adjacent map layers"

So it appears that r.patch can be used for creating one large map from
several "sub-maps" of an entire region.

Thankyou Justin, that is great news. Sounds simpler than I imagined.
I am about to launch into creating a large map
made up of 164 separate OS DTM (NTF format) maps, 20km by 20km each.
However, I am using
vector data, do you have any knowledge of doing the same thing with vector
data? I am going to try v.patch. Having now read the pages for
patching vectors, do you have any advice that may not have been covered in
the Grass webpage that experience may have passed on to you?

with best wishes,
Gail.

Gail Higginbottom wrote:
>
> r.patch is used to to make a composite map layer from several map
> layers which are "registered to the same area of the Earth's
> surface". So I dont think it will help Julien. I think JUlien is
> looking for something that creates one large map from several
> "sub-maps" of an entire region .

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

Hi Gail

Gail Higginbottom wrote:

Thankyou Justin, that is great news. Sounds simpler than I imagined.
I am about to launch into creating a large map
made up of 164 separate OS DTM (NTF format) maps, 20km by 20km each.
However, I am using
vector data, do you have any knowledge of doing the same thing with
vector data? I am going to try v.patch. Having now read the pages for
patching vectors, do you have any advice that may not have been
covered in the Grass webpage that experience may have passed on to
you?

Yes, you're right, v.patch is the command to use. Actually, I've never
used these commands, but my colleagues did though. However, I would
suggest that you look into the commands suggested in the v.patch manual
page, especially v.mkgrid and v.mkquads since they seem to help with
alignment. Also, you may want to start with a small subset first (maybe
a block of 4 maps - 40x40 area) to see which sequence of commands gives
you the best results.

Hope this helps.

--
Sincerely,

Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
High Performance Computing Center
National Electronics and Computer Technology Center (NECTEC)
Bangkok, Thailand

People who think they know everything are very irritating to those
of us who do. ---Anonymous

Jazz and Trek Rule!!!

On Tue, Mar 20, 2001 at 02:20:48PM +0930, Gail Higginbottom wrote:

r.patch is used to to make a composite map layer from several map layers
which are "registered to the same area of the Earth's surface". So I dont
think it will help Julien. I think JUlien is looking for something that
creates one large map from several "sub-maps" of an entire region .

best wishes,
Gail

Hi all,

the r.patch will do the job as well (note the -z flag). Additionally
you can try the script

i.image.mosaic

GRASS script to mosaic (aerial) images. A new image will
be created with extended colormap.

Please specify image file(s)!
Usage:
   i.image.mosaic image1 image2 [image3] [image4]

The first image will be on top of image stack.

However, it is limited to four images (you may update to get more involved
or you patch in several steps).

Cheers

Markus

On Tue, 20 Mar 2001, Justin Hickey wrote:

> Hi Julien
>
> julien wrote:
> >
> > Hi list,
> >
> > I'm working on a project into GRASS which is composed by several
> > maps. (raster).
> > These maps have been imported into GRASS using r.in.tiff. and
> > r.support.
> >
> > Each of these maps has the good coordinates. They compose a large
> > map.
> >
> > But how can I display these maps together in the monitor ?
> > Using d.rast -o map1 ... d.rast -o map2 ...is quiet boring when you
> > have 10 or more maps !
> > I've thought to write a small script to do that but maybe there is a
> > module to create a group of maps in a project.
> > I've tried to create a new group composed by all these maps but I'm
> > not able to display it (the name of these groups does not appear in
> > the g.list rast).
>
> I'm not sure what you did to try and group your maps. However, I believe
> the command to use to create a single raster map out of several smaller
> maps is r.patch. Please see the html documentation that comes with Grass
> (starting point is documents/index.html). Select the raster commands
> link and then the r.patch link. Please note that there are tips in the
> "Notes" section that may be useful to you.
>
> Hope this helps.
>
> --
> Sincerely,
>
> Jazzman (a.k.a. Justin Hickey) e-mail: jhickey@hpcc.nectec.or.th
> High Performance Computing Center
> National Electronics and Computer Technology Center (NECTEC)
> Bangkok, Thailand
> ==================================================================
> People who think they know everything are very irritating to those
> of us who do. ---Anonymous
>
> Jazz and Trek Rule!!!
> ==================================================================
>

--
Markus Neteler * University of Hannover
Institute of Physical Geography and Landscape Ecology
Schneiderberg 50 * D-30167 Hannover * Germany
Tel: ++49-(0)511-762-4494 Fax: -3984

Julien:

    A while back I asked about merging gtopo30 tiles into one large raster
map. I didn't get near the response you did and don't recall anything being
mentioned about r.patch. I was under the impression it was used to generate
overlay layers. I'll have to take another look at these utilities.

    Anyway, as a result of this I did write a perl script to merge source
raster files. Part way through I added a somewhat clumsy method to crop
north/south or east/west boundaries depending on the direction of the merge.
This utility was made for tiles and presumes northern or western boundaries
line up.

    It is command-line driven, 99.5% finished and about 80% tested with
GLOBE files, but not gtopo30. It seems to work. I can't say it is bug free
and there are still a couple of tweaks I wanted to place in it. I had to
stop and do taxes before completing the module. I'll put out another
release after I do this and of there is interest in the GRASS community, I
will re-release the update. I have attached the "beta" copy to this email.

    Any and all are welcome to use it under GNU/GPL. Maybe it's good enough
to have a place as an alternative GRASS utility, but I leave this for the
pros.

    In another request, I need help also. It seems that no matter what I
do when following the instructions in importing areas about California, the
central valley has a moat below sea level in gtopo30 and GLOBE files. I have
used the r.mapcalc commands as stated in the docs for these images but the
still appear. Am I the only one to have this problem?

Kevin Cross

----- Original Message -----
From: "julien" <bouffy@free.fr>
To: <grasslist@baylor.edu>; <grasslist@baylor.edu>
Sent: Monday, March 19, 2001 1:32 PM
Subject: [GRASSLIST:1633] display several maps

Hi list,

I'm working on a project into GRASS which is composed by several maps.
(raster).
These maps have been imported into GRASS using r.in.tiff. and r.support.

Each of these maps has the good coordinates. They compose a large map.

But how can I display these maps together in the monitor ?
Using d.rast -o map1 ... d.rast -o map2 ...is quiet boring when you have
10 or more maps !
I've thought to write a small script to do that but maybe there is a
module to create a group of maps in a project.
I've tried to create a new group composed by all these maps but I'm not
able to display it (the name of these groups does not appear in the
g.list rast).

Have I done something wrong or do I forgot something ?

thanks for help

julien

(attachments)

r.tile_merge.pl (29.7 KB)