资源简介
本程序适用于对arcpy有所了解,对遥感栅格数据做趋势分析和F值检验的在校人群
代码片段和文件信息
# -*- coding: utf-8 -*-
“““
Created on Thu Jun 1 13:06:45 2017
@author: CSY
“““
import arcpy
arcpy.CheckOutExtension(“spatial“)
from arcpy.sa import *
import math
arcpy.CheckOutExtension(“spatial“)
workspace1=“K:/Data3/growth“
arcpy.env.workspace=unicode(workspace1“utf8“)
ys=arcpy.ListRasters(“2*““tif“)
#生成时间序列图层
i=0 #初始化i
for y in ys:
#生成时间序列图层
i=i+1
out=“K:/Data3/growth/“
if i<10:
out1=unicode(out“utf8“)+“30“+str(i)+“.tif“
else:
out1=unicode(out“utf8“)+“3“+str(i)+“.tif“
outx=Con(y>-10iy)
outx.save(out1
评论
共有 条评论