# Import System Modules
import sys, string, os, csv
# Enter the input and output file names here
inputFileName="PROJECT.csv"
outputFileName="PROJ.kml"
inFile=open(inputFileName)
outFile=open(outputFileName,'a')
# Enter the total number of records here
numobs = 12
header =""+"\n"+\
"
"
"
# Read in the stand attributes file one line at a time
outFile.write(str(header))
for obs in range(numobs):
readline=inFile.readline()
# Select the variables
currow=readline.split(",")
student=currow[0]
year=currow[1]
rslat=currow[2]
rslong=currow[3]
advisor=currow[4]
studyarea=currow[5]
outFile.write("
"
"
"
"
"
"
#print studentInfo
#outFile.write(str(studentInfo))
footer="
"
outFile.write(str(footer))
inFile.close()
outFile.close()

0 comments :
Post a Comment