NAME

StarConjunctionWith

Check if a planet is in conjunction with a star.

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 the first 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 } {
    set id_star  [StarConjunctionWith $i 1]
    
    if { $id_star >= 0 } {
      set num_star  [IdStar2Num $id_star]
    } else { set num_star -1}
        
    if { $num_star != -1 } {
     PutTxt "[NameOfPlanet $i] is in conjunction with star [NameOfStar $num_star] ( [CommentOfStar $num_star] )"
    } else {
     PutTxt "[NameOfPlanet $i] is not in conjunction with any star"
    }
}

Output


Sun is in conjunction with star Beta Leo ( Denebola )
Moon is not in conjunction with any star
Mercury is in conjunction with star Delta Leo ( Zosma )
Venus is not in conjunction with any star
Mars is not in conjunction with any star
Jupiter is in conjunction with star Beta Auriga ( Menkalinan )
Saturn is not in conjunction with any star
AS is in conjunction with star Beta Gemini ( Pollux )
MH is not in conjunction with any star
Rahu is in conjunction with star Epsilon Taurus ( Ain )
Kethu is in conjunction with star Alpha Scorpio ( Antares )
Uranus is not in conjunction with any star
Neptune is not in conjunction with any star
Pluto is not in conjunction with any star
Fortune is in conjunction with star Delta Aquarius ( Skat )