snapout

clustertools.util.output.snapout(cluster, filename, energies=False, radec=False)[source]
Output a snapshot in clustertools format
  • clustertools column format is mass,x,y,z,vx,vy,vz,id,kwtype where

positions and velocities are in cartiesian coordinates, id is the star id, and kwtype is the stars stellar evolution type - units and coordinate system will be cluster.units and cluster.origin. - if energies==True, columns for kinetic energy, potential energy, and total energy will be added - if radec==True, columns for RA, Dec, distance, Proper Motion in RA, Proper Motion in Dec, and radial velocity will be added

Parameters:
clusterclass

StarCluster

filenamwstr

name of file to be written to

energiesbool

include energies in output (default: False)

radecbool

include sky coordinates of stars (default: False)

Returns:
None