mth5.io.scripps.zenc

Created on Thu Jan 25 11:36:55 2024

@author: jpeacock

Classes

ZENC

Deal with .zenc files, which are apparently used to process data in EMTF.

Module Contents

class mth5.io.scripps.zenc.ZENC(channel_map)[source]

Deal with .zenc files, which are apparently used to process data in EMTF. It was specifically built for processing ZEN data in EMTF, but should work regardless of data logger.

The format is a header and then n_channels x n_samples of float32 values

This class will read/write .zenc files.

You need to input the path to an existing or new MTH5 file and a channel map to read/write.

The channel_map needs to be in the form

logger[source]
property channel_map[source]
to_zenc(mth5_file, channel_map=None)[source]

write out a .zenc file

Parameters:
  • mth5_file (TYPE) – DESCRIPTION

  • channel_map (TYPE, optional) – DESCRIPTION, defaults to None

Returns:

DESCRIPTION

Return type:

TYPE

get_run_metadata(run_ts)[source]

get run metadata from RunTS object

4096 version: 1.0 boxNumber: 74 samplingFrequency: 4096 timeDataStart: 2021-07-23 08:00:14 timeDataEnd: 2021-07-23 08:14:58 latitude: 58.22444 longitude: -155.66579 altitude: 251.30000 rx_stn: 1 TxFreq: 0 TxDuty: inf numChans: 5

Parameters:

run_ts (TYPE) – DESCRIPTION

Returns:

DESCRIPTION

Return type:

TYPE