Class GetObservationsList


  • public class GetObservationsList
    extends java.lang.Object
    Returns the list of observations for all surveys
    Author:
    talonso
    • Method Detail

      • getLastReport

        public static java.lang.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 java.util.ArrayList<ObservationElement> getAllObservations​(java.lang.String missionId,
                                                                                 java.lang.Double jdStart,
                                                                                 java.lang.Double jdEnd)
                                                                          throws spice.basic.SpiceErrorException,
                                                                                 java.io.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 null for all
        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:
        java.io.IOException - File system errors
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
      • getOldestObservationDate

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

        public static ObservationElement parseLine​(java.lang.String inputLine,
                                                   java.lang.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 java.util.ArrayList<ObservationElement> getSingleObservation​(MissionElement mission,
                                                                                   java.lang.String obsId)
                                                                            throws spice.basic.SpiceErrorException,
                                                                                   java.lang.NumberFormatException,
                                                                                   java.io.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:
        java.io.IOException - File system errors
        spice.basic.SpiceErrorException - Ephemeris/kernel errors
        java.lang.NumberFormatException - If the property maximum observation field is not a number