jplephem/ephem.py
def velocity_from_bundle(self, bundle):
        """[DEPRECATED] Return velocity, given the `coefficient_bundle()` return value."""

        coefficients, days_per_set, T, twot1 = bundle
        coefficient_count = coefficients.shape[2]

        # Chebyshev derivative:

        dT = np.empty_like(T)
        dT[0] = 0.0
        dT[1] = 1.0
        dT[2] = twot1 + twot1
        for i in range(3, coefficient_count):
            dT[i] = twot1 * dT[i-1] - dT[i-2] + T[i-1] + T[i-1]
        dT *= 2.0
        dT /= days_per_set

        return (dT.T * coefficients).sum(axis=2)
def velocity_from_bundle(self, bundle):
        """[DEPRECATED] Return velocity, given the `coefficient_bundle()` return value."""

        coefficients, days_per_set, T, twot1 = bundle
        coefficient_count = coefficients.shape[2]

        # Chebyshev derivative:

        dT = np.empty_like(T)
        dT[0] = 0.0
        dT[1] = 1.0
        dT[2] = twot1 + twot1
        for i in range(3, coefficient_count):
            dT[i] = twot1 * dT[i-1] - dT[i-2] + T[i-1] + T[i-1]
        dT *= 2.0
        dT /= days_per_set

        return (dT.T * coefficients).sum(axis=2)
def velocity_from_bundle ( self , bundle ) : coefficients , days_per_set , T , twot1 = bundle coefficient_count = coefficients . shape [ 2 ] # Chebyshev derivative: dT = np . empty_like ( T ) dT [ 0 ] = 0.0 dT [ 1 ] = 1.0 dT [ 2 ] = twot1 + twot1 for i in range ( 3 , coefficient_count ) : dT [ i ] = twot1 * dT [ i - 1 ] - dT [ i - 2 ] + T [ i - 1 ] + T [ i - 1 ] dT *= 2.0 dT /= days_per_set return ( dT . T * coefficients ) . sum ( axis = 2 )
[DEPRECATED] Return velocity, given the `coefficient_bundle()` return value.
[ DEPRECATED ] Return velocity given the coefficient_bundle () return value .