Class GetObservationsList

java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.xmatch.GetObservationsList

public class GetObservationsList extends Object
Returns the list of observations for all surveys
Author:
talonso
  • Method Details

    • getLastReport

      public static String getLastReport()
      Returns the main information about rejected or accepted observations during the last call to getAllObservations(String, Double, Double)
      Returns:
      Last report contents
    • getAllObservations

      public static ArrayList<ObservationElement> getAllObservations(String missionId, Double jdStart, Double jdEnd) throws spice.basic.SpiceErrorException, IOException
      Returns observations for all surveys. Observations are not grouped or joined, for that you can use the output in ObservationGroupElement.getObservationsAsGroup(List, double)
      Parameters:
      missionId - Identifier of the mission to get the observations (or multiple missions between comma), or null to get all observations
      jdStart - Optional start date to search
      jdEnd - Optional end date to search
      Returns:
      The list, sorted by mission and by date for each mission
      Throws:
      IOException - File system errors
      spice.basic.SpiceErrorException - Ephemeris/kernel errors
    • getOldestObservationDate

      public static double getOldestObservationDate() throws spice.basic.SpiceErrorException, IOException
      Returns the date of the oldest observation for all surveys
      Returns:
      The Julian date of the oldest observations
      Throws:
      IOException - File system errors
      spice.basic.SpiceErrorException - Ephemeris/kernel errors
    • parseLine

      public static ObservationElement parseLine(String inputLine, String missionId, double maxRadius)
      Returns an observation from the string line returned from the database
      Parameters:
      inputLine - Input string
      missionId - Mission ID
      maxRadius - Maximum radius allowed for the observation in degrees. If the radius is found to be greater than this value, or points to a position outside the footprint, null will be returned. If this parameter is negative or zero no observation will be discarded
      Returns:
      The observation
    • getSingleObservation

      public static ArrayList<ObservationElement> getSingleObservation(MissionElement mission, String obsId) throws spice.basic.SpiceErrorException, NumberFormatException, IOException
      Searches for a single or multiple observation for a given mission and observation id
      Parameters:
      mission - Mission object
      obsId - One or several obsId between comma
      Returns:
      List of observations, empty list if the observation id is not found
      Throws:
      IOException - File system errors
      spice.basic.SpiceErrorException - Ephemeris/kernel errors
      NumberFormatException - If the property maximum observation field is not a number