ConvertEK60¶
-
class
echopype.convert.
ConvertEK60
(_filename='', regex='(?P<survey>.+)?-?D(?P<date>\w{1, 8})-T(?P<time>\w{1, 6})-?(?P<postfix>\w+)?.raw', nmea_gps_sentence='GGA')¶ Bases:
echopype.convert.convertbase.ConvertBase
Class for converting EK60
.raw
files.Methods Summary
copyfiles
(out_file[, overwrite])Creates a duplicate file so that parsed data can be split into multiple files Used for when the length of range changes over time
load_ek60_raw
(raw)Method to parse the EK60
.raw
data file.save
(file_format[, save_path, combine_opt, …])Save data from .raw format to a netCDF4 or Zarr file
Split ping_time, power_dict, angle_dict, tx_sig by range_group.
Methods Documentation
-
copyfiles
(out_file, overwrite=False)¶ Creates a duplicate file so that parsed data can be split into multiple files Used for when the length of range changes over time
-
load_ek60_raw
(raw)¶ Method to parse the EK60
.raw
data file.This method parses the
.raw
file and saves the parsed data to the ConvertEK60 instance.- Parameters
- rawstring
raw filename
-
save
(file_format, save_path=None, combine_opt=False, overwrite=False, compress=True)¶ Save data from .raw format to a netCDF4 or Zarr file
- Parameters
- file_formatstr
format of output file. “.nc” for netCDF4 or “.zarr” for Zarr
- save_pathstr
Path to save output to. Must be a directory if converting multiple files. Must be a filename if combining multiple files. If False, outputs in the same location as the input raw file.
- combine_optbool
Whether or not to combine a list of input raw files. Raises error if combine_opt is true and there is only one file being converted.
- overwritebool
Whether or not to overwrite the file if the output path already exists.
- compressbool
Whether or not to compress backscatter data. Defaults to True
-
split_by_range_group
()¶ Split ping_time, power_dict, angle_dict, tx_sig by range_group.
This is to deal with cases when there is a switch of range_bin size in the middle of the file.
-