Class GetObservationsList
- java.lang.Object
-
- talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.xmatch.GetObservationsList
-
public class GetObservationsList extends java.lang.Object
Returns the list of observations for all surveys- Author:
- talonso
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.ArrayList<ObservationElement>
getAllObservations(java.lang.String missionId, java.lang.Double jdStart, java.lang.Double jdEnd)
Returns observations for all surveys.static java.lang.String
getLastReport()
Returns the main information about rejected or accepted observations during the last call to getAllObservations(String, Double, Double)static double
getOldestObservationDate()
Returns the date of the oldest observation for all surveysstatic java.util.ArrayList<ObservationElement>
getSingleObservation(MissionElement mission, java.lang.String obsId)
Searches for a single or multiple observation for a given mission and observation idstatic ObservationElement
parseLine(java.lang.String inputLine, java.lang.String missionId, double maxRadius)
Returns an observation from the string line returned from the database
-
-
-
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 alljdStart
- Optional start date to searchjdEnd
- Optional end date to search- Returns:
- The list, sorted by mission and by date for each mission
- Throws:
java.io.IOException
- File system errorsspice.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 errorsspice.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 stringmissionId
- Mission IDmaxRadius
- 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 objectobsId
- 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 errorsspice.basic.SpiceErrorException
- Ephemeris/kernel errorsjava.lang.NumberFormatException
- If the property maximum observation field is not a number
-
-