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

Diff. from mean elevation #22

Closed
xabierr opened this issue Jul 27, 2020 · 1 comment
Closed

Diff. from mean elevation #22

xabierr opened this issue Jul 27, 2020 · 1 comment

Comments

@xabierr
Copy link

xabierr commented Jul 27, 2020

I'm running WhiteboxTools-ArcGIS within ArcGIS 10.7 with no issues. However, when trying to run the Diff. from mean elevation using the testdata DEM.tif get the following:

Traceback (most recent call last):
File "", line 9663, in execute
TypeError: diff_from_mean_elev() got an unexpected keyword argument 'i'

Failed to execute (DiffFromMeanElev).
Failed at Mon Jul 27 13:39:50 2020 (Elapsed Time: 0.22 seconds

giswqs added a commit that referenced this issue Jul 27, 2020
giswqs added a commit that referenced this issue Jul 27, 2020
@giswqs
Copy link
Member

giswqs commented Jul 27, 2020

@xabierr Thank you for reporting this bug. It actually affects several tools with dem inputs. In the WBT command line backend program, some tools accept keyword arguments such as -i, --input, and --dem. However, in the Python frontend, most tools with dem inputs only use the --dem keyword argument. The only exception is the Sink tool, which still uses -i argument @jblindsay. As all tools of the ArcGIS frontend are calling the Python frontend, we need to use --dem rather than -i. I just committed code to fix this. Please download the latest version and try again. It should be working as expected now.

@giswqs giswqs closed this as completed Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants