simpeg_forward

SimPEG 1D TDEM forward modelling backend.

SimPEG 1D TDEM forward modelling as a third backend next to GA-AEM and anemone.

Public API mirrors forward_anemone / prior_data_anemone: resistivity in, positive dB/dt per unit transmitter moment [V/(A m^4)] out, one column per used gate, LM gates first. simpeg is imported lazily so importing integrate never requires it.

What SimPEG’s Simulation1DLayered lacks for Aarhus-style systems is added here, in the frequency domain where GA-AEM does it too:

  • receiver / TiB low-pass filters -> _FilteredSimulation1DLayered multiplies the complex frequency response of each moment by the GEX filter chain before SimPEG’s cosine/sine DLF (exact: the filtered response is still causal);

  • gate integration -> gate_integration='bfield' samples B at the gate edges and takes (B(close) - B(open)) / (close - open), the exact gate mean of dB/dt (GA-AEM AreaUnderCurve); 'gl' / 'centre' sample dB/dt instead.

See docs/superpowers/specs/2026-09-14-simpeg-forward-backend-design.md

integrate.simpeg_forward.forward_simpeg(M=array([], dtype=float64), thickness=array([], dtype=float64), file_gex=None, GEX=None, tx_height=array([], dtype=float64), altitude_bin_width=1.0, is_log=False, doCompress=True, gate_integration='bfield', gate_quad=5, hankel_filter='key_101_2009', time_filter='key_81_2009', n_points_per_path=2, parallel=True, Ncpu=0, showInfo=0, showtime=False, progress_callback=None, **kwargs)

Forward TDEM response of layered models with SimPEG.

Parameters:
  • M (ndarray (nd, nl) or (nl,)) – Layer resistivities [ohm m].

  • thickness (ndarray (nl-1,)) – Layer thicknesses [m] (last layer = half-space).

  • file_gex (str, optional) – Aarhus .gex system file. Alternatively pass GEX (dict from read_gex_workbench) or a system dict from gex_to_em_system.

  • tx_height (float or ndarray (nd,), optional) – Transmitter height above ground [m]. Default: -TxCoilPosition1[2] for ground systems (tTEM), else 40 m.

  • altitude_bin_width (float) – Varying tx_height is rounded to bins of this width (m) so that one SimPEG geometry serves many soundings; <= 0 uses exact heights.

  • is_log (bool) – Return log10 of the data.

  • doCompress (bool) – Merge adjacent layers with identical resistivity before each forward (exact; fewer layers = faster).

  • gate_integration ({'bfield', 'gl', 'centre'}) – How a gate value is obtained: exact gate mean of dB/dt from B at the gate edges (default), Gauss-Legendre mean of dB/dt with gate_quad points, or dB/dt at the gate centre.

  • hankel_filter (str) – SimPEG/libdlf filter names ('key_101_2009' / 'key_81_2009').

  • time_filter (str) – SimPEG/libdlf filter names ('key_101_2009' / 'key_81_2009').

  • n_points_per_path (int) – Gauss-Legendre points per loop segment (SimPEG LineCurrent).

  • parallel (bool) – Use a multiprocessing pool over soundings (Ncpu = 0 -> all cores).

  • progress_callback (callable, optional) – progress_callback(current, total, info_dict).

  • **kwargs – Ignored (accepts GA-AEM-only options such as Nhank/Nfreq).

Returns:

dB/dt per unit transmitter moment [V/(A m^4)], positive, LM gates then HM.

Return type:

ndarray (nd, n_used) – or (n_used,) for a 1-D M

integrate.simpeg_forward.prior_data_simpeg(f_prior_h5, file_gex=None, N=0, doMakePriorCopy=True, im=1, id=1, im_height=0, is_log=False, altitude_bin_width=1.0, doCompress=True, gate_integration='bfield', gate_quad=5, hankel_filter='key_101_2009', time_filter='key_81_2009', n_points_per_path=2, parallel=True, Ncpu=0, force_replace=False, f_prior_data_h5='', randomize=True, **kwargs)

Generate prior data /D{id} with the SimPEG forward backend.

Same contract as prior_data_gaaem / prior_data_anemone: reads resistivity /M{im} (and /M{im_height} as transmitter height when im_height > 0) from f_prior_h5, optionally copies the file first (doMakePriorCopy; auto-name <stem>_<gex>[_N<N>]_simpeg.h5), writes /D{id} = dB/dt per unit transmitter moment, and returns the file path.

See forward_simpeg() for the modelling options. showInfo and progress_callback may be passed as keyword arguments.