Martin Landa wrote: 
> > as mentioned in Hamish's response, use combination of
> > `sort` and `uniq`
> > 
> > r.starts -1 input=data | sort | uniq
> 
> shorter:
> 
> r.starts -1 input=data | sort -u

AFAIR, those are not the same thing and can not be used
interchangeably. (although I don't fully remember why right now)


anyway, for floating point maps I still think it's a bad idea.


I'm sure there is a Python equivalent of 'sort|uniq', but don't
know what it is.


'sort' and 'uniq' are UNIX command line power tools and not
available in MS Windows. But.. the MSys command prompt that
ships with WinGrass supplies them and you can use them there.
I suppose the "bin" dir where they are kept are not part of the
gui's PATH which is why they wouldn't work from the Cmd> gui
prompt.


Hamish



      
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to