Required
name| Type: | str |
| Description: | Name of the bathymetry model. |
class OceanLayer(
salvus.project.configuration.bathymetry.spherical._SphericalBase
):
def __init__(
self,
name: str,
data: pathlib.Path | str,
ocean_layer_vp: float = 1450.0,
ocean_layer_density: float = 1020.0,
ocean_layer_cutoff: float | None = None,
shore_smoothing_factor: float | None = None,
use_symlink: bool = False,
): ...| Type: | str |
| Description: | Name of the bathymetry model. |
| Type: | pathlib.Path | str |
| Description: | Path to the bathymetry data file. |
| Type: | float |
| Default value: | 1450.0 |
| Description: | The (constant) velocity of water in the ocean layer. Defaults to 1450.0 m/s. |
| Type: | float |
| Default value: | 1020.0 |
| Description: | The (constant) density of water in the ocean layer. Defaults to 1020 kg/m**3. |
| Type: | float | None |
| Default value: | None |
| Description: | Use the ocean loading approximation once the ocean becomes shallower than this value in meters. Defaults to None, in which case an appropriate value will be computed using the period of the mesh. |
| Type: | float | None |
| Default value: | None |
| Description: | "Smooth" the shoreline to a second-order discontinuity. Defaults to None, in which case a value of 0.3 will be used. |
| Type: | bool |
| Default value: | False |
| Description: | Don't copy the data to the project but only symlink it. The downside of symlinking is that the project is no longer fully self-contained. The upside is that very large external files that could be used for multiple projects don't get copied. |
xr.Dataset)-The actual dataset representing the model.str)-Model name.float | None)-Ocean layer cutoff.float)-Density of the ocean layer.str)-Style of ocean layer.float)-P-wave velocity of the ocean layer.float | None)-Shore smoothing factor.def from_json(parent_folder: pathlib.Path, d: dict) -> _ModelBase: ...| Type: | pathlib.Path |
| Description: | Path to which the serialized model is relative to. |
| Type: | dict |
| Description: | Dictionary containing its init parameters and a few other things. |
def to_json(self, parent_folder: pathlib.Path | str) -> dict: ...| Type: | pathlib.Path | str |
| Description: | Parent folder where the JSON + NetCDF files should be stored. |
class OceanLoad(
salvus.project.configuration.bathymetry.spherical._SphericalBase
):
def __init__(
self,
name: str,
data: pathlib.Path | str,
ocean_layer_density: float = 1020.0,
use_symlink: bool = False,
): ...| Type: | str |
| Description: | Name of the bathymetry model. |
| Type: | pathlib.Path | str |
| Description: | Path to the bathymetry data file. |
| Type: | float |
| Default value: | 1020.0 |
| Description: | The (constant) density of water in the ocean layer. Defaults to 1020 kg/m**3. |
| Type: | bool |
| Default value: | False |
| Description: | Don't copy the data to the project but only symlink it. The downside of symlinking is that the project is no longer fully self-contained. The upside is that very large external files that could be used for multiple projects don't get copied. |
xr.Dataset)-The actual dataset representing the model.str)-Model name.float | None)-Ocean layer cutoff.float)-Density of the ocean layer.str)-Style of ocean layer.float)-P-wave velocity of the ocean layer.float | None)-Shore smoothing factor.def from_json(parent_folder: pathlib.Path, d: dict) -> _ModelBase: ...| Type: | pathlib.Path |
| Description: | Path to which the serialized model is relative to. |
| Type: | dict |
| Description: | Dictionary containing its init parameters and a few other things. |
def to_json(self, parent_folder: pathlib.Path | str) -> dict: ...| Type: | pathlib.Path | str |
| Description: | Parent folder where the JSON + NetCDF files should be stored. |