to_cluster¶
- clustertools.cluster.operations.to_cluster(cluster, sortstars=True, centre_method=None)[source]¶
Shift coordinates to clustercentric reference frame
When units=’radec’ and origin=’sky’, the cluster will be shifted to clustercentric coordinates using either:
–centre_method=None: angular distance between each star’s RA/DEC and the RA/DEC of the cluster’s centre with proper motions directly subtracted off –centre_method=’orthographic’ , positions and velocities changed to orthnormal coordinates (Helmi et al. 2018) – centre_method=’VandeVen’ , positions and velocities changed to clustercentric coordinates using method outlined by Van de Ven et al. 2005
Note the the line of site positions and velocities will just have the galactocentric coordinates of the cluster
subtracted off. Be sure to set projected=True when making any calculations to use only x and y coordinates
- Parameters:
- clusterclass
StarCluster
- sortstarsbool
sort star by radius after coordinate change (default: False)
- centre_methodstr
method for shifting coordinates to clustercentric coordinates. (default: None)
- Returns:
- None
- History:
- 2018 - Written - Webb (UofT)