Edwin Powell Hubble, astronomer