<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div>Thank you Daniel. I installed grass 7 but my rasters will not display. Strange. Will wait to see if others with macs have encountered this problem.</div>
<div>Until then your solution sounds good and will give it a gob tomorrow.</div>
<div><br>
<div>Best wishes,</div>
<div><br>
</div>
<div>Raphael.</div>
<div><br>
</div>
Sent from my mobile device</div>
<div><br>
On 23 Jul 2014, at 10:04 pm, "Daniel Victoria" <<a href="mailto:daniel.victoria@gmail.com">daniel.victoria@gmail.com</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi Raphael,<br>
<br>
</div>
I do recommend upgrading and going the way Anna mentioned, especially if you are dealing with a large number of maps. But if that is not an option here are the steps I'd take:<br>
<br>
</div>
1) run <a href="http://r.info">r.info</a> -r on each map to get the min/max range<br>
</div>
2) user r.colors with one of the maps and the rule option to set you color table to that map. Your rules might look something like this<br>
</div>
min_value red<br>
</div>
(max - min)/2 yellow<br>
</div>
max_value blue<br>
</div>
end<br>
</div>
-- by substituting the min / max in the above you get a colortable going from red to blue with yellow in the middle<br>
</div>
3) copy the color table you just set to the other maps using r.color rast option. Take a look at r.color man page for more info<br>
<a href="http://grass.osgeo.org/grass64/manuals/r.colors.html">http://grass.osgeo.org/grass64/manuals/r.colors.html</a><br>
<br>
</div>
Daniel<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jul 22, 2014 at 11:46 PM, <span dir="ltr"><<a href="mailto:Raphael.Viscarra-Rossel@csiro.au" target="_blank">Raphael.Viscarra-Rossel@csiro.au</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:13px;font-family:'Century Gothic',sans-serif">
<div>
<div>Thank you Daniel and Anna for the suggestions.</div>
<div>Daniel, I wonder how I might display the ‘common’ colour legend when visualising the maps? </div>
<div>When the maps are visualised, the colour legend changes to the min max of the current map displayed.</div>
<div><br>
</div>
<div>Anna, I use GRASS 6.4.2 – so I guess I should upgrade…</div>
<div><br>
</div>
<div>Thank you again.</div>
<div>Raphael.</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<p class="MsoNormal"></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Century Gothic';color:rgb(84,141,212)" lang="EN-US">__________________________<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Century Gothic';color:rgb(84,141,212)" lang="EN-US">Raphael
<b>VISCARRA ROSSEL</b> | Principal Research Scientist | CSIRO Land and Water | Bruce E. Butler Laboratory, Clunies Ross St, Black Mountain, Acton ACT 2601 | PO BOX 1666 Canberra ACT 2600 | t.
<a href="tel:%2B61%202%206246%205945" value="+61262465945" target="_blank">+61 2 6246 5945</a> | m.
<a href="tel:%2B61%20467%20769%20364" value="+61467769364" target="_blank">+61 467 769 364</a> | Chair International Union of Soil Science Working Group on Proximal Soil Sensing |
<a href="http://www.researcherid.com/rid/B-4061-2011" target="_blank">www.researcherid.com/rid/B-4061-2011</a> |
<a href="http://scholar.google.com.au/citations?hl=en&user=KpJdvKEAAAAJ" target="_blank">
scholar.google.com.au/citations?hl=en&user=KpJdvKEAAAAJ</a></span></p>
<p></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'PT Sans';color:rgb(84,141,212)" lang="EN-US"><br>
</span></p>
<p></p>
<p></p>
<p></p>
</div>
<div><br>
</div>
</div>
</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>Anna Petrášová <<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@gmail.com</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, 23 July 2014 12:15 pm<br>
<span style="font-weight:bold">To: </span>Daniel Victoria <<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>><br>
<span style="font-weight:bold">Cc: </span>"Viscarra Rossel, Raphael (L&W, Black Mountain)" <<a href="mailto:Raphael.Viscarra-Rossel@csiro.au" target="_blank">Raphael.Viscarra-Rossel@csiro.au</a>>, grass <<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [GRASS-user] create a common colour scale<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir="ltr">Hi,
<div><br>
</div>
<div>in case you use GRASS 7, r.colors accepts multiple maps or a file with the map names. So this should do it:</div>
<div>r.colors map=precip1,precip2,precip3 color=precipitation</div>
<div><br>
</div>
<div>Also, have a look at temporal modules (GRASS 7 only). You can register the series of maps as a dataset (t.create, t.register) and then you can easily get the min, max values for the entire series and there is also t.rast.colors.</div>
<div><br>
</div>
<div>Anna<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Tue, Jul 22, 2014 at 9:41 PM, Daniel Victoria <span dir="ltr">
<<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>
<div>
<div>Hi Raphael,<br>
<br>
</div>
This is what I did some time ago when I had the same problem<br>
</div>
1) Find out the overall minimun and maximum precipitation over all maps.<br>
</div>
2) Use r.colors with the rules option to compose a colortable that cover my entire precip range.<br>
</div>
3) Apply the same colortable to all maps<br>
</div>
4) plot and be happy<br>
<br>
</div>
Hope it helps<br>
</div>
Daniel<br>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>On Tue, Jul 22, 2014 at 10:01 PM, <span dir="ltr"><<a href="mailto:Raphael.Viscarra-Rossel@csiro.au" target="_blank">Raphael.Viscarra-Rossel@csiro.au</a>></span> wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:13px;font-family:'Century Gothic',sans-serif">
<div>
<div>
<div>Hello</div>
<div>I wonder if anyone knows how to create a common colour scale for different raster maps?</div>
<div>I want to display all six maps on the same page with the single colour scale but I cannot find how to do this in GRASS.</div>
<div><br>
</div>
<div>More specifically, I have six raster maps of rainfall for different time periods (each has a different range of values) and I would like to display them all with the same colour scale. The colour scale needs to be constructed using the min and max values
 of the set of six maps (and not just individual maps.</div>
<div><br>
</div>
<div>Will appreciate any input please. Thank you,</div>
<div><br>
</div>
<div>Raphael.</div>
<div><br>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Century Gothic';color:rgb(84,141,212)" lang="EN-US">__________________________<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:'Century Gothic';color:rgb(84,141,212)" lang="EN-US">Raphael
<b>VISCARRA ROSSEL</b> | Principal Research Scientist | CSIRO Land and Water | Bruce E. Butler Laboratory, Clunies Ross St, Black Mountain, Acton ACT 2601 | PO BOX 1666 Canberra ACT 2600 | t.
<a href="tel:%2B61%202%206246%205945" value="+61262465945" target="_blank">+61 2 6246 5945</a> | m.
<a href="tel:%2B61%20467%20769%20364" value="+61467769364" target="_blank">+61 467 769 364</a> | Chair International Union of Soil Science Working Group on Proximal Soil Sensing |
<a href="http://www.researcherid.com/rid/B-4061-2011" target="_blank">www.researcherid.com/rid/B-4061-2011</a> |
<a href="http://scholar.google.com.au/citations?hl=en&user=KpJdvKEAAAAJ" target="_blank">
scholar.google.com.au/citations?hl=en&user=KpJdvKEAAAAJ</a></span></p>
<p></p>
<p class="MsoNormal"><span style="font-size:11pt;font-family:'PT Sans';color:rgb(84,141,212)" lang="EN-US"><br>
</span></p>
<p></p>
<p></p>
<p></p>
</div>
<div><br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote>
</div>
<br>
</div>
<br>
_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</span></div>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
</body>
</html>