pykonal.transformations¶
A module to facilitate coordinate-system transformations.
- 
pykonal.transformations.geo2sph(nodes)¶ Transform geographical coordinates to new spherical coordinates system.
- 
pykonal.transformations.sph2sph(nodes, origin=0, 0, 0)¶ Transform spherical coordinates to new spherical coordinate system.
- Parameters
 nodes (numpy.ndarray(shape=(..,3), dtype=numpy.float)) – Coordinates (spherical) to transform.
origin (tuple(float, float, float)) – Coordinates (spherical) of the origin of the new coordinate system with respect to the old coordinate system.
- Returns
 Coordinates in new (spherical) coordinate system.
- Return type
 numpy.ndarray(shape=(..,3), dtype=numpy.float)
- 
pykonal.transformations.xyz2sph(nodes, origin=0, 0, 0)¶ Transform Cartesian coordinates to new spherical coordinate system.
- Parameters
 nodes (numpy.ndarray(shape=(..,3), dtype=numpy.float)) – Coordinates (Cartesian) to transform.
origin (tuple(float, float, float)) – Coordinates (Cartesian) of the origin of the new coordinate system with respect to the old coordinate system.
- Returns
 Coordinates in new (spherical) coordinate system.
- Return type
 numpy.ndarray(shape=(..,3), dtype=numpy.float)
- 
pykonal.transformations.sph2geo(nodes, origin=0, 0, 0)¶ Transform spherical coordinates to new geographical coordinate system.
- 
pykonal.transformations.sph2xyz(nodes, origin=0, 0, 0)¶ Transform spherical coordinates to new Cartesian coordinate system.
- Parameters
 nodes (numpy.ndarray(shape=(..,3), dtype=numpy.float)) – Coordinates (spherical) to transform.
origin (tuple(float, float, float)) – Coordinates (spherical) of the origin of the new coordinate system with respect to the old coordinate system.
- Returns
 Coordinates in new (Cartesian) coordinate system.
- Return type
 numpy.ndarray(shape=(..,3), dtype=numpy.float)
- 
pykonal.transformations.xyz2xyz(nodes, origin=0, 0, 0)¶ Transform Cartesian coordinates to new Cartesian coordinate system.
- Parameters
 nodes (numpy.ndarray(shape=(..,3), dtype=numpy.float)) – Coordinates (Cartesian) to transform.
origin (tuple(float, float, float)) – Coordinates (Cartesian) of the origin of the new coordinate system with respect to the old coordinate system.
- Returns
 Coordinates in new (Cartesian) coordinate system.
- Return type
 numpy.ndarray(shape=(..,3), dtype=numpy.float)