pycsamt.tdem.avg#
Readers for Zonge TEMAVG processed .AVG files.
Functions
|
Return |
Classes
|
Processed content of one Zonge TEMAVG |
|
One processed TEMAVG gate value. |
- class pycsamt.tdem.avg.TEMAVG(path, metadata=<factory>, records=<factory>, version=None, dated=None, processed=None, verbose=0, logger=None)[source]#
Bases:
PyCSAMTObjectProcessed content of one Zonge TEMAVG
.AVGfile.TEMAVGreads the human-readable output produced by the Zonge TEMAVG processing program. The object stores global metadata such as transmitter ramp, loop dimensions, and receiver area together with one row per station/time gate. It is a processed time-domain EM container, not an EDI or frequency-domain impedance object.- Parameters:
path (pathlib.Path) – Source file path.
metadata (dict) – Parsed header metadata. Keys include entries such as
"TXramp","TXdx","TXdy","TXarea", and"RXarea"when present.records (list of TEMAVGRecord) – Parsed processed data rows.
version (str, optional) – TEMAVG program version parsed from the first line.
dated (str, optional) – Field data date parsed from the first line.
processed (str, optional) – Processing date parsed from the first line.
verbose (int)
logger (object | None)
Examples
>>> from pycsamt.tdem.avg import TEMAVG >>> avg = TEMAVG.read("data/TEMAVG/JIANGSU/TEM100.AVG") >>> avg.n_records > 0 True >>> avg.stations[:3] [100.0, 120.0, 140.0]
- records: list[TEMAVGRecord]#
- classmethod read(path, *, verbose=0, logger=None)[source]#
Read a Zonge TEMAVG
.AVGfile.- Parameters:
- Returns:
Parsed TEMAVG file.
- Return type:
- rows_for_station(station)[source]#
Return all gate rows for one station value.
- Parameters:
station (float)
- Return type:
- to_soundings(*, stations=None, component='Hz', frequency=None, data_column='magnitude', magnitude_unit='uV/A', data_type='voltage', rx_turns=1, tx_turns=1, coordinate_table=None, profile=None, station_name_template='{stem}_{station:g}', min_gates=1, verbose=0, logger=None)[source]#
Build one
TEMSoundingper station.- Parameters:
stations (list of float, optional) – Station values to export. When omitted, every station in the file is converted.
component (str, default "Hz") – Component label to select from the TEMAVG rows.
frequency (float, optional) – Repetition frequency to select. When omitted, all rows matching
componentare used.data_column ({"magnitude"}, default "magnitude") – TEMAVG data column used for the sounding decay. The processed magnitude column is currently the only supported transient column.
magnitude_unit (str, default "uV/A") – Unit of the TEMAVG magnitude column.
"uV/A"means microvolts per ampere."V/A","uV","V", and"SI"are also accepted.data_type (str, default "voltage") – Output
TEMSoundingdata type."voltage"keeps the decay as receiver voltage."dBdt"divides by receiver turns and area."dHdt"additionally divides by \(\mu_0\).rx_turns (int, default 1) – Receiver and transmitter turn counts passed to the resulting soundings.
tx_turns (int, default 1) – Receiver and transmitter turn counts passed to the resulting soundings.
coordinate_table (object, optional) – Coordinate table exposing
get(profile, point). Matching coordinates are copied to the soundingx,y, andelevationfields.profile (float, optional) – Profile id used with
coordinate_table. If omitted and no coordinate table is supplied, coordinates stay at their default values.station_name_template (str, default "{stem}_{station:g}") – Format string used to create each station name. Available fields are
stem,station,profile, andcomponent.min_gates (int, default 1) – Minimum number of selected time gates required to create a sounding.
verbose (int)
logger (object | None)
- Returns:
Station-wise soundings ready for late-time or Fourier conversion.
- Return type:
list of TEMSounding
- to_dataframe()[source]#
Return the parsed table as a
pandas.DataFrame.
- class pycsamt.tdem.avg.TEMAVGRecord(skip, tx, station, frequency, component, current, window, time, magnitude, ramp_app_res, depth, percent_magnitude)[source]#
Bases:
objectOne processed TEMAVG gate value.
- Parameters:
skip (int) – TEMAVG skip or block flag stored in the first column.
tx (float) – Transmitter identifier from the
Txcolumn.station (float) – Station coordinate or station number along the survey profile.
frequency (float) – Repetition frequency in hertz.
component (str) – Measured component label, for example
"Hz".current (float) – Transmitter current in amperes from the
Ampscolumn.window (int) – Time-window number.
time (float) – Gate centre time in milliseconds, as written by TEMAVG.
magnitude (float) – Processed transient magnitude. For TEMAVG contour files this is commonly reported in microvolts per ampere.
ramp_app_res (float) – Ramp-corrected apparent resistivity in ohm metres.
depth (float) – TEMAVG depth estimate in metres.
percent_magnitude (float) – Percent magnitude or percent error column.