the oldest known catalog of greek constellations comes from catasterismi of eratosthenes who lived from 276 to 196 bc and in the second century bc hipparchus produced a star catalog ranking the stars by their magnitude which is brightness .