def redshift(position):
    position = ra_dec_format(position)
    pos = coords.SkyCoord(position, frame='icrs')
    ned_results = Ned.query_region(pos, equinox='J2000', radius=(2 * u.arcsecond))
    z = ned_results[0][6]
    return z
def redshift(position):
    position = ra_dec_format(position)
    pos = coords.SkyCoord(position, frame='icrs')
    ned_results = Ned.query_region(pos, equinox='J2000', radius=(2 * u.arcsecond))
    z = ned_results[0][6]
    return z