示例#1
0
def component(df, bill_components):

    #df = component_type(df, bill_components)
    df = connection_type(df, bill_components)
    df = end_forms(df, bill_components)

    df = sleeve.sleeve(df, bill_components, comp_sleeve)
    df = adaptor.adaptor(df, bill_components, comp_adaptor)
    df = boss.boss(df, bill_components, comp_boss)
    df = elbow.elbow(df, bill_components, comp_elbow)
    df = float_.float_(df, bill_components, comp_float)
    df = hfl.hfl(df, bill_components, comp_hfl)
    df = nut.nut(df, bill_components, comp_nut)
    #df = other.other(df, bill_components, comp_other)
    df = straight.straight(df, bill_components, comp_straight)
    df = tee.tee(df, bill_components, comp_tee)
    df = threaded.threaded(df, bill_components, comp_threaded)

    return df
示例#2
0
def prenut(epoch, mjd):
    """
    Form the matrix of precession and nutation (IAU1976/fk5)
    
    Inputs:
    - epoch     Julian Epoch for mean coordinates
    - mjd       Modified Julian Date (jd-2400000.5) for true coordinates
    
    Returns:
    - pnMat     the combined precession/nutation matrix, a 3x3 numpy.array.
    
    Notes:
    - The epoch and MJD are TDB (loosely ET).
    - The matrix is in the sense V(true) = pnMat * V(mean)
    """
    precMat = prec(epoch, epj(mjd))

    # Nutation
    nutMat = nut(mjd)

    # Combine the matrices:  pn = N x P
    return numpy.dot(nutMat, precMat)
示例#3
0
文件: prenut.py 项目: r-owen/RO
def prenut(epoch, mjd):
    """
    Form the matrix of precession and nutation (IAU1976/fk5)
    
    Inputs:
    - epoch     Julian Epoch for mean coordinates
    - mjd       Modified Julian Date (jd-2400000.5) for true coordinates
    
    Returns:
    - pnMat     the combined precession/nutation matrix, a 3x3 numpy.array.
    
    Notes:
    - The epoch and MJD are TDB (loosely ET).
    - The matrix is in the sense V(true) = pnMat * V(mean)
    """
    precMat = prec(epoch, epj(mjd))

    # Nutation
    nutMat = nut(mjd)

    # Combine the matrices:  pn = N x P
    return numpy.dot(nutMat, precMat)