NAME

StarConjunctionWith

Return the nearest star in conjunction with a planet.

USAGE

StarConjunctionWith nplanet orb

PARAMETERS

nplanet : number of the planet.

orb : decimal value for the orb in degree.

For example if orb is 1.5 degrees, all planet between Star Longitude -1° 30’ and Star Longitude +1° 30’ is in conjunction.

OPTIONS

None

RETURN

Return the id of the star the planet is in conjunction with.

If there is no star in conjunction with the planet, return -1

Note:
The id of the star is a field in the star record found in the stars.pra file.

EXAMPLE

foreach {i} { 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 } {
    PutTxt [StarConjunctionWith $i 1]
}

Output

-1
20
-1
-1
-1
40
-1
-1
-1
-1
-1
-1
4
-1
-1

See also IdStarConjunctionWithPlanet