Required
name| Type: | str |
| Description: | Name of the bathymetry model. |
class OceanLayer(
salvus.project.configuration.bathymetry.cartesian._CartesianBase
):
def __init__(
self,
name: str,
data: pathlib.Path | str | xr.Dataset,
reference_elevation: float,
ocean_surface_datum: float = 0.0,
ocean_layer_style: str = "match_ocean_bottom",
ocean_layer_vp: float = 1450.0,
ocean_layer_density: float = 1020.0,
ocean_layer_cutoff: float | None = None,
use_symlink: bool = False,
): ...| Type: | str |
| Description: | Name of the bathymetry model. |
| Type: | pathlib.Path | str | xr.Dataset |
| Description: | Path to the bathymetry data file, or an xarray Dataset. |
| Type: | float |
| Description: | Elevation to which the bathymetry model is referenced. |
| Type: | float |
| Default value: | 0.0 |
| Description: | The elevation value in the bathymetry file that is considered as the ocean's surface. All elevations less than this value will be considered as underwater. Defaults to 0.0. |
| Type: | str |
| Default value: | 'match_ocean_bottom' |
| Description: | The method used to refine the elements in the water layer in the horizontal direction. Phases in the vertical direction should be resolved regardless of the option specified here. Options are: "match_ocean_bottom": Use the horizontal element size at the ocean bottom as the horizontal element size within the ocean. This may over- / under-resolve the ocean phases depending on the ratio of the sub-surface to ocean velocities. |
| 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: | 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. |
np.ndarray | tuple[np.ndarray, np.ndarray])-Coordinates of the data values.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)-Reference elevation height.np.ndarray)-Relative elevation model.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 from_surface_topography(
name: str,
topography: SurfaceTopography,
ocean_layer_style: str = "match_ocean_bottom",
ocean_surface_datum: float = 0.0,
ocean_layer_vp: float = 1450.0,
ocean_layer_density: float = 1020.0,
ocean_layer_cutoff: float | None = None,
use_symlink: bool = False,
) -> OceanLayer: ...| Type: | str |
| Description: | Name of the bathymetry model. |
| Type: | SurfaceTopography |
| Description: | Topography model from which to extract bathymetry. |
| Type: | str |
| Default value: | 'match_ocean_bottom' |
| Description: | The method used to refine the elements in the water layer in the horizontal direction. Phases in the vertical direction should be resolved regardless of the option specified here. Options are: "match_ocean_bottom": Use the horizontal element size at the ocean bottom as the horizontal element size within the ocean. This may over- / under-resolve the ocean phases depending on the ratio of the sub-surface to ocean velocities. |
| Type: | float |
| Default value: | 0.0 |
| Description: | The elevation value in the bathymetry file that is considered as the ocean's surface. All elevations less than this value will be considered as underwater. Defaults to 0.0. |
| 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: | 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. |
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. |