seabirdfilehandler.bottlelogfile module

Inheritance diagram of seabirdfilehandler.bottlelogfile
class seabirdfilehandler.bottlelogfile.BottleLogFile(path_to_file, create_dataframe=False)[source]

Bases: DataFile

Bottle Log file representation, that extracts the three different data types from the file: reset time and the table with bottle IDs and corresponding data ranges.

data_whitespace_removal()[source]

Strips the input from whitespace characters, in this case especially newline characters.

Return type:

the original data stripped off the whitespaces

obtaining_reset_time()[source]

Reading reset time with small input check.

Return type:

a datetime.datetime object of the device reset time

create_list()[source]

Creates a list of usable data from the list specified in self.data. the list consists of: an array of ID’s representing the bottles, the date and time of the data sample and the lines of the cnv corresponding to the bottles

Return type:

a list representing the bl files table information

convert_date(date)[source]

Converts the Dates of the .bl files to an ISO 8601 standard

Return type:

a string with the date in the form of “yymmddThhmmss”

create_dataframe()[source]

Creates a dataframe from the list specified in self.data.

Return type:

a pandas.Dataframe representing the bl files table information