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,
Since you are using ArcPy and not the ArcGIS API for Python, I am sharing this with Python.
You mention points, then clip. are you trying to get raster values for those points?
If so, then maybe Extract Multi Values to Points
No. I mention points, then clip raster in a rectangular area around a mentioned point.
The number of mentioned points are more than 20000.
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.
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?
I imagine using tine to raster, but has the first part worked?
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.
I will let others jump in then. I suspect my suggestions haven't been useful