mt_metadata.transfer_functions.io.zfiles package

Subpackages

Submodules

mt_metadata.transfer_functions.io.zfiles.zmm module

Created on Thu Sep 28 12:34:23 2017 @author: jrpeacock

Translated from code by B. Murphy.

class mt_metadata.transfer_functions.io.zfiles.zmm.ZMM(fn=None, **kwargs)[source]

Bases: ZMMHeader

Container for Egberts zrr format.

calculate_impedance(angle=0.0)[source]

calculate the impedances from the transfer functions

calculate_tippers(angle=0.0)[source]

calculate induction vectors

property channel_nomenclature
property ex_metadata
property ey_metadata
property frequencies
property hx_metadata
property hy_metadata
property hz_metadata
initialize_arrays()[source]

make initial arrays based on number of frequencies and channels

read(fn=None, get_elevation=False)[source]

Read in Egbert zrr/zmm file

Parameters:

fn (string or pathlib.Path) – full path to zmm/zrr file

property survey_metadata
write(fn, decimation_levels=None)[source]

write a zmm file

decimation_levels should be a dictionary with keys

  • decimation_level

values will be a dictionary with keys

  • frequency_band, value = (min, max)

  • n_points, value = int

  • sampling_freq, value = float

exception mt_metadata.transfer_functions.io.zfiles.zmm.ZMMError[source]

Bases: Exception

class mt_metadata.transfer_functions.io.zfiles.zmm.ZMMHeader(fn=None, **kwargs)[source]

Bases: object

Container for Header of an Egbert file

property channel_dict
property channels_recorded
property declination
property elevation
property fn
property has_impedance
property has_tipper
property input_channels
property latitude
property longitude
property output_channels
read_header(fn=None)[source]

read header information

property station
write_header()[source]

write a zmm header

TRANSFER FUNCTIONS IN MEASUREMENT COORDINATES ****** WITH FULL ERROR COVARINCE*********

300 coordinate 34.727 -115.735 declination 13.10 number of channels 5 number of frequencies 38 orientations and tilts of each channel

1 0.00 0.00 300 Hx 2 90.00 0.00 300 Hy 3 0.00 0.00 300 Hz 4 0.00 0.00 300 Ex 5 90.00 0.00 300 Ey

Returns:

properly formatted string

Return type:

string

Module contents

class mt_metadata.transfer_functions.io.zfiles.ZMM(fn=None, **kwargs)[source]

Bases: ZMMHeader

Container for Egberts zrr format.

calculate_impedance(angle=0.0)[source]

calculate the impedances from the transfer functions

calculate_tippers(angle=0.0)[source]

calculate induction vectors

property channel_nomenclature
property ex_metadata
property ey_metadata
property frequencies
property hx_metadata
property hy_metadata
property hz_metadata
initialize_arrays()[source]

make initial arrays based on number of frequencies and channels

read(fn=None, get_elevation=False)[source]

Read in Egbert zrr/zmm file

Parameters:

fn (string or pathlib.Path) – full path to zmm/zrr file

property survey_metadata
write(fn, decimation_levels=None)[source]

write a zmm file

decimation_levels should be a dictionary with keys

  • decimation_level

values will be a dictionary with keys

  • frequency_band, value = (min, max)

  • n_points, value = int

  • sampling_freq, value = float