mth5.clients.uoa
Client for creating MTH5 files from University of Adelaide instrument data. Supports both PR6-24 (Earth Data Logger) and Orange Box instruments.
Created on Thu Nov 7 15:35:00 2025
@author: bkay
Classes
Client for creating MTH5 files from University of Adelaide instrument data. |
Module Contents
- class mth5.clients.uoa.UoAClient(data_path, save_path=None, instrument_type='pr624', mth5_filename='from_uoa.h5', **kwargs)[source]
Bases:
mth5.clients.base.ClientBaseClient for creating MTH5 files from University of Adelaide instrument data.
Supports: - PR6-24 (Earth Data Logger): ASCII files (.BX, .BY, .BZ, .EX, .EY) - Orange Box: Binary files (.BIN)
- Parameters:
data_path (str or pathlib.Path) – Path to directory or file(s)
save_path (str or pathlib.Path, optional) – Path to save MTH5 file, defaults to data_path
instrument_type (str, optional) – ‘pr624’ or ‘orange’, defaults to ‘pr624’
mth5_filename (str, optional) – Name of output MTH5 file, defaults to “from_uoa.h5”
- Example:
>>> from mth5.clients import UoAClient >>> # PR6-24 data >>> uc = UoAClient("/path/to/pr624/data", instrument_type='pr624') >>> mth5_path = uc.make_mth5_from_uoa( ... survey_id="Survey01", ... station_id="MT001", ... sample_rate=10.0, ... dipole_length_ex=50.0, ... dipole_length_ey=50.0 ... ) >>> >>> # Orange Box data >>> uc = UoAClient("/path/to/orange/data", instrument_type='orange') >>> mth5_path = uc.make_mth5_from_uoa( ... survey_id="Survey01", ... station_id="ST61", ... dipole_length_ex=100.0, ... dipole_length_ey=100.0 ... )
- make_mth5_from_uoa(survey_id, station_id, run_id='001', **kwargs)[source]
Create an MTH5 file from UoA instrument data.
- Parameters:
survey_id (str) – Survey identifier
station_id (str) – Station identifier
run_id (str, optional) – Run identifier, defaults to “001”
kwargs (dict) –
Additional keyword arguments for reader:
- PR6-24 arguments:
sample_rate (float): REQUIRED - sample rate in Hz
sensor_type (str): ‘bartington’ or ‘lemi120’
dipole_length_ex (float): Ex dipole length in meters
dipole_length_ey (float): Ey dipole length in meters
calibration_fn_bx (str): LEMI-120 .rsp file for Bx
calibration_fn_by (str): LEMI-120 .rsp file for By
calibration_fn_bz (str): LEMI-120 .rsp file for Bz
latitude (float): Station latitude
longitude (float): Station longitude
elevation (float): Station elevation
- Orange Box arguments:
dipole_length_ex (float): Ex dipole length in meters
dipole_length_ey (float): Ey dipole length in meters
latitude (float): Station latitude
longitude (float): Station longitude
elevation (float): Station elevation
- Returns:
Path to created MTH5 file
- Return type:
pathlib.Path
- Example:
>>> from mth5.clients import UoAClient >>> # PR6-24 long-period data >>> uc = UoAClient("/data/pr624", instrument_type='pr624') >>> mth5_file = uc.make_mth5_from_uoa( ... survey_id="MySurvey", ... station_id="MT001", ... sample_rate=10.0, ... sensor_type='bartington', ... dipole_length_ex=50.0, ... dipole_length_ey=50.0 ... ) >>> >>> # Orange Box data >>> uc = UoAClient("/data/orange", instrument_type='orange') >>> mth5_file = uc.make_mth5_from_uoa( ... survey_id="MySurvey", ... station_id="ST61", ... dipole_length_ex=100.0, ... dipole_length_ey=100.0 ... )