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

Math error using Calculate Weights #131

Open
george494 opened this issue Apr 23, 2020 · 1 comment
Open

Math error using Calculate Weights #131

george494 opened this issue Apr 23, 2020 · 1 comment

Comments

@george494
Copy link

Here is the log and error message. Any idea what is causing this to happen?

Executing: CalculateWeightsTool int_mins # GoldMines Ascending C:\Users\George\Desktop\GISData\Mines_A.dbf 0.52 1 -99 #
Start Time: Thu Apr 23 15:58:31 2020
Running script CalculateWeightsTool...
Reloaded arcsdm modules

========== arcsdm values ==========
ArcSdm 5.01.07 for ArcGis (Pro and Desktop)

Arcgis environment: Desktop (10.7)
Workspace: C:\Users\George\Desktop\GISData (FileSystem)
Scratch workspace: C:\Users\George\Desktop\GISData (FileSystem)
Map Units: meter
Mask: "bound_rast" and it is RasterLayer
Mask size: 13763.1681
Cell Size: 30

Training Sites: 735

Unit Cell Area: 1.0km^2, Cells in area: 13763.1681
Prior Probability: 0.053403
Training Set: C:\Users\George\Desktop\GISData\Mines\mrds-f53047.shp
Study Area Raster: C:\Users\George\Desktop\GISData\WOE\bound_rast
Study Area Area: 13763.1681km^2
========== Calculate weights ==========
Creating table: C:\Users\George\Desktop\GISData\Mines_A.dbf (Ascending)
GP ERRORS:

PYTHON ERRORS:
Traceback Info:
File "C:\Users\George\Desktop\GISData\ArcSDM-master\Toolbox\arcsdm\calculateweights.py", line 132, in MakeWts
wp = math.log(ls)

Error Info:
<type 'exceptions.ValueError'>: math domain error

Weights calculation aborted.
Completed script CalculateWeightsTool...
Failed to execute (CalculateWeightsTool).
Failed at Thu Apr 23 16:01:04 2020 (Elapsed Time: 2 minutes 33 seconds)

@artolaiho
Copy link
Collaborator

Hello. Can you try to download whole ArcSDM packet from arto-dev branch and try again.
If the same error happens again (as it probably happens), I should get your source material so I can test the same on my own computer.

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