Globygon¶
- class globygon.catalog.Catalog(RA, Dec)¶
A class to contain points in right ascension and declination (RA/Dec) and providing the functionality to calculate the center-of-mass of those points in RA/Dec
- Parameters
RA – the right ascension in radians as an array or float
Dec – the declination in radians as an array or float
Written by Dida Markovic and Brian Jackson (bjackson@boisestate.edu) in 2021 as part of the Code/Astro Workshop
- calculate_center_of_mass()¶
With a Catalog class instantiated and a list of RA/Dec values initialized, this method returns the RA/Dec of the center-of-mass for the RA/Dec points
- Parameters
None –
- Returns
RA/Dec of center-of-mass in radians
- Return type
list
- calculate_dist_from_com(point=None)¶
With a Catalog class instantiated, a list of RA/Dec values initialized and a calculated centre of mass, this method returns the distance of the center-of-mass to the RA/Dec points
- Parameters
point (tuple) – arbitrary point (if different from the com) to calculate distance from RA/Dec in radians expected
- Returns
distances of the RA/Dec points to the center-of-mass in radians
- Return type
list