HiRISE

HiRISE.HiReport.uplink
Class StereoList

java.lang.Object
  extended by HiRISE.HiReport.DataProvider
      extended by HiRISE.HiReport.uplink.StereoList

public class StereoList
extends DataProvider

Queries for stereo pairs based on user input.


Field Summary
static String ID
          CVS ID
 
Fields inherited from class HiRISE.HiReport.DataProvider
Anaglyph, CCD, Cycles, DTM, EDR, FS, Geo, HiP, HiRISE_ROOT, Jit, logger, Mars_Years, Obs, Orbits, PAP, PDTM, PEDR, PHiP, PPL, PPL_map, PRDR, PS, PXP, RDR, RS1, RS2, SO, SOP, SOPO, SOPO_map, SOST, SOST_map, SR, ST, Tags, Web, XP
 
Constructor Summary
StereoList()
           
 
Method Summary
 StereoPairCollection getPairs()
          Get the list of StereoPairs
 String getSQL()
          Return the query string used to select candidates.
 XYSeriesCollection getXYDataset()
          Get the collected data for charting
 void init(StereoForm form)
          Perform our query and collect data based on information in the form
static Double stereoAngle(double clat0, double clat1, double clon0, double clon1, double slat0, double slat1, double slon0, double slon1, double dist0, double dist1)
          Compute the stereo separation angle between two stereo halves
static Double stereoAngle(StereoHalf left, StereoHalf rite)
          Calculate the stereo angle between two halves
 
Methods inherited from class HiRISE.HiReport.DataProvider
getConnection, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
CVS ID

See Also:
Constant Field Values
Constructor Detail

StereoList

public StereoList()
Method Detail

init

public void init(StereoForm form)
          throws SQLException
Perform our query and collect data based on information in the form

Parameters:
form - Instance with user options or defaults
Throws:
SQLException - Could not collect data

getPairs

public StereoPairCollection getPairs()
Get the list of StereoPairs

Returns:
Ordered list of stereo pairs.

getSQL

public String getSQL()
Return the query string used to select candidates.

Returns:
SQL

stereoAngle

public static Double stereoAngle(StereoHalf left,
                                 StereoHalf rite)
Calculate the stereo angle between two halves

Parameters:
left - half
rite - half
Returns:
angle in degrees

stereoAngle

public static Double stereoAngle(double clat0,
                                 double clat1,
                                 double clon0,
                                 double clon1,
                                 double slat0,
                                 double slat1,
                                 double slon0,
                                 double slon1,
                                 double dist0,
                                 double dist1)
Compute the stereo separation angle between two stereo halves

Parameters:
clat0 - center latitude of first half
clat1 - center latitude of second half
clon0 - center longitude of first half
clon1 - center longitude of second half
slat0 - spacecraft latitude of first half
slat1 - spacecraft latitude of second half
slon0 - spacecraft longitude of first half
slon1 - spacecraft longitude of second half
dist0 - spacecraft-target distance of first half
dist1 - spacecraft-target distance of second half
Returns:
stereo angle in degrees

getXYDataset

public XYSeriesCollection getXYDataset()
Get the collected data for charting

Returns:
x-y data collection

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona