to_origin

clustertools.cluster.operations.to_origin(cluster, origin, sortstars=True, centre_method=None)[source]

Shift cluster to origin as defined by keyword

Parameters:
clusterclass

StarCluster

originstr

origin of coordinate system to be shifted to (centre, cluster, galaxy, sky)

sortstarsbool

sort star by radius after coordinate change (default: False)

centre_methodstr

method for shifting coordinates to clustercentric coordinates (see to_cluster). (default: None)

Returns:
None
History:
2018 - Written - Webb (UofT)