Curve#

class evodcinv.Curve(period, data, mode=0, wave='rayleigh', type='phase', weight=1.0, uncertainties=None)[source]#

Curve data class.

Parameters:
  • period (array_like) – Periods (in s).

  • data (array_like) – Data array to fit.

  • mode (int, optional, default 0) – Mode number (0 if fundamental).

  • wave (str {'love', 'rayleigh'}, optional, default 'rayleigh') – Wave type.

  • type (str {'phase', 'group', 'ellipticity'}, optional, default 'phase') – Data type.

  • weight (scalar, optional, default 1.0) – Overall weight applied to the misfit error associated to this data set.

  • uncertainties (scalar, array_like or None, optional, default None) – Uncertainties associated to data points.

property data#

Return data array.

property mode#

Return mode.

property period#

Return periods.

resample(new_period, inplace=False)[source]#

Resample curve.

Parameters:
  • new_period (scalar or array_like) – Periods at which to generate new data.

  • inplace (bool, optional, default True) – If False, return a new evodcinv.Curve.

Returns:

New data curve (only if inplace == False).

Return type:

evodcinv.Curve

property type#

Return data type.

property uncertainties#

Return uncertainties associated to data points.

property wave#

Return wave type.

property weight#

Return misfit error weight.