Version:

salvus.flow.simple_config.source.transformations

salvus.flow.simple_config.source.transformations salvus flow simple_config source transformations
Utils for source coordinate transformations.

Functions

geocentric_to_utm()

Convert geocentric latitude and longitude coordinates to UTM coordinates.
SIGNATURE
def geocentric_to_utm(
    latitude: float, longitude: float, utm_crs: pyproj.crs.crs.CRS
) -> tuple[float, float]: ...
ARGUMENTS
Required
latitude
Type:float
Description:
The geocentric latitude in degrees.
Required
longitude
Type:float
Description:
The geocentric longitude in degrees.
Required
utm_crs
Type:pyproj.crs.crs.CRS
Description:
The UTM coordinate system to convert to.
RETURNS
Return type: tuple[float, float]

spherical_source_to_utm()

Convert a spherical Salvus moment tensor source to a source in a UTM domain (ENU coordinate system).
SIGNATURE
def spherical_source_to_utm(
    source: seismology.SideSetMomentTensorPoint3D,
    utm_crs: pyproj.crs.crs.CRS,
    side_set_name: str = "z1",
) -> cartesian.SideSetMomentTensorPoint3D: ...
ARGUMENTS
Required
source
Type:seismology.SideSetMomentTensorPoint3D
Description:
The spherical moment tensor source.
Required
utm_crs
Type:pyproj.crs.crs.CRS
Description:
The UTM coordinate system to convert to.
Optional
side_set_name
Type:str
Default value:'z1'
Description:
The name of the side set that the source is attached to.
RETURNS
Return type: cartesian.SideSetMomentTensorPoint3D
The converted source.

utm_source_to_spherical()

Convert a UTM Salvus moment tensor source to a source in a spherical domain (ENU coordinate system).
SIGNATURE
def utm_source_to_spherical(
    source: seismology.SideSetMomentTensorPoint3D, utm_crs: pyproj.crs.crs.CRS
) -> cartesian.SideSetMomentTensorPoint3D: ...
ARGUMENTS
Required
source
Type:seismology.SideSetMomentTensorPoint3D
Description:
The UTM moment tensor source.
Required
utm_crs
Type:pyproj.crs.crs.CRS
Description:
The spherical coordinate system to convert to.
RETURNS
Return type: cartesian.SideSetMomentTensorPoint3D
The converted source.

utm_to_geocentric()

Convert UTM coordinates to geocentric latitude and longitude coordinates.
SIGNATURE
def utm_to_geocentric(
    easting: float, northing: float, utm_crs: pyproj.crs.crs.CRS
) -> tuple[float, float]: ...
ARGUMENTS
Required
easting
Type:float
Description:
The easting in meters.
Required
northing
Type:float
Description:
The northing in meters.
Required
utm_crs
Type:pyproj.crs.crs.CRS
Description:
The UTM coordinate system to convert from.
RETURNS
Return type: tuple[float, float]
PAGE CONTENTS