HiRISE

HiRISE.HiCat.Utilities
Class Find_Overlapping_Observations

java.lang.Object
  extended by HiRISE.HiCat.Utilities.Find_Overlapping_Observations

public class Find_Overlapping_Observations
extends Object

A utility class for finding HiRISE Observations which overlap. The overlap test is the overlapping centers test used by the Retire_Suggestions mechanism. The overlap test can be applied to either the color products or the red products, respectively, too obtain a greater or lesser degree of coverage. The list can, optionally, be filtered to remove repeats that were planned as stereo observations. TODO Additional filters can (should) be added to filter out instances where repeat observations were taken as a result of problems (data gaps, poor seeing, etc).

Version:
1.5
Author:
Rodney Heyd UA/HiRISE
See Also:
Retire_Suggestions

Nested Class Summary
static class Find_Overlapping_Observations.ExitCode
          Application exit status values.
 
Field Summary
static String DEBUG_ANAGLYPH_FILTER_PROPERTY
           
static String DEBUG_DUPLICATE_FILTER_PROPERTY
           
static String DEBUG_STEREO_FILTER_PROPERTY
           
static String DEFAULT_CONFIGURATION_FILENAME
          Default configuration file
static String DEFAULT_PRODUCT_TYPE
          Default configuration file
static String ID
          Class identifier
 
Constructor Summary
Find_Overlapping_Observations()
          Construct a finder object using the default configuration file.
Find_Overlapping_Observations(String configuration_file)
          Construct the finder obser using a supplied configuration file
 
Method Summary
 ArrayList<HiRISE.HiCat.Utilities.Find_Overlapping_Observations.OverlapSet> findOverlaps(String product_type, boolean filterAnaglyphs, boolean filterStereos)
          Find sets of overlapping HiRISE Observations and return a list of overlap observation sets as a Vector of Vector Strings.
static void main(String[] arguments)
           
 void outputOverLapReport(ArrayList<HiRISE.HiCat.Utilities.Find_Overlapping_Observations.OverlapSet> overlaps, PrintStream stream)
           
 
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
Class identifier

See Also:
Constant Field Values

DEFAULT_CONFIGURATION_FILENAME

public static final String DEFAULT_CONFIGURATION_FILENAME
Default configuration file

See Also:
Constant Field Values

DEFAULT_PRODUCT_TYPE

public static final String DEFAULT_PRODUCT_TYPE
Default configuration file

See Also:
Constant Field Values

DEBUG_ANAGLYPH_FILTER_PROPERTY

public static final String DEBUG_ANAGLYPH_FILTER_PROPERTY
See Also:
Constant Field Values

DEBUG_STEREO_FILTER_PROPERTY

public static final String DEBUG_STEREO_FILTER_PROPERTY
See Also:
Constant Field Values

DEBUG_DUPLICATE_FILTER_PROPERTY

public static final String DEBUG_DUPLICATE_FILTER_PROPERTY
See Also:
Constant Field Values
Constructor Detail

Find_Overlapping_Observations

public Find_Overlapping_Observations(String configuration_file)
                              throws Configuration_Exception,
                                     Database_Exception
Construct the finder obser using a supplied configuration file

Parameters:
configuration_file - - a String containing the name of the configuration file
Throws:
Configuration_Exception
Database_Exception

Find_Overlapping_Observations

public Find_Overlapping_Observations()
                              throws Configuration_Exception,
                                     Database_Exception
Construct a finder object using the default configuration file.

Throws:
Configuration_Exception
Database_Exception
Method Detail

findOverlaps

public ArrayList<HiRISE.HiCat.Utilities.Find_Overlapping_Observations.OverlapSet> findOverlaps(String product_type,
                                                                                               boolean filterAnaglyphs,
                                                                                               boolean filterStereos)
                                                                                        throws SQLException
Find sets of overlapping HiRISE Observations and return a list of overlap observation sets as a Vector of Vector Strings.

Parameters:
product_type - - the type of product to use for footprint overlaps. This should normally be set to COLOR to ensure the best overlap coverage.
Returns:
- A Vector of Vector Strings, each vector of strings is a set of overlapping observation ids.
Throws:
SQLException

outputOverLapReport

public void outputOverLapReport(ArrayList<HiRISE.HiCat.Utilities.Find_Overlapping_Observations.OverlapSet> overlaps,
                                PrintStream stream)
                         throws SQLException
Throws:
SQLException

main

public static void main(String[] arguments)
Parameters:
arguments -

HiRISE

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