parameters: (
      shot: pymap.Shot, reference: types.TopocentricConverter
  )
return_statement: return lat, lon, alt, angle
docstring: Lat, lon, alt and compass of the reconstructed shot position.
docstring_summary: Lat, lon, alt and compass of the reconstructed shot position.
docstring_tokens: Lat lon alt and compass of the reconstructed shot position .
function: 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
function_tokens: 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