pycsamt.emtools.inspect#
Functions
|
|
|
|
|
|
|
|
|
Full four-component impedance tensor + tipper response for one station. |
|
|
|
Draw a period-vs-station pseudosection. |
|
- pycsamt.emtools.inspect.sites_summary(sites, *, fields=('station', 'n_freq', 'has_tipper', 'period_min', 'period_max', 'lat', 'lon'), recursive=True, on_dup='replace', strict=False, verbose=0, api=None)[source]#
- pycsamt.emtools.inspect.list_missing_sections(sites, *, require=('mt', 'tipper'), recursive=True, on_dup='replace', strict=False, verbose=0)[source]#
- pycsamt.emtools.inspect.frequency_coverage(sites, *, mode='per-site', recursive=True, on_dup='replace', strict=False, verbose=0)[source]#
- pycsamt.emtools.inspect.plot_coverage(sites, *, axis='period', show_mask=True, figsize=(7.0, 4.0), recursive=True, on_dup='replace', strict=False, verbose=0, ax=None)[source]#
- pycsamt.emtools.inspect.plot_rhoa_phi(sites, *, components=('xy', 'yx'), axis='period', errorbar=True, figsize=(7.5, 6.0), recursive=True, on_dup='replace', strict=False, verbose=0, ax_r=None, ax_p=None)[source]#
- pycsamt.emtools.inspect.plot_tipper_components(sites, *, kind=('real', 'imag'), axis='period', figsize=(7.5, 4.5), recursive=True, on_dup='replace', strict=False, verbose=0, ax=None)[source]#
- pycsamt.emtools.inspect.pseudosection(sites, *, quantity='rho_xy', axis_x='station', axis_y='period', period_range=None, vmin=None, vmax=None, figsize=(7.5, 4.5), recursive=True, on_dup='replace', strict=False, verbose=0, ax=None, topo=None, dark=True)[source]#
Draw a period-vs-station pseudosection.
- Parameters:
sites (Sites or compatible) – Station data.
quantity (str) – Column name to plot (e.g.
"rho_xy","phi_xy").topo (bool or None) – Override the global
PYCSAMT_TOPOsetting.None(default) reads the global singleton.dark (bool) – Use dark-palette styling for the topo strip.
axis_x (str)
axis_y (str)
vmin (float | None)
vmax (float | None)
recursive (bool)
on_dup (str)
strict (bool)
verbose (int)
ax (Axes | None)
- Return type:
- pycsamt.emtools.inspect.plot_station_response(sites, *, station=None, sites_model=None, components=('xx', 'xy', 'yx', 'yy'), period_range=None, rho_lim=None, phase_lim=None, tipper_lim=(-0.5, 0.5), show_tipper=True, show_error_bars=True, show_rms=True, title='', axes=None, figsize=None, recursive=True, on_dup='replace', strict=False, verbose=0)[source]#
Full four-component impedance tensor + tipper response for one station.
Renders a 3-row × N-column figure (N = len(components)) following the
MTComponentStylecolour scheme:Row 0 — apparent resistivity ρa (Ω·m) vs period, log–log.
Row 1 — phase φ (°) vs period, semilog-x.
Row 2 — tipper magnitude: Re(Tx), Im(Tx), Re(Ty), Im(Ty) vs period, semilog-x. Hidden when show_tipper is
Falseor when no tipper data are found.
Each column corresponds to one impedance tensor component (Zxx, Zxy, Zyx, Zyy). The tipper row always uses four fixed sub-panels regardless of which Z components are selected.
An optional sites_model argument overlays a second (model/forward) dataset on the same axes as dotted lines. When both observed and model data are present, a per-component RMS is computed in log10(ρa) space and appended to each column header.
- Parameters:
sites (any) – Observed EDI data — path,
SitesCollection, or anything accepted byensure_sites().station (str or None) – Name of the station to plot.
Nonepicks the first available.sites_model (any or None) – Optional forward-model or inversion-response EDI data (same API as sites). When provided, overlay dashed lines and show RMS.
components (tuple of {"xx","xy","yx","yy"}, default all four) – Z-tensor components to display. Order determines column order.
period_range ((T_min, T_max) or None) – Clip period axis to this window (seconds).
rho_lim ((vmin, vmax) or None) – ρa y-axis limits.
None→ matplotlib auto.phase_lim ((lo, hi) or None) – Phase y-axis limits in degrees.
None→ auto.tipper_lim ((lo, hi), default (-0.5, 0.5)) – Tipper y-axis limits.
show_tipper (bool, default True) – Whether to add the tipper row.
show_error_bars (bool, default True) – Draw error bars on observed data.
show_rms (bool, default True) – Append per-component RMS to column titles when sites_model is set.
title (str) – Override the auto-derived figure title.
figsize ((float, float) or None) – Figure size. Auto-computed when
None.recursive (bool) – Passed to
ensure_sites().on_dup (str) – Passed to
ensure_sites().strict (bool) – Passed to
ensure_sites().verbose (int) – Passed to
ensure_sites().
- Return type:
Examples
Observed data only:
>>> from pycsamt.emtools import plot_station_response >>> fig = plot_station_response("path/to/edis/", station="S07")
With model overlay:
>>> fig = plot_station_response( ... obs_edis, station="HBH03_IMP", ... sites_model=model_edis, ... period_range=(1e-4, 1.0), ... )