blend_stars¶
- giant.catalogs.gaia.blend_stars(star_groups, gaia_instance, limiting_mag, reference_mag=4.0)[source]¶
Blends groups of stars together into a single “apparent” star as viewed by a camera.
Star magnitude, right ascension, declination, and proper motion are all blended in the final product. The blending is based off of an internal memo by Sean Semper.
The star_groups input should provide 2 columns, the first column “a” should provide the primary (brightest) star in each group. The second column “b” should provide a set of all of the stars that are to be blended to each other and “a”. This is what is returned by
find_star_pairs()
. This function uses the database to retrieve the individual star records for memory purposes.The blended star is given an ID that is the negative of the brightest star in the group. The blended stars are returned as a pandas DataFrame.
Typically this is not used directly by the user. Instead see
build_catalog()
or scriptscripts.build_catalog
.- Parameters:
star_groups (Series) – The pandas Series specifying the groups of stars to blend
gaia_instance (Gaia) – An initialized
Gaia
object to use to query the stars in a group by IDlimiting_mag (float) – The limiting magnitude that blended stars must achieve for them to be included
reference_mag (float) – The reference magnitude to use when blending the stars
- Returns:
The DataFrame of the blended apparent stars
- Return type:
DataFrame