dtarb / TauDEM

Terrain Analysis Using Digital Elevation Models (TauDEM) software for hydrologic terrain analysis and channel network extraction.
http://hydrology.usu.edu/taudem
Other
222 stars 115 forks source link

Burned flow direction #236

Open tcalegario opened 2 years ago

tcalegario commented 2 years ago

Dear dtarb!

This package is awesome. Thanks for developing it.

I`m trying to obtain burned flow direction file using the .exe procedure described on https://hydrology.usu.edu/taudem/taudem5/TauDEMRScript.txt

But I'm not being well succeeded on it. Can you give me some lights?

  1. Filled Dem (work perfectly)

system("mpiexec -n 8 pitremove -z ./intermediarios/NASAdem_S2000_30m_raster.tif -fel ./intermediarios/burned/demFill.tif")

  1. D8 (work perfectly)

system("mpiexec -n 8 D8Flowdir -p ./intermediarios/burned/demFillDir8.tif -sd8 ./intermediarios/burned/demFillSlopeDir8.tif -fel ./intermediarios/burned/demFill.tif")

  1. D8 Burned based on streamnet (do not work)

system("mpiexec -n 8 D8Flowdir -p ./intermediarios/burned/demFillDir8.tif -sd8 ./intermediarios/burned/demFillSlopeDir8.tif -fel ./intermediarios/burned/demFill.tif -sfdr ./intermediarios/streamnetRaster30m.tif")

Thanks for your attention!

dtarb commented 2 years ago

@tcalegario what is the error that you get. The most likely problem with this third step is that streamnetRaster30m.tif is not constructed correctly for use by D8Flowdir. How did you obtain or calculate it? More broadly what are you trying to do?

tcalegario commented 2 years ago

@dtarb, thanks for your reply!

to obtain stremnetRaster30m.tif, I converted a polyline stream file to raster on ArcGis respecting the grid of "dem".

I'm trying to make my accumulated flow coincide with the mapped rivers that are in a shapefile.

tcalegario commented 2 years ago

@dtarb, I tried again moving "mapped streams" input to "pitremove" tool. But the result of flow Accumulation was not what I'm expecting (Figure below).

system("mpiexec -n 8 pitremove -z ./demProjected.tif -fel ./demPFillBurn.tif -sfdr ./stream30m.tif")

system("mpiexec -n 8 D8Flowdir -p ./Dir8.tif -sd8 ./SlopeDir8.tif -fel ./demPFillBurn.tif" ,show.output.on.console=F,invisible=F)

system("mpiexec -n 8 AreaD8 -p ./Dir8.tif -ad8 ./accumul_nc.tif -nc")

image

When I try to use -sfrd optional input on "D8Flowdir" I got error 65533.

system("mpiexec -n 8 D8Flowdir -p ./Dir8.tif -sd8 ./SlopeDir8.tif -fel ./demPFillBurn.tif -sfdr ./stream30m.tif" ,show.output.on.console=F,invisible=F)

Cause of my difficulty, I obtained flow accumulation using "whiteBox" package on R, and apparently worked fine (Figure Below). But I would like to compare both procedures (Taudem x WhiteBox). If there is a way to obtain "similar" result as "WhiteBox" please let me know. My goal is to automating watershed delineation on R.

image

Thanks a lot for your time.

lucarraro commented 1 year ago

Hello,

The R package traudem was just published on CRAN, and it might help you solve this issue.

What traudem does: