hELLO all Regarding the use of r.stats -1 input=image | sort | uniq I have sent a message saying that this works just fine but...
I have only tested in WinGRASS 6.4.RC6). When I tried in Linux (GRASS6.4.0RC6) I got this error: Sorry <|> is not a valid option Sorry <sort> is not a valid option Sorry <|> is not a valid option Sorry <uniq> is not a valid option Why do I obtain different results in Win and in Linux? and How can I do this in Linux? Thanks Nikos On Tue, Jul 20, 2010 at 4:17 PM, Martin Landa <landa.mar...@gmail.com>wrote: > Hi, > > 2010/7/20 Nikos Dumakis <nikosdu1...@gmail.com>: > > In my case I have not more than 1200 different cell values. If I do : > > r.stats -1 input=data > > I obtained a list of all pixel values but what I am lookinf is for the > > unique values (not repeated). > > as mentioned in Hamish's response, use combination of `sort` and `uniq` > > r.starts -1 input=data | sort | uniq > > Martin > > -- > Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa >
_______________________________________________ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user