CalibrationParser

class echoregions.convert.CalibrationParser(input_file=None)

Bases: echoregions.convert.ev_parser.EvParserBase

Class for parsing EV calibration (ECS) files

Attributes
filename
input_file
output_file

Methods

parse_file([ignore_comments])

Base method for parsing the file in input_file and constructing output_data Used for EVR and EVL parsers

read_line(open_file[, split])

Remove the LF at the end of every line.

to_csv([save_path])

Convert an Echoview calibration .ecs file to a .csv file

to_json([save_path, pretty])

Convert an Echoview 2D regions .evr file to a .json file

Methods Summary

parse_file([ignore_comments])

Base method for parsing the file in input_file and constructing output_data Used for EVR and EVL parsers

to_csv([save_path])

Convert an Echoview calibration .ecs file to a .csv file

Methods Documentation

parse_file(ignore_comments=True)

Base method for parsing the file in input_file and constructing output_data Used for EVR and EVL parsers

to_csv(save_path=None, **kwargs)

Convert an Echoview calibration .ecs file to a .csv file

Parameters
save_pathstr

path to save the CSV file to

kwargs

keyword arguments passed into parse_file