(
    shot: pymap.Shot, reference: types.TopocentricConverter
)
return lat, lon, alt, angle
Lat, lon, alt and compass of the reconstructed shot position.
Lat, lon, alt and compass of the reconstructed shot position.
Lat lon alt and compass of the reconstructed shot position .
def shot_lla_and_compass(
    shot: pymap.Shot, reference: types.TopocentricConverter
) -> Tuple[float, float, float, float]:
    """Lat, lon, alt and compass of the reconstructed shot position."""
    topo = shot.pose.get_origin()
    lat, lon, alt = reference.to_lla(*topo)

    dz = shot.pose.get_R_cam_to_world()[:, 2]
    angle = np.rad2deg(np.arctan2(dz[0], dz[1]))
    angle = (angle + 360) % 360
    return lat, lon, alt, angle
def shot_lla_and_compass ( shot : pymap . Shot , reference : types . TopocentricConverter ) -> Tuple [ float , float , float , float ] : topo = shot . pose . get_origin ( ) lat , lon , alt = reference . to_lla ( * topo ) dz = shot . pose . get_R_cam_to_world ( ) [ : , 2 ] angle = np . rad2deg ( np . arctan2 ( dz [ 0 ] , dz [ 1 ] ) ) angle = ( angle + 360 ) % 360 return lat , lon , alt , angle