stemflow.utils.sphere.coordinate_transform
            lonlat_cartesian_3D_transformer
    Transformer between longitude,latitude and 3d dimension (x,y,z).
Source code in stemflow/utils/sphere/coordinate_transform.py
                
            inverse_transform(x, y, z, r=None)
    transform x,y,z to lon, lat
Parameters:
- 
            
x(ndarray) –x
 - 
            
y(ndarray) –y
 - 
            
z(ndarray) –z
 - 
            
r(float, default:None) –Radius of your spherical coordinate. If not given, calculate from x,y,z. Defaults to None.
 
Returns:
- 
              
Tuple[ndarray, ndarray]–Tuple[np.ndarray, np.ndarray]: longitude, latitude
 
Source code in stemflow/utils/sphere/coordinate_transform.py
              
            transform(lng, lat, radius=6371.0)
    Transform lng, lat to x,y,z
Parameters:
- 
            
lng(ndarray) –lng
 - 
            
lat(ndarray) –lat
 - 
            
radius(float, default:6371.0) –radius of earth in km. Defaults to 6371.
 
Returns:
- 
              
Tuple[ndarray, ndarray]–Tuple[np.ndarray, np.ndarray]: x,y,z
 
Source code in stemflow/utils/sphere/coordinate_transform.py
              
            continuous_interpolation_3D_plotting(p1, p2, radius=6371.0)
    interpolate 10 points on earth surface between the given two points. For plotting.
Parameters:
- 
            
p1(ndarray) –p1
 - 
            
p2(ndarray) –p2
 - 
            
radius(float, default:6371.0) –radius of earth in km. Defaults to 6371.0.
 
Returns:
- 
              
Tuple[ndarray, ndarray, ndarray]–Tuple[np.ndarray, np.ndarray, np.ndarray]: 10 x, 10 y, 10 z
 
Source code in stemflow/utils/sphere/coordinate_transform.py
              
            get_midpoint_3D(p1, p2, radius=6371.0)
    Get the mid-point of three QPoint_3D objet (vector)
Parameters:
- 
            
p1(QPoint_3D) –p1
 - 
            
p2(QPoint_3D) –p2
 - 
            
radius(float, default:6371.0) –radius of earth in km. Defaults to 6371.0.
 
Returns:
- 
QPoint_3D(QPoint_3D) –mid-point.