Planetary IDs

Navigation:  Appendices > Macro Language > System Variables >

Planetary IDs

Previous pageReturn to chapter overviewNext page

These constant macros system variables are used in ephemeris macro functions to provide an easier way to refer to planets than using their numerical IDs. Thus, instead of the following line of code,

 

 PlanetsNearOn(nRunDate, nSourceIndex, 2, 4)

 

you can write the following which is easier to write (and more obvious to read later):

 

 PlanetsNearOn(nRunDate, nSourceIndex, n_MERCURY, N_MARS)

 

The planets are specified using a numerical index, as found in the table below :

 

Index

Name

0

n_SUN

1

n_MOON

2

n_MERCURY

3

n_VENUS

4

n_MARS

 

Index

Name

5

n_JUPITER

6

n_SATURN

7

n_URANUS

8

n_NEPTUNE

9

n_PLUTO

 

See also : Planetary Events IDs.


Topic 177625 updated on 13-Jun-2005.
Topic URL: http://www.qppstudio.net/webhelp/index.html?planetarynames.htm