asteca.cluster#

Module Contents#

Classes#

cluster

Define a cluster object.

class asteca.cluster.cluster#

Define a cluster object.

Parameters:
  • cluster_df (pd.DataFrame) – pandas DataFrame with the cluster’s loaded data

  • magnitude (str) – Name of the DataFrame column that contains the magnitude

  • e_mag (str) – Name of the DataFrame column that contains the magnitude’s uncertainty

  • color (str) – Name of the DataFrame column that contains the color

  • e_color (str) – Name of the DataFrame column that contains the color’s uncertainty

  • ra (str, optional, default=None) – Name of the DataFrame column that contains the right ascension (RA)

  • dec (str, optional, default=None) – Name of the DataFrame column that contains the declination (DEC)

  • plx (str, optional, default=None) – Name of the DataFrame column that contains the parallax

  • pmra (str, optional, default=None) – Name of the DataFrame column that contains the RA proper motion

  • pmde (str, optional, default=None) – Name of the DataFrame column that contains the DEC proper motion

  • color2 (str, optional, default=None) – Name of the DataFrame column that contains the second color

  • e_color2 (str, optional, default=None) – Name of the DataFrame column that contains the second color’s uncertainty

radecplot()#

Generate a (RA, DEC) plot.

Returns:

Matplotlib axis object

Return type:

matplotlib.axis

clustplot(ax=None, binar_prob=None)#

Generate a color-magnitude plot.

Parameters:
  • ax (matplotlib.axis, optional, default=None) – Matplotlib axis where to draw the plot

  • binar_prob (numpy.array, optional, default=None) – Array with probabilities of being a binary system for each observed star

Returns:

Matplotlib axis object

Return type:

matplotlib.axis