Instrument for taking altitude of sun or stars?

An Astrolabe.