public class SolOpposition extends AbstractTargetValue implements ParameterDepending, Reloadable
Value calculating the time out of a given solar ra. This is useful
for calculating best observing periods. Its main use is for time of
opposition.| Modifier and Type | Class and Description |
|---|---|
static class |
SolOpposition.Test
Testing only.
|
PropertyResources.Load, PropertyResources.URLResource| Modifier and Type | Field and Description |
|---|---|
private static double |
ASUN
The constant coefficient.
|
private static double |
BSUN
The linear coefficient.
|
private static double |
CSUN
The quadratic coefficient.
|
private static double |
DEFACCURACY
The default name of the sidereal parameter to use.
|
private static String |
DEFECLIPTIC
The default name of the sidereal parameter to use.
|
static String |
DEFNAME
The default name of this value.
|
private static String |
DEFRATARGET
The default name of the sidereal parameter to use.
|
private static SimpleDateFormat |
df
The decimal formatter for the hour angle.
|
private Value |
epsilon
The obliqutiy of the ecliptic, degrees.
|
static String |
KEY_ACCURACY
The name of the target longitude to use.
|
static String |
KEY_ECLIPTIC
The name of the target longitude to use.
|
static String |
KEY_RATARGET
The name of the target longitude to use.
|
private static double |
LAM
Constant for excentricity offset.
|
private static double |
NYA
Constant coefficient for calculating mean anamoly.
|
private static double |
NYB
Linear coefficient for calculating mean anamoly.
|
private static double |
NYC
Quadratic coefficient for calculating mean anamoly.
|
private TargetDependingParameter |
ra
The right ascension of the target, degrees.
|
KEY_INDEXKEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWNKEY_NOINITONCREATE, POSTFIX_ALPHABET, POSTFIX_BYTES, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_MODTIME, POSTFIX_URLKEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASSKEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME| Constructor and Description |
|---|
SolOpposition(Map info)
Constructs a new sol opposition object.
|
| Modifier and Type | Method and Description |
|---|---|
private Long |
calculate(Number ratarget)
Calculates the required solar longitude for opposition and calls the
static
longitudeInvert(double, double) method. |
String |
getFormatted()
Returns the formatted longitude value.
|
String |
getFormattedFor(TargetDefinition target)
Returns the formatted longitude value.
|
Number |
getForTarget(TargetDefinition star)
Gets the opposition date for a target.
|
Number |
getValue()
Returns the date when this target will be in opposition to the sun.
|
static long |
longitudeInvert(double lamsol,
double acc)
Calculates the date when the sun had the defined solar longitude in the
year 2000.
|
void |
registerParameter(Parameter what)
Registers the required additional globals for the solar opposition.
|
void |
registerTarget(TargetDefinition star)
Registers a star to this parameter.
|
double |
rescanned(String key,
String old,
String newval)
As any parameter depending instance we fail if the parameter we depend on
is now a different one.
|
Number |
setValue(Number val)
Sets the solar opposition date of the actual target.
|
get, setgetAsStar, getConstant, getSetupcreateParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, overrideDefaultName, register, setName, toStringclone, createFrom, createFrom, createFrom, createInstance, getApplet, getAsResources, getLocate, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, hasLocalURLs, initProperties, keyCreate, keyCreate, reload, setAppletaugment, augment, augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, parseObject, reload, removeProperty, requires, setObject, setProperties, setProperty, stringPropertiesequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitreloaddefaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringPropertiesinitpublic static final String KEY_RATARGET
public static final String KEY_ECLIPTIC
public static final String KEY_ACCURACY
public static final String DEFNAME
private static final String DEFRATARGET
private static final String DEFECLIPTIC
private static final double DEFACCURACY
private static final double ASUN
private static final double BSUN
private static final double CSUN
private static final double LAM
private static final double NYA
private static final double NYB
private static final double NYC
private TargetDependingParameter ra
private Value epsilon
private static final SimpleDateFormat df
public SolOpposition(Map info)
public Number setValue(Number val) throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationExceptionpublic void registerTarget(TargetDefinition star)
ra reference of this parameter. Note that this
will set the target in the additional parameter, too.registerTarget in interface TargetDependingpublic Number getForTarget(TargetDefinition star)
getForTarget in interface TargetDependingParametergetForTarget in interface TargetDependingValuepublic Number getValue()
public double rescanned(String key, String old, String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerParameter(Parameter what)
registerParameter in interface ParameterDependingprivate Long calculate(Number ratarget)
longitudeInvert(double, double) method.public static long longitudeInvert(double lamsol,
double acc)
Astro to
query.lamsol - The solar ecliptical longitude in radians.acc - The accuracy of the newton solver.public String getFormatted()
getFormatted in interface ParametergetFormatted in class AbstractParameterpublic String getFormattedFor(TargetDefinition target)
getFormattedFor in interface TargetDependingParametergetFormattedFor in class AbstractTargetParameter