Mondaic
This API reference is not for the latest stable Salvus version.

salvus.toolbox.ses3d

Functions

get_par_names()

def get_par_names(file: str) -> str:
    ...

Get the parameter name that a SES3D file is referring to.

Parameters
  • file str — Filename.
Returns str — Parameter name.

Classes

Ses3dModel

class Ses3dModel(builtins.object):
    def __init__(
        self,
        directory: Union[pathlib.Path, str],
        parameters: List[pathlib.Path],
    ):
        ...

A class to handle instances of SES3D models.

Read and store a SES3D model in spherical coordinates. Models and parameters will be automatically detected given a base directory.

Parameters
  • directory Union[pathlib.Path, str] — Path to model and parameter files.
  • parameters List[pathlib.Path] — A list of parameters to read.
Attributes
data xarray.core.dataset.Dataset

The model’s data.