Troubles in a tool using multiprocessing

253
8
06-07-2018 01:39 AM
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
8 Replies
JoshuaBixby
MVP Esteemed Contributor

Since you are using ArcPy and not the ArcGIS API for Python, I am sharing this with Python‌.

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

You mention points, then clip. are you trying to get raster values for those points?

If so, then maybe Extract Multi Values to Points

AzusaIshizaki
New Contributor

No. I mention points, then clip raster in a rectangular area around a mentioned point.

The number of mentioned points are more than 20000.

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

Ok, so you create a feature class (temporary?) or extract by an extent then?

Which means that you might be able to set the analysis extent (an environment setting) and save the result out as a raster without any clipping.

Perhaps an image of a portion of the area would help even if to confirm that the extents of the bounds are overlapping the raster.

AzusaIshizaki
New Contributor

Using the extracted raster from a large raster, I am going to create tin and visible area.

Is it possible to do these process without clipping?

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

I imagine using tine to raster, but has the first part worked?

AzusaIshizaki
New Contributor

No.

First process: clip raster

Second process: raster to tin, raster to visible area

I want to do the whole process (first and second process) in multiprocessing.

0 Kudos
DanPatterson_Retired
MVP Esteemed Contributor

I will let others jump in then.  I suspect my suggestions haven't been useful

0 Kudos