Example - 01 - Hello World!

In this ‘hello world’ program, you will learn to use AMAT to create a planet object.

First let us import the Planet class from AMAT

[1]:
from AMAT.planet import Planet

Now let us create a planet object which represents Venus.

[2]:
planet = Planet("VENUS")

Let us look at the an attribute of the created object. For example let us, print the radius of the planet. A full list of attributes and functions can be obtained using help(planet).

[3]:
print(planet.RP)
6051800.0

Congratulations! You have now created a planet object using AMAT. In the next example, we will add an atmosphere model to this planet object.