lleoio

pylleo.lleoio.read_data(meta, path_dir, sample_f=1, decimate=False, overwrite=False)[source]

Read accelerometry data from leonardo txt files

Parameters:
  • meta (dict) – Dictionary of meta data from header lines of lleo data files
  • path_dir (str) – Parent directory containing lleo data files
  • sample_f (int) – Return every sample_f data points
Returns:

  • acc (pandas.DataFrame) – Dataframe containing accelerometry data on x, y, z axes [m/s^2]
  • depth (pandas.DataFrame) – Dataframe containing depth data [m]
  • prop (pandas.DataFrame) – Dataframe containing speed data from propeller
  • temp (pandas.DataFrame) – Dataframe containing temperature data

pylleo.lleoio.read_meta(path_dir, tag_model, tag_id)[source]

Read meta data from Little Leonardo data header rows

Parameters:
  • path_dir (str) – Parent directory containing lleo data files
  • tag_model (str) – Little Leonardo tag model name
  • tag_id (str, int) – Little Leonardo tag ID number
Returns:

meta – dictionary with meta data from header lines of lleo data files

Return type:

dict