<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
<br>
<br>
<div class="moz-cite-prefix">On 12-12-15 04:21, Anna Petrášová
wrote:<br>
</div>
<blockquote
cite="mid:CAE0EDEp=9oqkJrCPT=f4-hRobAfpkXGBFOJL3VdR3mDLsfQwMg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi Paulo,<br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Dec 1, 2015 at 10:17 AM,
Paulo van Breugel <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:p.vanbreugel@gmail.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:p.vanbreugel@gmail.com">p.vanbreugel@gmail.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Anna<br>
<br>
Just an idea I got when using r.ctp2grass for some climate
data. Climate data layers are often multiplied by a factor
10 so they can be distributed as integer rasters while
still maintaining a desired degree of precision. This made
me think that it would be nice if I could create a color
rules file using r.ctp2grass with the option to multiply
the default values as defined in the ctp file. Perhaps
something along the lines of attached patch file for
r.ctp2grass (for illustrative purposes, I am sure things
can be done better)? Is that something that could be
implemented? Something similar could perhaps be nice for
r.colors as well when using one of the included color
tables (but only those based on values rather than
percentages obviously).<br>
<br>
Cheers,<br>
<br>
Paulo<br>
<br>
</blockquote>
<div><br>
</div>
<div>I can't really judge the usefulness of such option, but
if you find it useful, then go ahead and commit it. I
would just use 'multiply' or 'multiplier', not 'multi' as
the option name.</div>
</div>
</div>
</div>
</blockquote>
<br>
Hi Anna, I have been rethinking this option, and it is probably
something that is too specific. For linear scales, the -s flag will
be sufficient, while other color scales will often be tailored to
specific cases anyway. <br>
<br>
<blockquote
cite="mid:CAE0EDEp=9oqkJrCPT=f4-hRobAfpkXGBFOJL3VdR3mDLsfQwMg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>Best,</div>
<div><br>
</div>
<div>Anna</div>
<div><br>
</div>
<div><br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
grass-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/grass-dev"
rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>