Assigning a redshift and SED to each source