pytomoatt.model¶
Module for handling model data.
- class pytomoatt.model.ATTModel(para_fname='input_params.yml')[source]¶
Bases:
object
Create initial model from external models
- calc_dv(ref_mod_fname: str)[source]¶
calculate anomalies relative to another model
- Parameters:
ref_mod_fname (str) – Path to reference model
- grid_data_ascii(model_fname: str, **kwargs)[source]¶
Grid data from custom model file in ASCII format
- Parameters:
model_fname (str) – Path to model file
usecols (list or tuple) – Columns order by longitude, latitude, depth and velocity, defaults to [0, 1, 2, 3]
- grid_data_crust1(type='vp')[source]¶
Grid data from CRUST1.0 model
- Parameters:
type (str, optional) – Specify velocity type of
vp
orvs
, defaults to ‘vp’
- classmethod read(model_fname: str, para_fname='input_params.yml')[source]¶
Read an exists model
- Parameters:
model_fname (str) – Path to the exists model
para_fname (str, optional) – Path to parameter file, defaults to ‘input_params.yml’
- smooth(sigma=5.0)[source]¶
Gaussian smooth the 3D velocity model
- Parameters:
sigma (scalar or sequence of scalars , optional) – Standard division of gaussian kernel in km, defaults to 10