pyrocko.gato.grid.slowness¶
Classes
|
Regular cartesian slowness grid with optional rotation. |
|
Undocumented. |
|
Regular (3D) slowness grid in spherical coordinates with optional rotation. |
- class CartesianSlownessGrid(**kwargs)[source]¶
Bases:
SlownessGrid
Regular cartesian slowness grid with optional rotation.
Unrotated coordinate system is NED (north-east-down).
3D-indexing is ordered from sz (slow dimension) to sx (fast dimension)
f[iz, iy, ix]
. 1D-indexing usesnumpy.unravel_index()
on(nz, ny, nx)
.If any attribute is changed after initialization,
update()
must be called.- ♦ azimuth¶
float
, default:0.0
Angle of x against north [deg].
- ♦ dip¶
float
, default:0.0
Angle of y against horizontal [deg], rotation around x
- ♦ sx_min¶
float
, default:0.0
Sx axis minimum [s/m].
- ♦ sx_max¶
float
, default:0.0
Sx axis maximum [s/m].
- ♦ sy_min¶
float
, default:0.0
Sy axis minimum [s/m].
- ♦ sy_max¶
float
, default:0.0
Sy axis maximum [s/m].
- ♦ sz_min¶
float
, default:0.0
Sz axis minimum [s/m].
- ♦ sz_max¶
float
, default:0.0
Sz axis maximum [s/m].
- ♦ sx_delta¶
float
, default:1.0
Sx axis spacing [s/m].
- ♦ sy_delta¶
float
, default:1.0
Sy axis spacing [s/m].
- ♦ sz_delta¶
float
, default:1.0
Sz axis spacing [s/m].
- ♦ snap¶
str
(pyrocko.gato.grid.base.GridSnap
), default:'both'
Flag to indicate how grid inconsistencies are handled.
- property shape¶
Logical shape of the grid.
- property size¶
Number of grid nodes.
- property effective_dimension¶
Number of non-flat dimensions.
- get_nodes(system)[source]¶
Get node coordinates.
- Parameters:
system (str) – Coordinate system:
'xyz'
, unrotated coordinate system,'ned'
: rotated coordinate system in(north, east, down)
.- Returns:
Point coordinates in requested coordinate system.
- Return type:
numpy.ndarray
of shape(size, 3)
, where size is the number of nodes
- class SphericalSlownessGrid(**kwargs)[source]¶
Bases:
SlownessGrid
Regular (3D) slowness grid in spherical coordinates with optional rotation.
Unrotated coordinate system is NED (north-east-down).
3D-indexing is ordered from sr (slow dimension) via stheta to sphi (fast dimension)
f[ir, itheta, iphi]
. 1D-indexing usesnumpy.unravel_index()
on(nr, ntheta, nphi)
.If any attribute is changed after initialization,
update()
must be called.- ♦ azimuth¶
float
, default:0.0
Angle of 0. azimuth direction against north [deg].
- ♦ sr_min¶
float
, default:0.0
Sr axis minimum [s/m].
- ♦ sr_max¶
float
, default:0.0
Sr axis maximum [s/m].
- ♦ stheta_min¶
float
, default:0.0
Lower angle limit of incidence angle [deg].
- ♦ stheta_max¶
float
, default:0.0
Upper angle limit of incidence angle [deg].
- ♦ sphi_min¶
float
, default:-180.0
Lower angle limit of azimuth angle [deg].
- ♦ sphi_max¶
float
, default:180.0
Upper angle limit of azimuth angle [deg].
- ♦ sr_delta¶
float
, default:1.0
Sr axis spacing [s/m].
- ♦ stheta_delta¶
float
, default:1.0
Angle spacing in incidence [deg].
- ♦ sphi_delta¶
float
, default:1.0
Angle spacing in azimuth [deg].
- ♦ snap¶
str
(pyrocko.gato.grid.base.GridSnap
), default:'both'
Flag to indicate how grid inconsistencies are handled.
- property shape¶
Logical shape of the grid.
- property size¶
Number of grid nodes.
- property effective_dimension¶
Number of non-flat dimensions.
- get_nodes(system)[source]¶
Get node coordinates.
- Parameters:
system (str) – Coordinate system:
'xy'
, unrotated coordinate system,'ne'
: rotated coordinate system in(north, east)
,'rtp'
, spherical coordinates in(radius, theta, phi)
.- Returns:
Point coordinates in requested coordinate system.
- Return type:
numpy.ndarray
of shape(size, 2)
, where size is the number of nodes