watershed program

I would like to run the watershed program, just to see it's output.
I have gone throught the program, and the result is the following
command:

  ram el="elevation@PERMANENT" t=10000 ba="watershed.basins"
      ac="accumulation.map"

However, I get garbage out. Can anyone provide pointers --- do I
need to provide a different elevation file? (maybe a filtered file?).
Thanks for any feedback.

John Stamm
Interactive Computer Graphics Lab
Princeton University

try the following fix:

replace raster/r.watershed/ram/ramseg.h

by the following fixed ramseg.h:

#define RAMSEG int
#define RAMSEGBITS 4
#define DOUBLEBITS 8 /* 2 * ramsegbits */
#define SEGLENLESS 15 /* 2 ^ ramsegbits - 1 */

#define SEG_INDEX(s,r,c) (int) \
   (((((r) >> RAMSEGBITS) * (s) + ((c) >> RAMSEGBITS)) << DOUBLEBITS) \
    + (((r) & SEGLENLESS) << RAMSEGBITS) + ((c) & SEGLENLESS))

Olga Waupotitsch (olga@zorro.cecer.army.mil) writes on 16 Jul 93:

try the following fix:

replace raster/r.watershed/ram/ramseg.h

by the following fixed ramseg.h:

is this the only fix for r.watershed 4.1? I'm trying
to wean users off of 4.0 and I think that this program
is something that they use a lot.

mccauley@ecn.purdue.edu (Darrell McCauley) writes:

Olga Waupotitsch (olga@zorro.cecer.army.mil) writes on 16 Jul 93:

try the following fix:

replace raster/r.watershed/ram/ramseg.h

by the following fixed ramseg.h:

is this the only fix for r.watershed 4.1? I'm trying
to wean users off of 4.0 and I think that this program
is something that they use a lot.

Yes this is the only fix for r.watershed 4.1 since the 4.1 release.
But it's not the only difference between r.watershed4.1 and r.watersheed4.0
Olga