Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR 000732: Input Raster Dataset #19

Closed
sandhyageo opened this issue Nov 13, 2015 · 14 comments
Closed

ERROR 000732: Input Raster Dataset #19

sandhyageo opened this issue Nov 13, 2015 · 14 comments
Labels

Comments

@sandhyageo
Copy link

I download and installed TauDEM for examining the capability of the tool to edit the DEM. I extracted and imported the elevation to ArcMap and ran the 'pit remove' tool. When it finished running it shows error message;

Process started:

Executing: Calculate Statistics

Failed script PitRemove...

Traceback (most recent call last):
File "C:\Program Files\TauDEM\TauDEM5Arc\PitRemove.py", line 63, in
arcpy.CalculateStatistics_management(outFile)
File "c:\program files (x86)\arcgis\desktop10.2\arcpy\arcpy\management.py", line 13825, in CalculateStatistics
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000732: Input Raster Dataset: Dataset D:\work\projects\test\Demo\cubdemfel.tif does not exist or is not supported
Failed to execute (CalculateStatistics).

Failed to execute (PitRemove).

I could not process further. Any help would be greatly appreciated.

Regards,
Sandhya

@dtarb
Copy link
Owner

dtarb commented Nov 13, 2015

This can occur if MPI is not properly installed or paths are not correct from the install. Try the following:

  1. Check above the line Process started: in the message box. You should see something like
    Command Line: mpiexec -n 8 pitremove -z "D:\Scratch\CubDemo\cubdem" -fel "D:\Scratch\CubDemo\cubdemfel.tif"
    Open a command prompt and type this in starting from "mpiexec" and see if it works. This should run the program. If there are errors you should be able to see them and perhaps act on them.
  2. The command line guide http://hydrology.usu.edu/taudem/taudem5/TauDEM53CommandLineGuide.pdf has additional information on running from the command line and what the paths should be.
  3. At a command prompt, the path command should show you the path, and the commands "where mpiexec" and "where pitremove" should show you whether and where on your installation these functions that TauDEM uses have been installed and if they are correct. The path can be edited from "advanced system settings" (type advanced in the start search and select this), Then select environment variables and find path under system variables.

@dtarb dtarb added the Answer label Nov 13, 2015
@sandhyageo
Copy link
Author

Thanks dtarb,

It worked for me.

@dtarb dtarb closed this as completed Nov 24, 2015
@RondaStrauch
Copy link

RondaStrauch commented Aug 18, 2016

I also have this error, but I'm not as computer savoy to figure out what you mean above for the solution. I just uninstalled and updated TauDEM to 5.3.5 today using the complete windows installer. I'm trying to use pitfill or D-infinity tools, but this error (the same one above) just keeps coming up. I've located my mpiexec file and it was in the C:\Program Files\Microsoft HPC Pack 2012\Bin using "where". I copied it to the TauDEM5Exe folder, but that didn't seem to solve the problem. I found the "Advance system settings" that I need to edit the "Path" in the 'System variables' section. All the paths were there (e.g., C:\Program Files\Microsoft HPC Pack 2012\Bin;C:\GDAL;C:\Program Files\GDAL;C:\Program Files\TauDEM\TauDEM5Exe) but the TauDEM was there twice.

"Where gdal111.gll" didn't work, but I found the gdal111.dll file in the C:\Program Files\GDAL folder. So, not sure what I've done wrong.

Any help would be most appreciated. Thanks!!!

@dtarb
Copy link
Owner

dtarb commented Aug 19, 2016

I can not see anything wrong with the paths. Check that there are no trailing spaces that sometimes cause problems. If you type "path" at the command prompt do you see the path correctly.

Copying an exe file to a different location is generally not a good idea as it may have other dependencies, so I suggest leaving it where it was. Did you type "where gdal111.dll" or "where gdal111.gll" as you wrote above. The typo "g" would explain where not finding it, but still does not explain why this does not work for you.

Did you reboot the computer after the path changes. They may not take effect on programs that are already running and rebooting makes sure everything gets restarted.

@RondaStrauch
Copy link

