salvus.flow.simple_config.receiver.seismology.collections
salvus.flow.simple_config.receiver.seismology.collections salvus flow simple_config receiver seismology collections Seismology receiver collections.
Classes
SideSetGridPoint3D
SideSetGridPoint3Dclass SideSetGridPoint3D(
salvus.flow.simple_config.receiver._ReceiverCollection
):
def __init__(
self,
lat_center: float,
lat_extent: float,
lon_center: float,
lon_extent: float,
fields: list[str],
n_lat: int,
n_lon: int,
depth_in_m: float = 0.0,
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
) -> None: ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
Create a grid of 3D seismological receivers in spherical coordinates.
The grid will follow a cubed sphere chunk with the same latitude and longitude settings.
All coordinates here are spherical coordinates. If your coordinates are defined in a geodetic (ellipsoidal) reference system like WGS84, you need to convert them before passing them to this function.
lat_centerfloat — Latitude center of the receiver grid.lat_extentfloat — Latitude extent of the receiver grid.lon_centerfloat — Longitude center of the receiver grid.lon_extentfloat — Longitude extent of the receiver grid.fieldslist[str] — Which fields to save for the receivers.n_latint — Number of receivers along the latitude side of the grid.n_lonint — Number of receivers along the longitude side of the grid.depth_in_mfloat — Depth of the receivers below Earth’s surface.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.
to_list()
to_list()def to_list(self) -> list[_Base]: ...Convert to a list of receivers.
SideSetSphericalGridPoint3D
SideSetSphericalGridPoint3Dclass SideSetSphericalGridPoint3D(
salvus.flow.simple_config.receiver._ReceiverCollection
):
def __init__(
self,
lat_center: float,
lat_extent: float,
lon_center: float,
lon_extent: float,
fields: list[str],
n_lat: int,
n_lon: int,
depth_in_m: float = 0.0,
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
use_side_set_receivers: bool = True,
) -> None: ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
Create a grid of 3D seismological receivers in spherical coordinates.
In contrast to SideSetSphericalPoint3D, this collection returns
receivers which are equidistantly spaced in spherical coordinates.
All coordinates here are spherical coordinates. If your coordinates are defined in a geodetic (ellipsoidal) reference system like WGS84, you need to convert them before passing them to this function.
lat_centerfloat — Latitude center of the receiver grid.lat_extentfloat — Latitude extent of the receiver grid.lon_centerfloat — Longitude center of the receiver grid.lon_extentfloat — Longitude extent of the receiver grid.fieldslist[str] — Which fields to save for the receivers.n_latint — Number of receivers along the latitude side of the grid.n_lonint — Number of receivers along the longitude side of the grid.depth_in_mfloat — Depth of the receivers below Earth’s surface.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.use_side_set_receiversbool — In certain cases it is advantageous to specify receivers in absolute lat/lon/rad, rather than a relative depth below the mesh surface. Setting this parameter to False allows this method of operation.
to_list()
to_list()def to_list(self) -> list[_Base]: ...Convert to a list of receivers.
SpherePoint3D
SpherePoint3Dclass SpherePoint3D(salvus.flow.simple_config.receiver._ReceiverCollection):
def __init__(
self,
x: float,
y: float,
z: float,
radius: float,
count: int,
fields: list[str],
network_code: str = "XX",
station_code_pattern: str = "A{:04}",
location_code: str = "",
) -> None: ...All the operations on a read-only sequence.
Concrete subclasses must override new or init, getitem, and len.
Create a sphere of Point3D receivers using the Fibonacci algorithm.
xfloat — x-coordinate of the center.yfloat — y-coordinate of the center.zfloat — z-coordinate of the center.radiusfloat — Radius of the sphere.countint — Number or receivers to create.fieldslist[str] — Which fields to save for the receivers.network_codestr — Station code for all the receivers.station_code_patternstr — Station code pattern. Will be called with str.format() and the receiver index as the sole argument.location_codestr — Location code for all receivers.
to_list()
to_list()def to_list(self) -> list[_Base]: ...Convert to a list of receivers.