java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.web.AbstractService
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.web.EphemService

public class EphemService extends AbstractService
Provides the service of ephemerides, processing also their requests
Author:
talonso
  • Constructor Details

    • EphemService

      public EphemService()
      Default constructor for this service
  • Method Details

    • handle

      public String handle(HttpExchange t)
      Ephem service
      Overrides:
      handle in class AbstractService
      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 body
      locH - Location from Horizons if available, or null
      locM - Location from Miriade if available, or null
      format - html, csv or json
      compare - True to compare the computed position with Horizons and/or Miriade
      jpl - If JPL elements were used or not
      useUnit - To show units in the results
      output - Output object with the formatted data
      Throws:
      spice.basic.SpiceErrorException - Ephemeris/kernel errors