Package com.Lomikel.HBaser
Class HBaseEvaluatorFunctions
java.lang.Object
com.Lomikel.HBaser.HBaseEvaluatorFunctions
HBaseEvaluatorFuctions
provide static functions available to
HBaseEvaluator
.- Author:
- J.Hrivnac
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
demo()
Do-nothing Demostatic boolean
isNear
(double ra, double dec, double ra0, double dec0, double delta) Evaluate, if ra,dec are within specified angular from concrete direction.static boolean
isWithinGeoLimits
(double ra, double dec, double raMin, double raMax, double decMin, double decMax) Evaluate, if ra,dec are within specified limits.
-
Field Details
-
log
Logging .
-
-
Constructor Details
-
HBaseEvaluatorFunctions
public HBaseEvaluatorFunctions()
-
-
Method Details
-
demo
Do-nothing Demo -
isWithinGeoLimits
public static boolean isWithinGeoLimits(double ra, double dec, double raMin, double raMax, double decMin, double decMax) Evaluate, if ra,dec are within specified limits. Usage: isWithinGeoLimits(raMin, raMax, decMin decMax)- Parameters:
ra
- The ra from the database.dec
- The dec from the database.raMin
- The minimal value of ra (in deg).raMax
- The maximal value of ra (in deg).decMin
- The minimal value of dec (in deg).decMax
- The maximal value of dec (in deg).- Returns:
- Whether ra,dec from the database are within specified limits.
-
isNear
Evaluate, if ra,dec are within specified angular from concrete direction. Usage: isNear(ra0, dec0, delta)- Parameters:
ra
- The ra from the database.dec
- The dec from the database.ra0
- The central value of ra (in deg).dec0
- The central value of dec (in deg).delta
- The maximal angular distance from the central direction (in deg).- Returns:
- Whether ra,dec from the database are within specified argular.
-