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

salvus.project.configuration.model.background.one_dimensional

Classes

BuiltIn

class BuiltIn(salvus.project.configuration.model.background._BackgroundBase):
    def __init__(self, name: str): ...

Use a built-in model as the background model.

Parameters
  • name str — The name of the model.
Methods
from_json()
def from_json(d: Dict) -> Any: ...

Recreate the object from a dictionary serialization of its initialization parameters.

Parameters
  • d Dict — Dictionary containing its init parameters and a few other things.
Returns Any
prem_iso_one_crust()
def prem_iso_one_crust() -> BuiltIn: ...

A modified, isotropic version of PREM.

Upper crustal layer replaced by lower crustal material.

Returns BuiltIn
name()
def name(self) -> Union[str, Callable]: ...

Name of the model.

Returns Union[str, Callable]
to_json()
def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...

Serialize the object to dictionary that can be written to JSON.

Parameters
  • external_file_hash Optional[str] — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.
Returns Dict

FromBm

class FromBm(salvus.project.configuration.model.background._BackgroundBase):
    def __init__(
        self,
        filename: Union[pathlib.Path, str],
        reference_datum: Optional[float] = 0.0,
    ): ...

Background model from a BM file.

Parameters
  • filename Union[pathlib.Path, str] — BM file.
  • reference_datum Optional[float] — Absolute coordinate value in the vertical direction (y in 2-D, z in 3-D) to which the depth is referenced. Model values at coordinates above will be extrapolated using a constant value.
Methods
from_json()
def from_json(d: Dict) -> Any: ...

Recreate the object from a dictionary serialization of its initialization parameters.

Parameters
  • d Dict — Dictionary containing its init parameters and a few other things.
Returns Any
name()
def name(self) -> Union[str, Callable]: ...

Name of the model.

Returns Union[str, Callable]
to_json()
def to_json(self, external_file_hash: Optional[str] = None) -> Dict: ...

Serialize the object to dictionary that can be written to JSON.

Parameters
  • external_file_hash Optional[str] — Hash of any external files associated with this object. Can be passed here in which case it will be stored in a centralized location in the JSON file.
Returns Dict