Yes...this worked!! I likely had a typo and I restarted my machine. Now the gdal file is present and the TauDEM tool worked fine. Thanks for helping on this so quickly!

@daniel-althoff
Copy link

This can occur if MPI is not properly installed or paths are not correct from the install. Try the following:

  1. Check above the line Process started: in the message box. You should see something like
    Command Line: mpiexec -n 8 pitremove -z "D:\Scratch\CubDemo\cubdem" -fel "D:\Scratch\CubDemo\cubdemfel.tif"
    Open a command prompt and type this in starting from "mpiexec" and see if it works. This should run the program. If there are errors you should be able to see them and perhaps act on them.
  2. The command line guide http://hydrology.usu.edu/taudem/taudem5/TauDEM53CommandLineGuide.pdf has additional information on running from the command line and what the paths should be.
  3. At a command prompt, the path command should show you the path, and the commands "where mpiexec" and "where pitremove" should show you whether and where on your installation these functions that TauDEM uses have been installed and if they are correct. The path can be edited from "advanced system settings" (type advanced in the start search and select this), Then select environment variables and find path under system variables.

when i type in cmd :
C:\Users\danie>where mpiexec
C:\Program Files\Microsoft MPI\Bin\mpiexec.exe -- THIS IS OK

C:\Users\danie>where pitremove
INFO: Could not find files for the given pattern(s). -- WHY WONT IT FIND IT? I cant fix this

@dtarb
Copy link
Owner

dtarb commented Sep 13, 2018

This means that the path to where the TauDEM functions are has not been set. The typical location is C:\Program Files\TauDEM\TauDEM5Exe and this needs to be on your path. This should have been done by the installer, but if you did not have permissions to change paths, or did not have the set path box checked, it may not have been set. As noted above the path can be edited from "advanced system settings". Type advanced in the start search and select this, Then select environment variables and find path under system variables and create a new entry with the path to the location of the files on your system.

@daniel-althoff
Copy link

daniel-althoff commented Sep 13, 2018

This means that the path to where the TauDEM functions are has not been set. The typical location is C:\Program Files\TauDEM\TauDEM5Exe and this needs to be on your path. This should have been done by the installer, but if you did not have permissions to change paths, or did not have the set path box checked, it may not have been set. As noted above the path can be edited from "advanced system settings". Type advanced in the start search and select this, Then select environment variables and find path under system variables and create a new entry with the path to the location of the files on your system.

Thank you very much.
At first when I searched for "advanced system settings" it only showed "view advanced system settings".
I openned it but didn't find the "Environment variables" so I thought it was different on my OS .... I had been sleep deprived... my bad
And thanks again. Worked perfectly

@jbreng jbreng mentioned this issue Dec 6, 2018
@dtarb
Copy link
Owner

dtarb commented Dec 6, 2018

See my response in #192 (comment)

@micpy
Copy link

micpy commented May 28, 2020

Same error in ArcMap.
However, a different issue was raised when I tried to execute it in cmd.

"PitRemove.exe - Entry Point Not Found" [TauDEM537]
image

Note:
I experienced the same error with TauDEM535
My unit is 64-bit.
I already added to my Path the following: C:\Program Files\Microsoft MPI\Bin\mpiexec.exe;C:\Program Files\Microsoft HPC Pack 2012\Bin\mpiexec.exe;C:\Program Files\GDAL;C:\Program Files\Microsoft HPC Pack 2012;C:\Program Files\TauDEM;C:\Program Files\TauDEM\TauDEM5Exe

@geoye
Copy link

geoye commented Mar 22, 2021

I tried to use TauDEM in arcmap either, and I met the same question with you.
My solution is to set parellel processing number to 0 in environment settings:
image

@RondaStrauch
Copy link

RondaStrauch commented May 26, 2022 via email

@dtarb
Copy link
Owner

dtarb commented May 26, 2022

@RondaStrauch I saw this comment, but am not sure what the problem is that you are referring to. If you tell me a bit more I may be able to help.

@RondaStrauch
Copy link

@realmzoer15, can you share your problem with David? I just responded in email and it doesn't track your original image on the avalanche runout algorithm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants