55 inpfile =
open(
"SCNT-GEO-03",
"rt")
56 outfile =
open(
"SCNT.sql",
"awt")
57 line =modname =comment =volline =cindx =
' '
60 r3 =r4 =r5 =r6 =r7 =r8 =r9 =0.0
66 line = inpfile.readline()
72 name = string.split(line)
93 volline = volline+
","+
str(r6)+
","+
str(r7)+
","+
str(r8)
95 outfile.write(
"insert into SCNT_data (SCNT_data_id, ITEM, DR,RC,ZP,DRW,DT,DTW,DPHI) values (\n")
96 outfile.write(volline)
98 outfile.write(
"insert into SCNT_data2tag values ('SCNT-GEO-03', ")
100 outfile.write(
");\n")
103 print ' IndexError : ',nmax,
' ',name