Science it is but a failed science. The whole of Vedas was science of the erstwhile vedic age, its progress was curtailed by invasions and it regressed into rituals and sacrifices. It became frozen and crystallized into a tradition. The science they where into was more of metaphysics and speculation with out research like in modern times. So Astrology is a failed science.
In Al-Biruni accounts of Muhammad Ghoris invasion of India he refereed to Hindu religion as a sort of science.
"In the interest of his successors he constructed, in order to weaken the Indian frontier, those roads on which afterwards his son Mahmud marched into India during a period of thirty years and more. God be merciful to both father and son! Mahmud utterly ruined the prosperity of the country, and performed there wonderful exploits, by which the Hindus became like atoms of dust scattered in all directions, and like a tale of old in the mouth of the people. Their scattered remains cherish, of course, the most inveterate aversion towards all Muslims. This is the reason, too, why Hindu sciences have retired far away from those parts of the country conquered by us, and have fled to places which our hand cannot yet reach, to Kashmir, Benares, and other places. And there the antagonism between them and all foreigners receives more and more nourishment both from political and religious sources."