[GRASS-user] Error using v.rast.stats script in cigwin and wingrass

Markus Neteler neteler at osgeo.org
Wed May 21 04:30:20 EDT 2008


On Wed, May 21, 2008 at 7:55 AM, Hamish <hamish_b at yahoo.com> wrote:
>> > maning sambale:
>> >> Using v.rast.stats in grass6.3 both in cygwin and
>> >> native windows,
>> >>
>> >> v.rast.stats vector=myupland_lowland at allah_valley
>> >>   layer=1 raster=allah_dem at allah_valley colprefix=dem
>> >>   percentile=90
>> >>
>> >> I get this error
>> >>
>> >> :/GRASS/scripts/v.rast.stats: r.cats: command not found
>> >>
>> >> I see no entry in the 6.3 manual on r.cats
>> >>
>> >> any ideas on using v.rast.stats?
>
> Hamish:
>> > Are you using the official 6.3.0 or an old SVN
>> > snapshot? I though this was fixed for 6.3.0.
>> >
>> > r.cats was renamed r.category, and (with 6.3.0) there
>> > should be a r.cats script which calls r.category.
>> > Before the script there was a symlink (alias)
>> > for it, but that didn't work so well with MSys and
>> > so was replaced with the forwarding script.
>> >
>> > since then v.rast.stats has been updated to use the
>> > new name.
>
> maning:
>> from
>> http://grass.ibiblio.org/grass63/binary/mswindows/cygwin/
>> downloaded last 2008/05/08
>>
>> According to the site
>> grass-6.3.0-2.cygwin.tar.bz2 22-Apr-2008 10:09   20M
>>
>> So the packages are 22 of April.
>
> hmmm, don't know. the r.cats script should be there- it was included in the release source code:
> http://trac.osgeo.org/grass/browser/grass/tags/release_20080423_grass_6_3_0_1/scripts/r.cats
>
> oh well. the easiest solution is to edit the v.rast.stats script in a text editor to rename it, as seen here:
>  http://trac.osgeo.org/grass/changeset/31306

It's actually missing (seems to be 6.3.0 and not the re-release):

tar tvfj grass-6.3.0-2.cygwin.tar.bz2 | grep r.cat
-rwxr-xr-x neteler/users   52396 2008-04-19 22:21:09
usr/local/grass-6.3.0/bin/r.category.exe
-rw-r--r-- neteler/users    7743 2008-04-19 22:21:13
usr/local/grass-6.3.0/docs/html/r.category.html
-rwxr-xr-x neteler/users   23072 2008-04-19 22:13:52
usr/local/grass-6.3.0/etc/grocat.exe
-rw-r--r-- neteler/users    6291 2008-04-19 22:33:03
usr/local/grass-6.3.0/man/man1/r.category.1

Glynn, if you could send me the missing pieces, I'll update the package.

Markus


More information about the grass-user mailing list