ich muss aus Excel die Daten aus einer zweidimensionalen Tabelle importieren.Und zwar sieht die Tabelle so aus:
Code: Alles auswählen
Width VdotAir
Height 0 0,1 0,2 0,3 0,4 0,5 0,6 0,7 0,8 0,9 1
0 0,3
0,1 0,3 0,3 0,3 0,22 0,3 0,3 0,3
0,2 0,3 0,3 0,22 0,22 0,18 0,22 0,22 0,3 0,3
0,3 0,3 0,22 0,18 0,18 0,14 0,18 0,18 0,22 0,3
0,4 0,3 0,22 0,18 0,18 0,1 0,18 0,18 0,22 0,3
0,5 0,3 0,22 0,18 0,14 0,14 0 0,14 0,14 0,18 0,22 0,3
0,6 0,3 0,22 0,18 0,18 0,1 0,18 0,18 0,22 0,3
0,7 0,3 0,22 0,18 0,18 0,14 0,18 0,18 0,22 0,3
0,8 0,3 0,3 0,22 0,22 0,18 0,22 0,22 0,3 0,3
0,9 0,3 0,3 0,3 0,22 0,3 0,3 0,3
1 0,3
Code: Alles auswählen
def readVdotAir(self, fileName):
sh = self._getWorkBook(fileName)
col = self._getPropertyRow('Width', sh)
row = self._getPropertyLine('Height', sh)
self.cellwidth = array([x for x in sh.col_values(col)[2:13] if x != ''])
self.cellheight =array([x for x in sh.row_values(row)[1:12] if x != '' ])
Vielen Dank für die Hilfe.Entschuldigung für die undeutliche Tabelle,nur ich habe leider kein xls.-Format gefunden.