Multiprocessing in python

373
1
06-07-2018 05:10 PM
AzusaIshizaki
New Contributor

Hello,

 

I am developing a tool to clip raster from a large raster within an arbitrary range from some points.

The number of points is more than 20000, it's enormous.

So, I tried to use multiprocessing in python.

 

I created a python program.

However, it doesn't work completely.

I tested this python program for 10 points.

Then, 6 out of 10 points were outputted correctly.

On the other hand, 4 points were outputted as empty tables, not rasters.

 

I guess causes as below ... 

(1) Time out of arcpy.Clip_management

(2) Access to one raster from some process

 

But I can't find any solution.

I attached python file.

If anyone knows of any solution, give me advice or solutions. 

 

Thanks,

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus
0 Kudos