Skip to content

Instantly share code, notes, and snippets.

@seumasmorrison
Created June 9, 2017 16:24
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/a0446f7ff688d675ed6bae4de376a2a9 to your computer and use it in GitHub Desktop.
Save seumasmorrison/a0446f7ff688d675ed6bae4de376a2a9 to your computer and use it in GitHub Desktop.
Dictionaries for mapping MKIV data based on data from libdatawell manual
# Dictionary mapping file name to data contents
datawell_mappings = {'20':'heave_spectrum',
'21':'directional_spectrum',
'23':'spectrum_sync',
'25':'directional_spectral_parameters',
'26':'upcross_wave_statistics',
'28':'secondary_directional_spectrum',
'81':'sea_surface_temperature',
'82':'acoustic_current_meter',
'C1':'system_message',
'C3':'battery',
'displacement':'displacement'}
column_name_dict = {'directional_spectral_parameters':['Timestamp', 'MsgId', 'SegmentsUsed', 'H_s',
'T_I', 'T_E', 'T_1', 'T_z', 'T_3', 'T_c', 'R_p',
'T_p','S_max','theta_p','sigma_p'],
'sea_surface_temperature': ['Timestamp', 'MsgId', 'TemperatureKelvin']}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment