[GRASSLIST:7199] Re: crop of raster - once again

Hamish hamish_nospam at yahoo.com
Thu Jun 16 19:10:24 EDT 2005


On Thu, 16 Jun 2005 08:53:18 +0200
Axel Orth <axel_orth at gmx.de> wrote:

> I think r.mapcalc cropped_map=map should give me that result as a new 
> raster file and when I use that command the map becomes pink.
> 
> SO it is not such a big problem but still a little bit strange.


Idea: r.mapcalc doesn't copy the color map along with the data.
Does the range of data etc shown with r.info look consistent?
How about r.univar?

Try this to copy the color map from the original to the new after
r.mapcalc:

r.colors cropped_map rast=map



Hamish




More information about the grass-user mailing list