HiRISE

HiRISE.HiPlan.HiSEAS
Class LsFunctions

java.lang.Object
  extended by HiRISE.HiPlan.HiSEAS.LsFunctions

public class LsFunctions
extends Object

A collection of functions used by HiSEAS for solar longitude calculations.


Field Summary
static double DEFAULT_URGENT_THRESHOLD
           
static double DEGREES_TO_DAYS
          A simple factor for converting degrees of martian solar longitude to Earth days.
static String ID
          Class identification name with source code version and date.
 
Constructor Summary
LsFunctions()
           
 
Method Summary
static double getDaysFromPreviousLs(double referenceLs, double ls)
           
static double getDaysToNextLs(double referenceLs, double ls)
           
static double getDegreesFromPreviousLs(double referenceLs, double ls)
           
static double getDegreesToNextLs(double referenceLs, double ls)
           
static double getMirroredLs(double ls)
           
static boolean isUrgent(double referenceLs, double ls)
           
static boolean isUrgent(double referenceLs, double ls, double threshold)
           
static double normalizeLs(double ls)
           
static double toDays(double degreesOfLs)
           
 
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 identification name with source code version and date.

See Also:
Constant Field Values

DEGREES_TO_DAYS

public static final double DEGREES_TO_DAYS
A simple factor for converting degrees of martian solar longitude to Earth days. It is simply 686.98 Earth days divided by 360.0 degrees: 1.91 days per degree of solar longitude.

This conversion is only an approximation. Because of the elliptical orbit of Mars, Ls 0 to Ls 90 lasts about 189 Earth days (roughly 2.1 days/degree); Ls 180 to Ls 270 lasts about 138 Earth days (1.5 days/degree).

See Also:
Timekeeping on Mars, Constant Field Values

DEFAULT_URGENT_THRESHOLD

public static final double DEFAULT_URGENT_THRESHOLD
See Also:
Constant Field Values
Constructor Detail

LsFunctions

public LsFunctions()
Method Detail

normalizeLs

public static double normalizeLs(double ls)

getMirroredLs

public static double getMirroredLs(double ls)

getDegreesFromPreviousLs

public static double getDegreesFromPreviousLs(double referenceLs,
                                              double ls)

getDegreesToNextLs

public static double getDegreesToNextLs(double referenceLs,
                                        double ls)

getDaysFromPreviousLs

public static double getDaysFromPreviousLs(double referenceLs,
                                           double ls)

getDaysToNextLs

public static double getDaysToNextLs(double referenceLs,
                                     double ls)

isUrgent

public static boolean isUrgent(double referenceLs,
                               double ls,
                               double threshold)

isUrgent

public static boolean isUrgent(double referenceLs,
                               double ls)

toDays

public static double toDays(double degreesOfLs)

HiRISE

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