Source

class artpop.source.Source(xy, mags, xy_dim, pixel_scale=None, labels=None)[source]

Bases: object

Artificial stellar system to be mock imaged.

Parameters
xyndarray or MaskedArray

Positions of the stars in (x, y) coordinates.

magsdict of ndarray or Table

Stellar magnitudes.

xy_dimint or list-like

Dimensions of the mock image in xy coordinates. If int is given, will make the x and y dimensions the same.

pixel_scalefloat or Quantity, optional

The pixel scale of the mock image. If a float is given, the units will be assumed to be arcsec / pixels.

labelslist-like, optional

Labels for the stars. For example, EEP values (int or float) or name of evolutionary phase (str).

Attributes Summary

num_stars

Number of stars in source

x

x coordinates

y

y coordinates

Methods Summary

copy()

Create deep copy of source object.

select_stars(label)

Return boolean mask that is set to True for stars of given label.

Attributes Documentation

num_stars

Number of stars in source

x

x coordinates

y

y coordinates

Methods Documentation

copy()[source]

Create deep copy of source object.

select_stars(label)[source]

Return boolean mask that is set to True for stars of given label.