Class GetObservationsList
java.lang.Object
talonsoalbi_at_gmail_dot_com.ssoxmatch.actions.xmatch.GetObservationsList
Returns the list of observations for all surveys
- Author:
- talonso
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayList<ObservationElement> getAllObservations(String missionId, Double jdStart, Double jdEnd) Returns observations for all surveys.static StringReturns the main information about rejected or accepted observations during the last call to getAllObservations(String, Double, Double)static doubleReturns the date of the oldest observation for all surveysstatic ArrayList<ObservationElement> getSingleObservation(MissionElement mission, String obsId) Searches for a single or multiple observation for a given mission and observation idstatic ObservationElementReturns an observation from the string line returned from the database
-
Method Details
-
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 observationsjdStart- Optional start date to searchjdEnd- Optional end date to search- Returns:
- The list, sorted by mission and by date for each mission
- Throws:
IOException- File system errorsspice.basic.SpiceErrorException- Ephemeris/kernel errors
-
getOldestObservationDate
Returns the date of the oldest observation for all surveys- Returns:
- The Julian date of the oldest observations
- Throws:
IOException- File system errorsspice.basic.SpiceErrorException- Ephemeris/kernel errors
-
parseLine
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 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 objectobsId- One or several obsId between comma- Returns:
- List of observations, empty list if the observation id is not found
- Throws:
IOException- File system errorsspice.basic.SpiceErrorException- Ephemeris/kernel errorsNumberFormatException- If the property maximum observation field is not a number
-