bruges.transform.timedepthconv module

Time-depth conversion.

copyright:2015 Agile Geoscience
license:Apache 2.0
bruges.transform.timedepthconv.depth_to_time(data, vmodel, dz, dt, twt=True, mode='nearest', return_t=False)[source]

Converts data from the depth domain to the time domain given a velocity model.

Parameters:
  • data (ndarray) – The data to convert, will work with a 1 or 2D numpy numpy array. array(samples,traces).
  • vmodel (ndarray) – P-wave interval velocity model that corresponds to the data. Must be the same shape as data.
  • dz (float) – The sample interval of the input data [m].
  • dt (float) – The sample interval of the output data [s].
  • twt (bool) – Use twt travel time, defaults to true.
  • mode (str) – What kind of interpolation to use, defaults to ‘nearest’.
  • return_t (bool) – Whether to also return the new time basis.
Returns:

The data resampled in the time domain.

bruges.transform.timedepthconv.time_to_depth(data, vmodel, dt, dz, twt=True, mode='nearest', return_z=False)[source]

Converts data from the time domain to the depth domain given a velocity model.

Parameters:
  • data (ndarray) – The data to convert, will work with a 1 or 2D numpy numpy array. array(samples,traces).
  • vmodel (ndarray) – P-wave interval velocity model that corresponds to the data. Must be the same shape as data.
  • dt (float) – The sample interval of the input data [s], or an array of times.
  • dz (float) – The sample interval of the output data [m], or an array of depths.
  • twt (bool) – Use twt travel time, defaults to true.
  • mode (str) – What kind of interpolation to use, defaults to ‘nearest’.
  • return_z (bool) – Whether to also return the new time basis.
Returns
ndarray: The data resampled in the depth domain.