[GRASS-dev] r.watershed fails in 6.4 SVN - fixed

Michael Barton michael.barton at asu.edu
Mon Dec 22 10:22:04 EST 2008


On Dec 22, 2008, at 2:19 AM, Markus Metz wrote:

>
>
> Michael Barton wrote:
>> I just updated and compiled today.
> In case you have modified front/main.c to fix that length.slope bug,  
> there may now be a svn conflict in front/main.c. Maybe it works if  
> you delete front/main.c and svn up again to get a new copy. Then,  
> after updating, the patch sent by Glynn or the path for grass64 at  
> [1] can be applied to get a proper error message.
>
> [1] http://trac.osgeo.org/grass/attachment/ticket/398
>
> Markus M
>
>>
>> r.watershed compiles without problems, but it fails when you try to  
>> run it. It worked OK yesterday. Here is the error from Spearfish.
>>
>> GRASS 6.4.svn (Spearfish60_test):~ > r.watershed  
>> elevation=elevation.dem accumulation=atest_delete1
>> ERROR: USAGE for basin delineation:
>>       /Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc/ 
>> r.watershed.ram
>>       -4 el=elevation_map t=swale_threshold [ov=overland_flow_map]
>>       [dr=drain_direction_map] [de=depression_map]  
>> [ac=accumulation_map]
>>       [di=display_map] ba=watershed_basin_map [se=stream_segment_map]
>>
>>       USAGE for ARMSED FILE creation:
>>       /Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc/ 
>> r.watershed.ram
>>       [-4] el=elevation_map t=swale_threshold [ov=overland_flow_map]
>>       [dr=drain_direction_map] [de=depression_map]  
>> [ac=accumulation_map]
>>       [di=display_map] [ba=watershed_basin_map]  
>> [se=stream_segment_map]
>>       ha=half_basin_map ar=ARMSED_file_name
>>
>>       USAGE for slope length determination:
>>       /Applications/Grass/GRASS-6.4.app/Contents/MacOS/etc/ 
>> r.watershed.ram
>>       [-4] el=elevation_map t=swale_threshold  
>> [dr=drain_direction_map]
>>       [de=depression_map] [ac=accumulation_map] [di=display_map]
>>       [ms=max_slope_length] [ob=overland_blocking_map]
>>       [S=slope_steepness_map] LS=length_slope_map  
>> [r=rill_erosion_map]
>>       [sd=slope_deposition value or map]
>> WARNING: Subprocess failed with exit code 256
>> WARNING: category information for [atest_delete1] in [PERMANENT]  
>> missing or
>>         invalid
>>
>> Same (not very informative) error if I use -s or specify ls.factor  
>> for the output
>>

Fixed now. I deleted all of r.watershed, did an SVN update, and  
applied the patch. Thanks for the help.

Any chance that MFD will be backported to 6.4?

Michael


More information about the grass-dev mailing list