Example #1
0
from parse_scene import SceneParser
from pyramid import Pyramid

csv_row = [
    273.805471207, 634.350474966, 5.47014316383, 396.71899049, 769.570813668,
    5.46746117302, 716.12735601, 637.839968735, 4.17549101131, 1602.9590356,
    1386.1706033, 4.93679909159, 132.91424965, 39.6180430965, 4.06897520457,
    1017.61180338, 1280.84238753, 5.30929246675, 519.734389661, 157.465496871,
    4.86189480527, 1052.81750419, 1114.7492892, 5.17453822111, 399.624083354,
    152.848283046, 5.5284601383, 1476.00762606, 168.542917377, 4.41782320434,
    620.176397096, 1378.2212009, 5.20734816895, 1722.59757491, 733.156401685,
    5.18754977088, 1367.73392843, 746.551383153, 4.52141636174
]

scene = SceneParser.parse_csv_row(csv_row).cut_high_magnitudes(5.3)
scene.cartesian_to_spherical()

hip_data = '../data/hip_main.dat'
full_scene = SceneParser.parse_hip_data(hip_data).cut_high_magnitudes(5.3)

p = Pyramid(scene, full_scene)
p.find_match()