Exemplo n.º 1
0
    def __init__(self,vxvv=None,vo=220.,ro=8.0,zo=0.025,
                 solarmotion=nu.array([-10.1,4.0,6.7])): #pragma: no cover (never used)
        """
        NAME:

           __init__

        PURPOSE:

           Initialize a planar orbit

        INPUT:

           vxvv - [R,vR,vT(,phi)]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

           zo - offset toward the NGP of the Sun wrt the plane (kpc)

           solarmotion - value in [-U,V,W] (km/s)

        OUTPUT:

        HISTORY:

           2010-07-12 - Written - Bovy (NYU)

           2014-06-11 - Added conversion kwargs to physical coordinates - Bovy (IAS)

        """
        OrbitTop.__init__(self,vxvv=vxvv,
                          ro=ro,zo=zo,vo=vo,solarmotion=solarmotion)
        return None
Exemplo n.º 2
0
    def __init__(self,vxvv=[1.,0.],vo=220.,ro=8.0):
        """
        NAME:

           __init__

        PURPOSE:

           Initialize a linear orbit

        INPUT:

           vxvv - [x,vx]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

        OUTPUT:

           (none)

        HISTORY:

           2010-07-13 - Written - Bovy (NYU)

        """
        OrbitTop.__init__(self,vxvv=vxvv,
                          ro=ro,zo=None,vo=vo,solarmotion=None)
        return None
Exemplo n.º 3
0
    def __init__(self,vxvv=[1.,0.],vo=220.,ro=8.0):
        """
        NAME:

           __init__

        PURPOSE:

           Initialize a linear orbit

        INPUT:

           vxvv - [x,vx]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

        OUTPUT:

           (none)

        HISTORY:

           2010-07-13 - Written - Bovy (NYU)

        """
        OrbitTop.__init__(self,vxvv=vxvv,
                          ro=ro,zo=None,vo=vo,solarmotion=None)
        return None
Exemplo n.º 4
0
    def __init__(self,
                 vxvv=[1., 0., 1., 0.],
                 vo=220.,
                 ro=8.0,
                 zo=0.025,
                 solarmotion=nu.array([-10.1, 4.0, 6.7])):
        """
        NAME:

           __init__

        PURPOSE:

           Initialize a planarOrbit

        INPUT:

           vxvv - [R,vR,vT,phi]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

           zo - offset toward the NGP of the Sun wrt the plane (kpc)

           solarmotion - value in [-U,V,W] (km/s)

        OUTPUT:

        HISTORY:

           2010-07-12 - Written - Bovy (NYU)

           2014-06-11 - Added conversion kwargs to physical coordinates - Bovy (IAS)

        """
        if len(vxvv) == 3:  #pragma: no cover
            raise ValueError(
                "You only provided R,vR, & vT, but not phi; you probably want planarROrbit"
            )
        OrbitTop.__init__(self,
                          vxvv=vxvv,
                          ro=ro,
                          zo=zo,
                          vo=vo,
                          solarmotion=solarmotion)
        return None
Exemplo n.º 5
0
    def __init__(self,
                 vxvv=[1., 0., 0.9, 0., 0.1],
                 vo=220.,
                 ro=8.0,
                 zo=0.025,
                 solarmotion=nu.array([-10.1, 4.0, 6.7])):
        """
        NAME:

           __init__

        PURPOSE:

           intialize an RZ-orbit

        INPUT:

           vxvv - initial condition [R,vR,vT,z,vz]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

           zo - offset toward the NGP of the Sun wrt the plane (kpc)

           solarmotion - value in [-U,V,W] (km/s)

        OUTPUT:

           (none)

        HISTORY:

           2010-07-10 - Written - Bovy (NYU)

           2014-06-11 - Added conversion kwargs to physical coordinates - Bovy (IAS)

        """
        OrbitTop.__init__(self,
                          vxvv=vxvv,
                          ro=ro,
                          zo=zo,
                          vo=vo,
                          solarmotion=solarmotion)
        return None
Exemplo n.º 6
0
    def __init__(self,vxvv=[1.,0.,1.,0.],vo=220.,ro=8.0,zo=0.025,
                 solarmotion=nu.array([-10.1,4.0,6.7])):
        """
        NAME:

           __init__

        PURPOSE:

           Initialize a planarOrbit

        INPUT:

           vxvv - [R,vR,vT,phi]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

           zo - offset toward the NGP of the Sun wrt the plane (kpc)

           solarmotion - value in [-U,V,W] (km/s)

        OUTPUT:

        HISTORY:

           2010-07-12 - Written - Bovy (NYU)

           2014-06-11 - Added conversion kwargs to physical coordinates - Bovy (IAS)

        """
        if len(vxvv) == 3: #pragma: no cover
            raise ValueError("You only provided R,vR, & vT, but not phi; you probably want planarROrbit")
        OrbitTop.__init__(self,vxvv=vxvv,
                          ro=ro,zo=zo,vo=vo,solarmotion=solarmotion)
        return None
Exemplo n.º 7
0
    def __init__(self,vxvv=[1.,0.,0.9,0.,0.1],vo=220.,ro=8.0,zo=0.025,
                 solarmotion=nu.array([-10.1,4.0,6.7])):
        """
        NAME:

           __init__

        PURPOSE:

           intialize a full orbit

        INPUT:

           vxvv - initial condition [R,vR,vT,z,vz,phi]

           vo - circular velocity at ro (km/s)

           ro - distance from vantage point to GC (kpc)

           zo - offset toward the NGP of the Sun wrt the plane (kpc)

           solarmotion - value in [-U,V,W] (km/s)

        OUTPUT:

           (none)

        HISTORY:

           2010-08-01 - Written - Bovy (NYU)

           2014-06-11 - Added conversion kwargs to physical coordinates - Bovy (IAS)

        """
        OrbitTop.__init__(self,vxvv=vxvv,
                          ro=ro,zo=zo,vo=vo,solarmotion=solarmotion)
        return None