seabirdfilehandler.bottlefile module

- class seabirdfilehandler.bottlefile.BottleFile(path_to_file, only_header=False)[source]
Bases:
DataFile
Class that represents a SeaBird Bottle File. Organizes the files table information into a pandas dataframe. This allows the usage of this powerful library for statistics, visualization, data manipulation, export, etc.
- create_dataframe()[source]
Creates a dataframe out of the btl file. Manages the double data header correctly.
- adding_timestamp_column()[source]
Creates a timestamp column that holds both, Date and Time information.
- selecting_rows(df=None, statistic_of_interest=['avg'])[source]
Creates a dataframe with the given row identifier, using the statistics column. A single string or a list of strings can be processed.
- Parameters:
df (pandas.Dataframe :) – the files Pandas representation (Default value = self.df)
statistic_of_interest (list or str :) –
- collection of values of the ‘statistics’ column in self.df
(Default value = [‘avg’])