THanks Martin. It works <div>Just one last question. This is applying Shell Scripts right? Can I do the same but with Python Scripts<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>