A person dedicated to learning and teaching of astrology is not assigned to hell. On the contrary, he, achieving salvation, goes to the Brahmaloka, the adobe of the gods.