HiRISE

HiRISE.HiPlan.HiCat
Class Observation_Record.ElectraMergeData

java.lang.Object
  extended by HiRISE.HiPlan.HiCat.Observation_Record.ElectraMergeData
Enclosing class:
Observation_Record

public static class Observation_Record.ElectraMergeData
extends Object

A structure containing the data resulting from an MTT-driven merge between an ELECTRA observation and a HiRISE observation. These values represent the HiRISE observation's original values for the parameters in question. Objects of this class are instantiated via its valueOf(String) method.


Field Summary
static String ELECTRA_MERGE_DATA_REGEX
          The ELECTRA merge data regular expression.
 
Method Summary
 double getLatitude()
          Gets the original HiRISE planetographic latitude.
 double getLongitude()
          Gets the original HiRISE longitude.
 double getObservationDuration()
          Gets the original HiRISE observation duration.
 Observation_Record.Stability getStability()
          Gets the original HiRISE stability.
 String toPtfString()
          Returns a string representation of the data in the format specified by the PTF SIS.
 String toString()
          Gets a string representation of the ELECTRA merge data.
static Observation_Record.ElectraMergeData valueOf(String text)
          Generates a new select of ELECTRA merge data from a piece of input text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ELECTRA_MERGE_DATA_REGEX

public static final String ELECTRA_MERGE_DATA_REGEX
The ELECTRA merge data regular expression. This regex captures the PTF SIS specification for the data as they appear in a HiRISE observation PTF comment.

See Also:
Constant Field Values
Method Detail

getLatitude

public double getLatitude()
Gets the original HiRISE planetographic latitude.

Returns:
the original HiRISE planetographic latitude in degrees.

getLongitude

public double getLongitude()
Gets the original HiRISE longitude.

Returns:
the original HiRISE longitude in degrees.

getObservationDuration

public double getObservationDuration()
Gets the original HiRISE observation duration.

Returns:
the original HiRISE observation duration in seconds.

getStability

public Observation_Record.Stability getStability()
Gets the original HiRISE stability. The stability is either Observation_Record.Stability.NORMAL or Observation_Record.Stability.HIGH.

Returns:
the original HiRISE stability.

toString

public String toString()
Gets a string representation of the ELECTRA merge data. Note that this form is quite different from the text appended to the HiRISE COMMENT field.

Overrides:
toString in class Object
Returns:
a string representation of the ELECTRA merge data.

toPtfString

public String toPtfString()
Returns a string representation of the data in the format specified by the PTF SIS. This form is the form appended to the HiRISE COMMENT field during the merge.

Returns:
a PTF SIS formatted string.

valueOf

public static Observation_Record.ElectraMergeData valueOf(String text)
Generates a new select of ELECTRA merge data from a piece of input text. The text is assumed to be a HiRISE observation comment, either from the database or a PTF record. The data are identified via the ELECTRA_MERGE_DATA_REGEX.

Returns:
a set of data, or null if no ELECTRA merge data were present in the input text.

HiRISE

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