資源簡介
只要把路徑改一下就可以了,希望對大家有所幫助。
代碼片段和文件信息
import?arcpy
from?arcpy?import?env
from?arcpy.sa?import?*
env.workspace?=?r“E:\modeldata\LAI“
rasters?=?arcpy.ListRasters(“*“?“TIF“)
for?raster?in?rasters:
????print?raster
????arcpy.Resample_management(raster?“LAI“+raster?“1000“?“NEAREST“)
????arcpy.Clip_management(in_raster=“LAI“+rasterrectangle=
評論
共有 條評論