gtkfi / ArcSDM

Spatial Data Modeler 6 for ArcGIS Pro
33 stars 18 forks source link

Math error using Calculate Weights #131

Open george494 opened 4 years ago

george494 commented 4 years ago

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 commented 4 years ago

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.