Created
July 6, 2017 15:18
-
-
Save seumasmorrison/06b67c71a2e344385f6918d960c8ba3b to your computer and use it in GitHub Desktop.
Snippet for reading a Datawell MKIII historical spectra file into a date time indexed DataFrame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
his_columns = ['date_time', 'tp', 'dirp', 'sprp', 'tz', 'hm0', 'ti', 't1', | |
'tc', 'tdw2', 'tdw1', 'tpc', 'nu','eps','qp','ss','tref','tsea', | |
'bat'] | |
def read_his(filepath): | |
return pd.read_csv(filepath, names=his_columns, index_col=[0], parse_dates=[0]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment