[894] Optimize arcpy scripts
ref: Parallel Processing Factor (Environment setting)
ref: Write geoprocessing output to memory
- Parallel processing
arcpy.env.parallelProcessingFactor = 24
- Write geoprocessing output to memory
- To write to the memory workspace, specify an output dataset path beginning with
memory\
and with no file extension—for example,memory\tempOutput
. - This strategy improve the model a lot. From 70mins to 5mins.
-
arcpy.analysis.Clip(in_features=PFAS, clip_features=sitebuffer_3_, out_feature_class="memory\\Map3_3a_PFAS_Clip2000m")
- To write to the memory workspace, specify an output dataset path beginning with