重新分类插值的arcgis数据时出错

2024-05-16 09:20:47 发布

您现在位置:Python中文网/ 问答频道 /正文

00058582“执行时发生错误:执行代码时出错”。然后把地震数据从地震层转换成地震的相关系数。在

我的python代码在这里。在

def geoprocessing(event, ut):
data=folder+ '\\' + event + '.txt'
layer=event+'e_layer'
idwOutput=workspace+'\idw_'+event
arcpy.MakeXYEventLayer_management(data,"longitude","latitude", layer,spRef)
Print_Message("Event ["+ event + "] and mask setup completed")
arcpy.gp.Idw_sa(layer, "PGA",idwOutput, "", "2", "VARIABLE 12", "")
Print_Message("Interpolation done!")

# Reclassifying shake acceleration based on the 
idwReclass= Reclassify(idwOutput, "Value", RemapRange([[0,0.17,1],[0.17,1.39,2],[1.39,1.40,3],[1.40,3.89,4],[3.89,9.19,5],[9.19,17.99,6],[17.99,33.99,7],[3.99,64.99,8],[64.99,123.99,9],[123.99,500,10]]), "DATA")
Print_Message("Reclassification of shake acceleration done!")

下面是运行python代码时返回的错误。在

^{pr2}$

我不知道我为什么会犯这个错误。有人能帮我吗?在


Tags: 数据代码eventlayermessagedatadef错误