2020
09-24
09-24
python获取栅格点和面值的实现
1、获取指定位置的点值:OutputFile=open(statisticResultTXT,'w')cellvalue=arcpy.GetCellValue_management(inputfilepath+filenname+".tif",staionXY,"1")OutputFile.write(stationID+"_"+filenname+""+str(cellvalue)+'\n')OutputFile.close()2、获取区域的均值极值utputFile=open(statisticResult,'w')env.workspace=('E:\loessplateau\ET_Spline\extract_year')rlist=arcpy.ListRasters('*','tif')forfileinr...
继续阅读 >