hELLO all <div>Regarding the use of r.stats -1 input=image | sort | uniq</div><div>I have sent a message saying that this works just fine but...</div><div><br></div><div>I have only tested in WinGRASS 6.4.RC6). When I tried in Linux (GRASS6.4.0RC6) I got this error:</div>
<div><div>Sorry <|> is not a valid option</div><div>Sorry <sort> is not a valid option</div><div>Sorry <|> is not a valid option</div><div>Sorry <uniq> is not a valid option</div></div><div><br></div>
<div>Why do I obtain different results in Win and in Linux? and How can I do this in Linux?</div><div><br>Thanks</div><div>Nikos</div><div><br><br><div class="gmail_quote">On Tue, Jul 20, 2010 at 4:17 PM, Martin Landa <span dir="ltr"><<a href="mailto:landa.martin@gmail.com">landa.martin@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 class="im">Hi,<br>
<br>
2010/7/20 Nikos Dumakis <<a href="mailto:nikosdu1980@gmail.com">nikosdu1980@gmail.com</a>>:<br>
</div><div class="im">> In my case I have not more than 1200 different cell values. If I do :<br>
> r.stats -1 input=data<br>
> I obtained a list of all pixel values but what I am lookinf is for the<br>
> unique values (not repeated).<br>
<br>
</div>as mentioned in Hamish's response, use combination of `sort` and `uniq`<br>
<br>
r.starts -1 input=data | sort | uniq<br>
<div><div></div><div class="h5"><br>
Martin<br>
<br>
--<br>
Martin Landa <landa.martin <a href="http://gmail.com" target="_blank">gmail.com</a>> * <a href="http://gama.fsv.cvut.cz/~landa" target="_blank">http://gama.fsv.cvut.cz/~landa</a><br>
</div></div></blockquote></div><br></div>