orbital_path_match

clustertools.analysis.orbits.orbital_path_match(cluster, tfinal=0.1, nt=1000, pot=None, path=None, from_centre=False, skypath=False, to_path=False, do_full=False, ro=None, vo=None, zo=None, solarmotion=None, plot=False, projected=False, **kwargs)[source]

Match stars to a position along the orbital path of the cluster

Parameters:
clusterclass

StarCluster

tfinalfloat

final time (in cluster.units) to integrate orbit to (default: 0.1 Gyr)

ntint

number of timesteps

potclass

galpy Potential that orbit is to be integrate in (default: None)

patharray

array of (t,x,y,x,vx,vy,vz) corresponding to the tail path. If none path is calculated (default: None)

from_centrebool

genrate orbit from cluster’s exact centre instead of its assigned galactocentric coordinates (default: False)

skypathbool

return sky coordinates instead of cartesian coordinates (default: False) if True, projected is set to True

to_pathbool

measure distance to the path itself instead of distance to central point along the path (default: False)

do_fullbool

calculate dpath all at once in a single numpy array (can be memory intensive) (default:False)

rofloat

distance to the Galactic centre (Default: None)

vofloat

circular velocity at ro (Default: None)

zofloat

Sun’s distance above the Galactic plane (default: None)

solarmotionfloat

array representing U,V,W of Sun (default: None)

plotbool

plot a snapshot of the cluster in galactocentric coordinates with the orbital path (defualt: False)

projectedbool

match to projected orbital path, which means matching just x and y coordinates or Ra and Dec coordinates (not z, or dist) (default:False)

Returns:
tstarfloat

orbital time associated with star

dprogfloat

distance along the orbit to the progenitor

dpath

distance to centre of the orbital path bin (Default) or the orbit path (to_path = True)