Warning messages in R with TauDEM functions
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!
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