ara-software / AraProc

ARA data analysis framework
GNU General Public License v3.0
3 stars 1 forks source link

Max correlation and coordinates #9

Closed AlanSalcedo closed 2 weeks ago

AlanSalcedo commented 2 weeks ago

Added a function to calculate the max correlation and coordinates of a given sky map. I already tested it with:

# find the max correlation, and the corresponding theta and phi (also for the vpol map at the distance of the pulser)
max_corr, max_theta, max_phi = correlation.get_max_corr_and_coords(reco_results["pulser_v"]["map"])
print(f"Max correlation: {max_corr}, Theta: {max_theta}, Phi: {max_phi}")

Do we want to add the test in run_example.py?

AlanSalcedo commented 2 weeks ago

@marcomuzio I'll close this one and mark the task as done, since we already had it in the reco_results dictionary