StarCluster#

class agabpylib.simulation.starclusters.cluster.StarCluster(n_stars, staraps, starpos, starkin, simobs, rangen)#

Bases: object

Base class for simulation of a star cluster.

The cluster stars are assumed to be single (no binaries or multiples) and drawn from a single isochrone, implying the same age and chemical composition for all cluster members. The PARSEC or MIST isochrone sets can be used to generate the simulated stars.The focus is on simulating Gaia observations of the clusters.

Methods Summary

getinfo()

returns:

info -- Information on the simulated cluster.

getmeta()

returns:

meta -- Metadata on the simulated star cluster.

write_star_table(filename, ffmt, **kwargs)

Write the star table to file in the requested format.

Methods Documentation

getinfo()#
Returns:

info – Information on the simulated cluster.

Return type:

str

getmeta()#
Returns:

meta – Metadata on the simulated star cluster.

Return type:

dict

write_star_table(filename, ffmt, **kwargs)#

Write the star table to file in the requested format.

Parameters:
  • filename (string) – Name of the file to write to.

  • ffmt (str) – File format. See astropy.Table.write.

  • **kwargs (optional) – Further keyword arguments for astropy.table.Table.write()