demist.nro45m.io module#
- demist.nro45m.io.read(log: PathLike[str] | str, array: Literal['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'A10', 'A11', 'A12', 'A13', 'A14', 'A15', 'A16', 'A17', 'A18', 'A19', 'A20', 'A21', 'A22', 'A23', 'A24', 'A25', 'A26', 'A27', 'A28', 'A29', 'A30', 'A31', 'A32'], /, *, chan_binning: int = 1, time_binning: int = 1, chan_flip: bool = False) DataArray[source]#
Read a SAM45 log to create a DataArray of an array.
- Parameters:
log – Path to the SAM45 log.
array – Array name to read (A1-A32).
chan_binning – Number of channels to bin together.
time_binning – Number of time samples to bin together.
chan_flip – Whether to flip the channel order. Note that this is a temporary workaround for reading SAM45 logs with flipped channel order and will be removed in future versions.
- Returns:
DataArray of the array.