TauDEM icon indicating copy to clipboard operation
TauDEM copied to clipboard

Warning messages in R with TauDEM functions

Open Alobondo opened this issue 7 years ago • 1 comments

Dear Prof. Tarboton,

I am trying to run this command in R (using the "logan" example and/or my own DEM files):

system("mpiexec -n 8 pitremove -z logan.tif -fel loganfel.tif")

However, I get an warning message that says "running command 'mpiexec -n 8 pitremove -z logan.tif -fel loganfel.tif' had status 313".

Then, when I try to run "fel=raster("loganfel.tif")" it appears an Error message saying that the file does not exist.

On the other hand, if a run the PitRemove in the Command Prompt (using MS OS) I get an error massage window with something related to the locale_charset procedure entry point is not found in the dynamic link library C:\Program Files\GDAL\spatialite.dll

Is there any way to solve this and use TauDEM in R or with any prompt?

Thank you in advance!

Alobondo avatar Nov 29 '18 19:11 Alobondo

Hello,

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

What traudem does:

  • it guides installation of TauDEM and its dependencies GDAL and MPI for different OSs
  • it checks that TauDEM and its dependencies are correctly installed and included to the PATH
  • it provides wrapper commands for calling TauDEM methods from R

lucarraro avatar Oct 20 '22 12:10 lucarraro