LinkedEPSFStar#
- class photutils.psf.LinkedEPSFStar(stars_list)[source]#
Bases:
objectA class to hold a list of
EPSFStarobjects for linked stars.Linked stars are
EPSFStarcutouts from different images that represent the same physical star. When building the ePSF, linked stars are constrained to have the same sky coordinates.Note that unlike
EPSFStars(which is a collection of potentially unrelated stars),LinkedEPSFStarrepresents a single logical star observed in multiple images.- Parameters:
Attributes Summary
Whether all
EPSFStarobjects in this linked star have been excluded from fitting during the ePSF build process.A list of all
EPSFStarobjects that have not been excluded from fitting.A flat list of all
EPSFStarobjects in this linked star.A
ndarrayof the(x, y)position of all the stars' centers with respect to the original (large) image (not the cutout image) as a 2D array (n_all_starsx 2).A
ndarrayof the(x, y)position of all the stars' centers with respect to the input cutoutdataarray, as a 2D array (n_all_starsx 2).The total number of
EPSFStarobjects in this linked star.The number of
EPSFStarobjects that have not been excluded from fitting.The number of
EPSFStarobjects in this linked star.Methods Summary
Constrain the centers of linked
EPSFStarobjects (i.e., the same physical star) to have the same sky coordinate.Attributes Documentation
- all_excluded#
Whether all
EPSFStarobjects in this linked star have been excluded from fitting during the ePSF build process.
- all_stars#
A flat list of all
EPSFStarobjects in this linked star.Since LinkedEPSFStar only contains EPSFStar objects (not nested LinkedEPSFStar), this is simply the internal list.
- center_flat#
A
ndarrayof the(x, y)position of all the stars’ centers with respect to the original (large) image (not the cutout image) as a 2D array (n_all_starsx 2).
- cutout_center_flat#
A
ndarrayof the(x, y)position of all the stars’ centers with respect to the input cutoutdataarray, as a 2D array (n_all_starsx 2).
- n_all_stars#
The total number of
EPSFStarobjects in this linked star.For LinkedEPSFStar this is the same as n_stars since there is no nesting.
- n_stars#
The number of
EPSFStarobjects in this linked star.For LinkedEPSFStar this is the same as n_all_stars since there is no nesting.
Methods Documentation
- constrain_centers()[source]#
Constrain the centers of linked
EPSFStarobjects (i.e., the same physical star) to have the same sky coordinate.Only
EPSFStarobjects that have not been excluded during the ePSF build process will be used to constrain the centers.The single sky coordinate is calculated as the mean of sky coordinates of the linked stars.