All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JObserve.CheckPlanets

java.lang.Object
   |
   +----JObserve.CheckPlanets

public class CheckPlanets
extends Object
Check if a celestial position is too close to a solar system onject This class consists of static functions.

See Also:
Ephemeris

Variable Index

 o FlagBits
An array of bit masks which when used with the Ephemeris planet codes (SUN, MOON ...) can be ORed with the return value from CheckPlanets to see if that object is too close.

Constructor Index

 o CheckPlanets()

Method Index

 o CheckPlanets(double, double, double, double, double, double[])
Check if any planets are too close to a celestial position Also checks Sun and Moon.

Variables

 o FlagBits
 public static final int FlagBits[]
An array of bit masks which when used with the Ephemeris planet codes (SUN, MOON ...) can be ORed with the return value from CheckPlanets to see if that object is too close. e.g.
boolean MoonClose = ((CheckPlanets_return | FlagBits[Ephemeris.Moon]) != 0);

Constructors

 o CheckPlanets
 public CheckPlanets()

Methods

 o CheckPlanets
 public static int CheckPlanets(double ra,
                                double dec,
                                double IAT,
                                double sun_limit,
                                double planet_limit,
                                double AngularDistance[])
Check if any planets are too close to a celestial position Also checks Sun and Moon. A returned value of 0 indicated no objects were too close. Which objects were too close can be determined from ORing the return value with the appropriate FlagBits; a non zero value indicates that the selected object was too close.

Parameters:
the - Scan to be observed, modified if something found
double - Right ascension in radians
double - Declination in radians
double - IAT in Seconds
double - minimum allowable solar distance
double - minimum allowable planetary distance
double[] - returns with the angular distance (radians) Should contain 13 entries.
Returns:
array of bits telling which objects were too close, 0=> none. Others defined by Ephemeris (SUN, MOON...).

All Packages  Class Hierarchy  This Package  Previous  Next  Index