serendipyty.seismic.model.models

Created on Wed Feb 7 15:10:52 2018

@author: Filippo Broggini (ETH Zürich) - filippo.broggini@erdw.ethz.ch

Classes

AcousticModel(dx, vp, rho[, dy, dz]) Acoustic model.
BaseModel(modeltype, dx, dy, dz) Base class for velocity and density models.
class serendipyty.seismic.model.models.BaseModel(modeltype, dx, dy, dz)[source]

Bases: object

Base class for velocity and density models.

This is implemented as a function object, so the magic happens in the __call__ member function.

Attributes

n (list of int) Dimensions in (x, y, z)
ndim (int) Number of dimensions

Methods

__call__(self, t=None, nu=None, **kwargs)  
plot(style=None, **kwargs)[source]

Plot the model parameters.

__weakref__

list of weak references to the object (if defined)

class serendipyty.seismic.model.models.AcousticModel(dx, vp, rho, dy=None, dz=None)[source]

Bases: serendipyty.seismic.model.models.BaseModel

Acoustic model.

Velocity and density models for an acoustic medium.

Parameters:

dx : float

Spatial discretization in the x direction.

dy : float, optional

Spatial discretization in the y direction.

dz : float, optional

Spatial discretization in the z direction.

vp : float, ndarray

Velocity model

rho : float, ndarray

Density model

Methods

plot([style]) Plot the model parameters.