nu_coincidence.coincidence module
- class nu_coincidence.coincidence.CoincidenceCheck
Bases:
object
Abstract base class for coincidence checks.
- check_spatial()
- check_temporal()
- nu_coincidence.coincidence.check_spatial_coincidence(event_ras, event_decs, event_ang_errs, event_src_labels, population_ras, population_decs)
Check the spatial coincidence of events assuming circular error regions with the sources in population, which are assumed to be points.
All angles should be in radians.
- nu_coincidence.coincidence.check_temporal_coincidence(event_times, event_src_labels, event_ras, event_decs, event_ang_errs, spatial_match_inds, population_variability, population_flare_times, population_flare_durations, population_flare_amplitudes)
Check the temporal coincidence of events, both in the sense of variable objects and actual flares. Also requires a spatial match
- nu_coincidence.coincidence.count_spatial_coincidence(event_ras, event_decs, event_ang_errs, population_ras, population_decs)
Count the spatial coincidence of events assuming circular error regions with the sources in population, which are assumed to be points.
All angles should be in radians.
- nu_coincidence.coincidence.get_central_angle(ref_ra, ref_dec, ras, decs)
Get the central angles between ref_ra and ref_dec and a bunch of ras and decs. Angles should be in radians.
Useful for computing the separation of points on the unit sphere.