riversmoothing

29 views
Skip to first unread message

dalfardi.s

unread,
Mar 15, 2022, 5:23:33 PM3/15/22
to Parflow

Hello everyone

I hope my question dont bother any member of group. for making dem ready for analysis need to fill flat and smooth rivers path specially in higher resolution and with low slope. for my case with 1 km resolution and with most of the part almost flat and under farming and also some part included alluvial fan, it is important to preapre dem and fill flats and processed dem in the way that all cells have flow in in D4 connecting, except watershed outlet that flow out. making dem ready in this situation is hard and need tips. by the way i try to use workflow example (RMD or rmarkdown file) and select an outlet (watershed outlet as border and all flow move in this point. but i faced an error in running this in r studio and i tried hard but couldnt avoid this i came it here maybe someon could help and face the same problem:

RivSmooth=RiverSmooth(dem=travHS$dem, direction=travHS$direction, mask=FARwatershed.mask,river.summary=subbasin$summary,river.segments=subbasin$segments,bank.epsilon =0.01,river.epsilon = 0,d4=c(1,2,3,4),printflag = T)

and all needed inputs are available but when i run it give me the bellow error:

[1] "No terminal river segments provided, not adjusting DEM"
Error in RiverSmooth(dem = travHS$dem, direction = travHS$direction, mask = FARwatershed.mask, :
object 'active' not found

I dont know what active object is here? but all other objects are here available.i also assighned this needed inputs in different object forinstance AA=travHS$dem and then defined AA in the function but it return error again.

this is summary of two dataframe that included needed data:

summary(subbasin)
Length Class Mode
segments 4200 -none- numeric
subbasins 4200 -none- numeric
RiverMask 4200 -none- numeric
summary 98 -none- numeric
> summary(travHS)
Length Class Mode
dem 4200 -none- numeric
mask 4200 -none- numeric
marked 4200 -none- numeric
step 4200 -none- numeric
direction 4200 -none- numeric
basins 4200 -none- numeric

I dont know what is the active object in Rstudio and all this function need is available but yet return this error.

I will appreciate any help.

Best

Reply all
Reply to author
Forward
0 new messages