def hour2deg(h, m, s, deg, arcmin, arcsec):
    """
    Hour angle to degree conversion
    """
    ra = (h + m / 60.0 + s / 3600.0) * 360.0 / 24.0
    if deg < 0:
        dec = -(-deg + arcmin / 60.0 + arcsec / 3600.0)
    else:
        dec = deg + arcmin / 60.0 + arcsec / 3600.0
    return ra, dec
