Class EphemService
java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.web.AbstractService
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.web.EphemService
Provides the service of ephemerides, processing also their requests
- Author:
- talonso
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionEphem servicestatic voidprocessEphemerides(DetailedEphemElement ephem, LocationElement locH, LocationElement locM, String format, boolean compare, boolean jpl, boolean useUnit, StringBuilder output) Process the ephemerides to format the output
-
Constructor Details
-
EphemService
public EphemService()Default constructor for this service
-
-
Method Details
-
handle
Ephem service- Overrides:
handlein classAbstractService- Parameters:
t- The http exchange- Returns:
- The (unprocessed) output to the user
-
processEphemerides
public static void processEphemerides(DetailedEphemElement ephem, LocationElement locH, LocationElement locM, String format, boolean compare, boolean jpl, boolean useUnit, StringBuilder output) throws spice.basic.SpiceErrorException Process the ephemerides to format the output- Parameters:
ephem- Ephemerides of the bodylocH- Location from Horizons if available, or nulllocM- Location from Miriade if available, or nullformat- html, csv or jsoncompare- True to compare the computed position with Horizons and/or Miriadejpl- If JPL elements were used or notuseUnit- To show units in the resultsoutput- Output object with the formatted data- Throws:
spice.basic.SpiceErrorException- Ephemeris/kernel errors
-