sbe.accessors

Classes

SBEAccessor

A Mapping is a generic container for associating key/value

Module Contents

class sbe.accessors.SBEAccessor(xarray_object: xarray.Dataset)

Bases: collections.abc.Mapping

A Mapping is a generic container for associating key/value pairs.

This class provides concrete generic implementations of all methods except for __getitem__, __iter__, and __len__.

_obj
to_hex(path: str | os.PathLike | None = None, check=True)

return or write a .hex file identical to the input of read_hex

The output will not be identical if the errors of read_hex was not “store”.

_str_to_bytes_or_file(var, path: str | os.PathLike | None = None, check=True)
to_hdr(path: str | os.PathLike | None = None, check=True)
to_xmlcon(path: str | os.PathLike | None = None, check=True)
to_bl(path: str | os.PathLike | None = None, check=True)
all_to_dir(path: str | os.PathLike, check=True)

Write all possible output files to path

Given some path to a directory, will export all the files (hex, xmlcon, bl, hdr) using their input filenames.

_xmlcon()
get_frequency(freq: int)
get_voltage(voltage: int)
property num_frequencies: int
property num_voltages: int
property config
property sensors
serialize()
property _meta

Write out metadata columns using the wrapper

property _names
__getitem__(name)
__len__()
__iter__()