EPSFStars

class photutils.psf.EPSFStars(stars_list)[source]

Bases: object

Class to hold a list of EPSFStar and/or LinkedEPSFStar objects.

Parameters:
stars_listlist of EPSFStar or LinkedEPSFStar objects

A list of EPSFStar and/or LinkedEPSFStar objects.

Attributes Summary

all_good_stars

A list of all EPSFStar objects stored in this object that have not been excluded from fitting, including those that comprise linked stars (i.e., LinkedEPSFStar), as a flat list.

all_stars

A list of all EPSFStar objects stored in this object, including those that comprise linked stars (i.e., LinkedEPSFStar), as a flat list.

center_flat

A ndarray of the (x, y) position of all the stars' centers (including linked stars) with respect to the original (large) image (not the cutout image) as a 2D array (n_all_stars x 2).

cutout_center_flat

A ndarray of the (x, y) position of all the stars' centers (including linked stars) with respect to the input cutout data array, as a 2D array (n_all_stars x 2).

n_all_stars

The total number of EPSFStar objects, including all the linked stars within LinkedEPSFStar.

n_good_stars

The total number of EPSFStar objects, including all the linked stars within LinkedEPSFStar, that have not been excluded from fitting.

n_stars

The total number of stars.

Attributes Documentation

all_good_stars

A list of all EPSFStar objects stored in this object that have not been excluded from fitting, including those that comprise linked stars (i.e., LinkedEPSFStar), as a flat list.

all_stars

A list of all EPSFStar objects stored in this object, including those that comprise linked stars (i.e., LinkedEPSFStar), as a flat list.

center_flat

A ndarray of the (x, y) position of all the stars’ centers (including linked stars) with respect to the original (large) image (not the cutout image) as a 2D array (n_all_stars x 2).

Note that when EPSFStars contains any LinkedEPSFStar, the center attribute will be a nested 3D array.

cutout_center_flat

A ndarray of the (x, y) position of all the stars’ centers (including linked stars) with respect to the input cutout data array, as a 2D array (n_all_stars x 2).

Note that when EPSFStars contains any LinkedEPSFStar, the cutout_center attribute will be a nested 3D array.

n_all_stars

The total number of EPSFStar objects, including all the linked stars within LinkedEPSFStar. Each linked star is included in the count.

n_good_stars

The total number of EPSFStar objects, including all the linked stars within LinkedEPSFStar, that have not been excluded from fitting. Each non-excluded linked star is included in the count.

n_stars

The total number of stars.

A linked star is counted only once.