avni.models.reference1d module#
This script/module contains routines that are used to analyze/visualize the data sets in the standard AVNI format.
- class avni.models.reference1d.Reference1D(file=None)[source]#
Bases:
object
A class for 1D reference Earth models used in tomography
- property name#
- coefficients_to_cards(base_units=True)[source]#
evaluates bases coefficients at prescribed depth levels to get a card deck file
base_units: convert from native units to base units in constants
- get_Love_elastic()[source]#
Get the Love parameters and Voigt averaged elastic properties with depth
A,C,N,L,F: anisotropy elastic Love parameters
kappa: bulk modulus
mu: shear modulus
vphi: bulk sound velocity
xi: shear anisotropy ratio
phi: P anisotropy ratio
Zs, Zp: S and P impedances
- get_mineralogical()[source]#
Get the Love parameters and Voigt averaged elastic properties with depth
gravity: gavity at each depth
Brunt-Vaisala Frequency: Used for Bullen’s parameter
Bullen: Bullen’s parameter
pressure: pressure at each depth
poisson: Poisson’s ratio
- get_discontinuity()[source]#
Get values, average values and contrasts at discontinuities
Returns a structure self.metadata[‘disc’] that has three arrays:
delta: containing absolute difference in parameters between smaller/larger radii
average: containing absolute average parameters between smaller/larger radii
contrasts: containing contrast in parameters (in %)
- get_custom_parameter(parameters)[source]#
Get the arrays of custom parameters defined in various Earth models
- evaluate_at_depth(depth_in_km, parameter='vsh', boundary='+', interpolation='linear')[source]#
Get the values of a parameter at a given depth
boundary: + for value at larger radius at a discontinuity
- to_mineoscards(directory='.', fmt='cards')[source]#
Writes a model file that is compatible with MINEOS.