pycsamt.zonge.var_pc#

Percent-variation (QC) components for Zonge AVG tables.

This module provides small, format-agnostic containers for the three “percent-error” columns commonly found in AMTAVG/CSAVGW- style data:

  • PcEmag – relative |E| error in percent (%Emag / E.%err)

  • PcHmag – relative |H| error in percent (%Hmag / B.%err)

  • PcRho – relative apparent-resistivity error in percent

    (%Rho / ARes.%err / rho.%err)

All classes inherit from AVGComponentBase, read tidy tables (modern or legacy), normalize column names, and can export to xarray.Dataset for multi-dimensional workflows.

Classes

EmagPctErr

HmagPctErr

PcEmag([data, meta, name, verbose])

Percent error on electric-field magnitude, \(|E|\).

PcHmag([data, meta, name, verbose])

Percent error on magnetic-field magnitude, \(|H|\).

PcRho([data, meta, name, verbose])

Percent error on apparent resistivity, \(\rho_a\).

PercentVarBase([data, meta, name, verbose])

Abstract base for percent-variation QC columns.

RhoPctErr

class pycsamt.zonge.var_pc.PcEmag(data=None, meta=None, *, name=None, verbose=False)[source]#

Bases: PercentVarBase

Percent error on electric-field magnitude, \(|E|\).

This component normalizes legacy aliases into a canonical variable named pc_emag:

  • '%Emag' (legacy AMTAVG/MTEdit),

  • 'E.%err' (CSAVGW / modern),

  • case-sensitive exact matches are used.

Notes

Values are stored in percent; the dataset attribute Unit.Percent is set to '%' when exporting to xarray.Dataset.

Parameters:
VAR_NAME: ClassVar[str] = 'pc_emag'#
TITLE: ClassVar[str] = 'Percent |E| Variation'#
UNIT_ATTR: ClassVar[str] = 'Unit.Percent'#
class pycsamt.zonge.var_pc.PcRho(data=None, meta=None, *, name=None, verbose=False)[source]#

Bases: PercentVarBase

Percent error on apparent resistivity, \(\rho_a\).

This component normalizes legacy aliases into a canonical variable named pc_rho:

  • '%Rho' (legacy AMTAVG/MTEdit),

  • 'ARes.%err' (CSAVGW),

  • 'rho.%err' (modern lower-case variant).

Notes

Values are stored in percent; the dataset attribute Unit.Percent is set to '%' when exporting to xarray.Dataset.

Parameters:
VAR_NAME: ClassVar[str] = 'pc_rho'#
TITLE: ClassVar[str] = 'Percent ρa Variation'#
UNIT_ATTR: ClassVar[str] = 'Unit.Percent'#
class pycsamt.zonge.var_pc.PcHmag(data=None, meta=None, *, name=None, verbose=False)[source]#

Bases: PercentVarBase

Percent error on magnetic-field magnitude, \(|H|\).

This component normalizes legacy aliases into a canonical variable named pc_hmag:

  • '%Hmag' (legacy AMTAVG/MTEdit),

  • 'B.%err' (CSAVGW, where B denotes the H-field),

  • 'H.%err' (rare but seen).

Notes

Values are stored in percent; the dataset attribute Unit.Percent is set to '%' when exporting to xarray.Dataset.

Parameters:
VAR_NAME: ClassVar[str] = 'pc_hmag'#
TITLE: ClassVar[str] = 'Percent |H| Variation'#
UNIT_ATTR: ClassVar[str] = 'Unit.Percent'#
pycsamt.zonge.var_pc.EmagPctErr#

alias of PcEmag

pycsamt.zonge.var_pc.HmagPctErr#

alias of PcHmag

pycsamt.zonge.var_pc.RhoPctErr#

alias of PcRho