I have a text file with the format (date, time, resistance):
12/11/2013 13:20:38 28.321930E+3
... ... ...
I need to extract the value of resistance (third column) from every 6 seconds after the first data entry. To start I wanted to import the text file using:
date, time, resistance = loadtxt('Thermometers.txt', unpack=True, usecols=[0,1,2])
However before I've hardly begun my program, I get the error:
ValueError: invalid literal for float(): 12/11/2013
-ALSO-
I am not sure how to also iterate through time given that the date changes as it's an over-night data run. Elegant solutions to my problem(s) would be much appreciated.
loadTxtfunction, please.numpy.loadtxt(fname, dtype=<type 'float'>, comments='#', delimiter=None, converters=None, skiprows=0, usecols=None, unpack=False, ndmin=0)Load data from a text file. Each row in the text file must have the same number of values.