<div dir="ltr"><div>Micha,<br></div> Thanks for the help!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 28, 2013 at 9:11 AM, Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il" target="_blank">micha@arava.co.il</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 28/03/2013 14:54, Nathan Barber - NOAA Federal wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Background<br>
<br>
We generate a precipitation graphic that is based on the mean of an ensemble of models. Because it goes out 16 days, we can have a wide variety of amounts...sometimes it can be as little as 2 inches other times it can be as great as 6 or 7. This variability can cause some issues with users when our color scale always changes relative to the amounts. For example Day 1, 1 inch is yellow and 3 inches is purple....Day 2, 2 inches is yellow and 6 inches is purple.<br>
<br>
Is there a way to categorize amounts, say 0-1, 1-2, 2-3, 4-5, 5-6, 7+ so that purple will always represent 7+ and yellow will always be 0-1, etc...I've looked at the r.colors wiki page but I can't seem to get the rules to work correctly. I need a consistent color scheme for the graphic that communicates the level of concern properly to the user.<br>
<br>
Any examples would be greatly appreciated...Thanks.<br>
<br>
</blockquote>
<br></div>
Sure, just create a single rules file (say "standard_precip_colors.txt" )of the format:<br>
1 yellow<br>
3 orange<br>
5 red<br>
7 blue<br>
100% purple<br>
end<br>
<br>
Now apply this rules file to each new precipitation raster with<br>
r.colors map=<new raster> rules=standard_precip_colors.<u></u>txt<br>
<br>
HTH<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
-- <br>
Nathan Barber<br>
Hydrologist<br>
NOAA National Weather Service<br></div>
Ohio River Forecast Center <<a href="http://www.erh.noaa.gov/ohrfc/" target="_blank">http://www.erh.noaa.gov/<u></u>ohrfc/</a>><div class="im"><br>
1901 S State Rt 134<br>
Wilmington, OH 45177<br>
<a href="tel:%28937%29%20383-0528" value="+19373830528" target="_blank">(937) 383-0528</a><br>
<br></div>
This mail was received via Mail-SeCure System.<br>
<br>
<br>
______________________________<u></u>_________________<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/<u></u>mailman/listinfo/grass-user</a><br>
<br>
This mail was received via Mail-SeCure System.<br>
<br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
<br>
-- <br>
Micha Silver<br>
GIS Consulting<br>
052-3665918<br>
<a href="http://www.surfaces.co.il" target="_blank">http://www.surfaces.co.il</a><br>
<br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:left">Nathan Barber<br></div><div style="text-align:left">Hydrologist<br><div>NOAA National Weather Service<br><a href="http://www.erh.noaa.gov/ohrfc/" target="_blank">Ohio River Forecast Center</a><br>
1901 S State Rt 134<br>Wilmington, OH 45177<br>(937) 383-0528<br></div></div>
</div>