docs for to_redshfit