ertkit.ves.Sounding#
- class ertkit.ves.Sounding(*, survey, rhoa, error=<factory>)#
Apparent resistivities of a sounding with their error model.
Readings that cannot be inverted in log space (transfer resistance \(R \le 0\), or \(|R|\) below three times the absolute error) are removed with a
DataWarning.- Parameters:
- surveySurvey
Electrode half-spacings of the readings.
- rhoaarray_like
Apparent resistivity in ohm meters, one value per reading.
- errorErrorModel or None, optional
Measurement-error model. Default (or None):
ErrorModel(), 3% relative.
- Raises:
- TypeError
If
surveyorerrorhas the wrong type.- ValueError
If
rhoadoes not have one finite value per reading, or if no reading is usable.
- Warns:
- DataWarning
If readings are removed.
Notes
The data weights use the observed transfer resistances, while
synthetic()draws noise with standard deviations computed from the noise-free ones; with an absolute error part, readings that happen to come out low are therefore weighted slightly less.Examples
>>> from ertkit.ves import Sounding, Survey >>> survey = Survey.schlumberger(ab2=[3.0, 10.0, 30.0], mn2=0.5) >>> Sounding(survey=survey, rhoa=[120.0, 80.0, 150.0]).n_data 3
- property log_data#
The inverted data \(d = \ln \rho_a\).
- property log_std#
Standard deviation of \(\ln \rho_a\) for each reading.
- property n_data#
Number of readings.
- property resistance#
Transfer resistance \(R = \rho_a / K\), in ohms.
- classmethod synthetic(model, survey, error=None, rng=None)#
Simulate noisy data from a layered model.
Noise is drawn from the error model in log space: \(\ln \rho_a^{\mathrm{obs}} = \ln \rho_a + s \, \varepsilon\), with \(\varepsilon \sim N(0, 1)\) and \(s\) evaluated at the noise-free data. Unusable noise-free readings are removed before drawing noise, so a signal below the noise floor cannot be amplified into a usable reading. Noisy readings are screened again afterwards.
- Parameters:
- modelLayeredModel
The true model.
- surveySurvey
Electrode half-spacings.
- errorErrorModel, optional
Error model used both to draw the noise and to weight the data. Default
ErrorModel().- rngint, numpy.random.Generator or None, optional
Seed or generator, normalized with
numpy.random.default_rng().
- Returns:
- Sounding
- Raises:
- ValueError
If no noise-free or noisy reading is usable.
- Warns:
- DataWarning
If noise-free or noisy readings are removed.