Professional Documents
Culture Documents
#!/usr/bin/env python
# tries stress SST, SAT and MSAT
style = XFStyle()
wb = Workbook()
ws0 = wb.add_sheet('0')
colcount = 200 + 1
rowcount = 6000 + 1
#LEER ARCGIS
#
row=0
arcpy.env.workspace=r"\\CRIS-PC\Users\Public\Cris\pre\199801.tif.shp"
with arcpy.da.SearchCursor("199801.tif",["FID","x","y","RASTERVALU"]) as cursor:
for fila in cursor:
ws0.write(row, 0, fila[0])
ws0.write(row, 1, fila[1])
ws0.write(row, 2, fila[2])
ws0.write(row, 3, fila[3])
row=row+1
print("Storing...")
wb.save('garu.xls')
print("completo...")