<div dir="ltr"><div>Hi,<br><br></div>I am working on beautifying the output of i.theilsen, a new addon.<br><div><div><br>For some reason, I cannot apply a grayscale palette.<br>---------------<br>Rast_init_colors(&colors);<br>DCELL val1 = ts_min;<br>DCELL val2 = ceil(ts_max);<br>Rast_add_d_color_rule(&val1, 0, 0, 0, &val2, 255, 255, 255, &colors);<br clear="all">---------------<br><br></div><div>ts_min, ts_max are known from the data processed,<br></div><div>val1 and val2 are declared as DCELL instead of const DCELL as required,<br></div><div>but if I declare const DCELL val1, then I cannot write stats to it for palette definition...<br><br></div><div>What I am doing wrong?<br></div><div>Yann<br></div><div>-- <br><div class="gmail_signature">----</div>
</div></div></div>