Pinchpoint Mapper error about

51 views
Skip to first unread message

Shin Kanno

unread,
Jul 9, 2024, 4:47:59 AM7/9/24
to Linkage Mapper

Hi

After running "build network and map linkages" successfully for my data, I tried "Pinch Point Mapper" , but it gave me this errors on focal node raster.

When I carry out with demo datas, there are no problems.

Using circuitscape and linkage mapper's version are latest.

Thank you in advance for a pleasant response
Best regards


the error history written by arcgis pro is below.
Pinchpoint Mapper スクリプトを実行しています...
A record of run settings and messages can be found in your log directory:
C:\LinkageMapper\demo\output\kobe_celsize50\run_history\log
********************************************************
NOTE: ArcGIS errors are more likely when writing to remote drives or deep file structures. We recommend shallow project directories on local drives, like C:\puma. Errors may also result from conflicts with anti-virus software (known problems with AVG). We have also seen conflicts when writing to synchronized folders like DROPBOX.

Note also that Linkage Mapper tools often work best when run from ArcCatalog instead of ArcMap.
Setting data frame spatial reference to that of core area feature class.
Making local copy of resistance raster.
Creating output folder: C:\LinkageMapper\demo\output\kobe_celsize50\pinchpt_tmp
---------------------------------
Running script s8_pinchpoints.py
Looking for C:\LinkageMapper\demo\output\kobe_celsize50\datapass\linkTable_s5_plus.csv
Looking for C:\LinkageMapper\demo\output\kobe_celsize50\datapass\linkTable_s5.csv
There are 20 links in the table.
This includes 16 potential corridor links.
---------------------------------
---------------------------------
Mapping pinch points in individual corridors
using Circuitscape.
---------------------------------
If you try to cancel your run and the Arc dialog hangs,
you can kill Circuitscape by opening Windows Task Manager
and ending the cs_run.exe process.
---------------------------------
Processing link ID #1. Resistance map has 1093 nodes.
Calling Circuitscape:
--- Reading maps ---
--- Focal node raster has different number of columns than habitat raster. Circuitscape will try to crudely resample the raster. We recommend using the "Export to Circuitscape" ArcGIS tool to create ASCII grids with compatible cell size and extent. ---
Circuitscape failed.
Traceback (most recent call last):
File "csrun.py", line 13, in <module>
File "circuitscape\profiler.pyc", line 144, in wrapper
File "circuitscape\compute.pyc", line 31, in compute
File "circuitscape\profiler.pyc", line 144, in wrapper
File "circuitscape\compute.pyc", line 146, in compute_raster
File "circuitscape\profiler.pyc", line 212, in wrapper
File "circuitscape\profiler.pyc", line 144, in wrapper
File "circuitscape\compute.pyc", line 974, in load_maps
File "circuitscape\io.pyc", line 348, in read_point_map
File "circuitscape\io.pyc", line 310, in read_poly_map
File "circuitscape\io.pyc", line 288, in _resample_map
RuntimeError: Error resampling focal node, mask, or short-circuit region locations to match resistance map cell size and extent.  We recommend using the "Export to Circuitscape" ArcGIS tool to create ASCII grids with compatible cell size and extent.
Circuitscape failed. See error information above.
Trying again in 10 seconds.
Calling Circuitscape:
--- Reading maps ---
--- Focal node raster has different number of columns than habitat raster. Circuitscape will try to crudely resample the raster. We recommend using the "Export to Circuitscape" ArcGIS tool to create ASCII grids with compatible cell size and extent. ---
Circuitscape failed.
Traceback (most recent call last):
File "csrun.py", line 13, in <module>
File "circuitscape\profiler.pyc", line 144, in wrapper
File "circuitscape\compute.pyc", line 31, in compute
File "circuitscape\profiler.pyc", line 144, in wrapper
File "circuitscape\compute.pyc", line 146, in compute_raster
File "circuitscape\profiler.pyc", line 212, in wrapper
File "circuitscape\profiler.pyc", line 144, in wrapper
File "circuitscape\compute.pyc", line 974, in load_maps
File "circuitscape\io.pyc", line 348, in read_point_map
File "circuitscape\io.pyc", line 310, in read_poly_map
File "circuitscape\io.pyc", line 288, in _resample_map
RuntimeError: Error resampling focal node, mask, or short-circuit region locations to match resistance map cell size and extent.  We recommend using the "Export to Circuitscape" ArcGIS tool to create ASCII grids with compatible cell size and extent.
 
2024_07_09_1702_Circuitscape.txt

John Gallo

unread,
Jul 9, 2024, 3:04:48 PM7/9/24
to linkage...@googlegroups.com
I am not sure why that is failing.  Does it also fail if you uncheck "calculate adjacent pairs..." ?

It looks like it is having a problem with your resistance surface.  Maybe convert any null values to a number?

Anyone have any ideas?

--
You received this message because you are subscribed to the Google Groups "Linkage Mapper" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linkage-mappe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linkage-mapper/feab41fd-7f50-4691-9b95-edbd89bb9cc1n%40googlegroups.com.


--
John A. Gallo, Ph.D.
Project Director
LinkageMapper.org

and

Senior Conservation Scientist
Conservation Biology Institute
Message has been deleted

Shin Kanno

unread,
Jul 15, 2024, 2:00:25 PM7/15/24
to Linkage Mapper

Thank you for replying and your advices.

 I carried out Pinchpoint Mapper again without checking   "calculate adjacent pairs.
Pinchpoint Mapper seemed to output the results with no issue for my data, but that output was empty...

 As you said, my resistance data  is probably having some  unsuitable values like no data.
I  try to convert again for my resistance data.

If you come up with any good solutions, please let me know.

Shin Kanno

2024年7月10日水曜日 4:04:48 UTC+9 John Gallo:

John Gallo

unread,
Jul 15, 2024, 2:33:18 PM7/15/24
to linkage...@googlegroups.com
Hello Shin,

1) please make sure there are no cells of "NoData" in the resistance surface that are within the extent of the mapped resistance surface.  It is OK if they surround the surface at the edges of the extent.

2) If that still does not work, please send the log text files for the successful Map Linakges and Buld Network model run, as well as the failed pinchpoint mapper run.

Thank you,

JOhn

Reply all
Reply to author
Forward
0 new messages