[GRASS-user] problem with d.rast

I have a problm dispayinga raster file

I do :

d.mon start=x0
g.region -d
g.region rast=target
d.rast target

but it just displays a tiny rectangle which is a section of the map in a corner of the monitor.
Maybe it was because of a previous zoom …
Can anyone help me with this ? please ! How can i reset it ?

Thanks in advance :slight_smile:

Hello

You can do

g.region rast=target

and don't forget to do d.erase after setting the region.

Greetings

Frank

Am Mittwoch, den 12.07.2006, 17:27 +0100 schrieb Ana Soares:

I have a problm dispayinga raster file

I do :

d.mon start=x0
g.region -d
g.region rast=target
d.rast target

but it just displays a tiny rectangle which is a section of the map in
a corner of the monitor.
Maybe it was because of a previous zoom ..
Can anyone help me with this ? please ! How can i reset it ?

Thanks in advance :slight_smile:
_______________________________________________
grassuser mailing list
grassuser@grass.itc.it
http://grass.itc.it/mailman/listinfo/grassuser

Ana:

> I have a problm dispayinga raster file
>
> I do :
>
> d.mon start=x0
> g.region -d
> g.region rast=target
> d.rast target
>
> but it just displays a tiny rectangle which is a section of the map
> in a corner of the monitor.
> Maybe it was because of a previous zoom ..
> Can anyone help me with this ? please ! How can i reset it ?

Frank B:

You can do
g.region rast=target

and don't forget to do d.erase after setting the region.

also you could try

g.region zoom=target

to zoom to the extent of the data.

check map's bounds with r.info, maybe there is large amounts of null "no
data" around the actual map? fix with
g.region zoom=oldmap
r.mapcalc newmap=oldmap

Hamish