Skip to content

Instantly share code, notes, and snippets.

@seumasmorrison
Created July 6, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seumasmorrison/06b67c71a2e344385f6918d960c8ba3b to your computer and use it in GitHub Desktop.
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
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