You are on page 1of 1

from __future__ import print_function

#!/usr/bin/env python
# tries stress SST, SAT and MSAT

from time import *


from xlwt.Workbook import *
from xlwt.Style import *
#importar arcpy
import arcpy

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...")

You might also like