def absolute_to_sky(thetaB, chiB):
    thetaB = np.deg2rad(thetaB)
    chiB = np.deg2rad(chiB)
    t1 = (np.sin(thetaB) * np.sin(chiB))
    t2 = (- np.cos(thetaB))
    t3 = (np.sin(thetaB) * np.cos(chiB))
    thetaSky = np.arccos(t3)
    sinthSky = np.sqrt((1.0 - (t3 ** 2)))
    sinChiSky = (t1 / sinthSky)
    cosChiSky = (t2 / sinthSky)
    chiSky_preliminary = np.arccos(cosChiSky)
    if (np.sign(sinChiSky) > 0.0):
        chiSky = chiSky_preliminary
    else:
        chiSky = (- chiSky_preliminary)
    return [np.rad2deg(thetaSky), np.rad2deg(chiSky)]
def absolute_to_sky(thetaB, chiB):
    thetaB = np.deg2rad(thetaB)
    chiB = np.deg2rad(chiB)
    t1 = (np.sin(thetaB) * np.sin(chiB))
    t2 = (- np.cos(thetaB))
    t3 = (np.sin(thetaB) * np.cos(chiB))
    thetaSky = np.arccos(t3)
    sinthSky = np.sqrt((1.0 - (t3 ** 2)))
    sinChiSky = (t1 / sinthSky)
    cosChiSky = (t2 / sinthSky)
    chiSky_preliminary = np.arccos(cosChiSky)
    if (np.sign(sinChiSky) > 0.0):
        chiSky = chiSky_preliminary
    else:
        chiSky = (- chiSky_preliminary)
    return [np.rad2deg(thetaSky), np.rad2deg(chiSky)]