def ra_dec_format(val):
    """ Ra/Dec string formatting

    Converts the input string format of a right ascension/ declination coordinate
    to one recognizable by astroquery

    Args:
      val (str): string; an ra/dec expression formatted as "005313.81 +130955.0".

    Returns:
      string: the ra/dec coordinates re-formatted as "00h53m13.81s +13d09m55.0s"
    """
    #ra
    hour = val[0:2]
    min_ = val[2:4]
    sec = val[4:9]
    ra = hour+'h'+min_+'m'+sec+'s'
    #dec
    deg = val[9:13]
    min_d = val[13:15]
    sec_d = val[15:]
    dec = deg+'d'+min_d+'m'+sec_d+'s'
    return ra+" "+dec