Here's why:
* Direct objects are the nouns or pronouns that receive the action of the verb.
* In this sentence, the verb is "observed."
* The astronomers are the ones performing the action, and the heavens are what they are observing.
Therefore, "heavens" is the direct object.