-1
Aşağıdaki 9. satırdaki sözdiziminde neyin yanlış olduğunu anlayamıyorum. Yardım et? ArcMap'ta Python'u kullanma.Python - Ayrıştırma hatası Sözdizimi: geçersiz sözdizimi
>>> for strName in rasterList:
... pRaster = arcpy.Raster(strName)
... pPoint = arcpy.Point(2256560.829028871, 908394.8188188977)
... if pRaster.name == "dem":
... myArray = arcpy.RasterToNumPyArray(pRaster, pPoint, 3, 3)
... (width, height)= myArray.shape
... for row in range(0,height):
... for col in range(0,width):
... print "["+ str(row) + ", " + str(col)+"]:"str(myArray.item(row,col))
...
Parsing error SyntaxError: invalid syntax (line 9)
"[" + str (satır) + " "+ str (col) +"]:"' ve 'str (myArray.item (satır, sütun))' – Francesco
@Francesco - bir yorumdan daha uygun bir yanıt gibi görünüyor. –
@ Robᵩ Teşekkürler, hala ne zaman yorum yapacağını, yanıtlamayı, çözmeye çalıştığımı anlamaya çalışıyorum – Francesco