pylops.utils.seismicevents.makeaxis

pylops.utils.seismicevents.makeaxis(par)[source]

Create axes t, x, and y axes

Create space and time axes from dictionary containing initial values ot, ox, oy, sampling steps dt, dx``, dy and number of elements nt, nx``, ny for each axis.

Parameters:
par : dict

Dictionary containing initial values, sampling steps, and number of elements

Returns:
t : numpy.ndarray

Time axis

t2 : numpy.ndarray

Symmetric time axis

x : numpy.ndarray

x axis

y : numpy.ndarray

y axis (None, if oy, dy or ny are not provided)

Examples

>>> par = {'ox':0, 'dx':2, 'nx':60,
>>>        'oy':0, 'dy':2, 'ny':100,
>>>        'ot':0, 'dt':4, 'nt':400}
>>> # Create axis
>>> t, t2, x, y = makeaxis(par)