seabirdfilehandler.bottlefile module

Inheritance diagram of seabirdfilehandler.bottlefile
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.

setting_dataframe_dtypes()[source]

Sets the types for the column values in the dataframe.

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’])

reading_data_header()[source]

Identifies and separatly collects the rows that specify the data tables headers.

add_station_and_event_column()[source]
add_position_columns()[source]