galpy.df.streamdf.length¶
- streamdf.length(threshold=0.2, phys=False, ang=False, tdisrupt=None, **kwargs)[source]¶
Calculate the length of the stream.
- Parameters:
threshold (float, optional) – Threshold down from the density near the progenitor at which to define the ‘end’ of the stream. Default is 0.2.
phys (bool, optional) – If True, return the length in physical kpc. Default is False.
ang (bool, optional) – If True, return the length in sky angular arc length in degree. Default is False.
tdisrupt (float, optional) – Time since disruption in natural units. Default is None.
- Returns:
Length (rad for parallel angle; kpc for physical length; deg for sky arc length).
- Return type:
float
Notes
2015-12-22 - Written - Bovy (UofT)