alex_bn_lee

导航

[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")

posted on 2023-10-09 12:50  McDelfino  阅读(3)  评论(0编辑  收藏  举报