|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.parameter.AbstractParameter
stella.parameter.AbstractTargetParameter
stella.parameter.AbstractTargetValue
stella.parameter.HjdCorrection
public class HjdCorrection
Represents the current heliocentric correction. The light-time correction
is calcualted approximately with VSOP87 data.
The solar ecliptical longitude, ra, and dec with the
current jd are the parameters the hjd depends on. It is also
TargetDependingParameter as the correction also depends on
the position within the sky of the object:
r=q/(1+e·cos(λ-ω0)), hjd-jd=r/c·(sinδssinδ+cosδcosδscosΔα)The correction returned is in natural time units, i.e. milliseconds and should be added to jd to gain hjd.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.PropertyResources |
|---|
PropertyResources.URLResource |
| Field Summary | |
|---|---|
private SolDec |
decsol
The solar declination. |
private DecTarget |
dectarget
The target declination. |
private static String |
DEFDECTARGET
The default name of the jd parameter. |
static String |
DEFNAME
The name of this global (jd). |
private static String |
DEFRATARGET
The default name of the jd parameter. |
private static String |
DEFSOLDEC
The default name of the jd parameter. |
private static String |
DEFSOLDISTANCE
The default name of the jd parameter. |
private static String |
DEFSOLRA
The default name of the jd parameter. |
private static DecimalFormat |
df
The formatter for the target height. |
private SolDistance |
distancesol
The solar longitude. |
private static double |
EXCENTRICITY
The excentricity of earth's orbit. |
static String |
KEY_DECTARGET
The name of the object-dec paramter. |
static String |
KEY_RATARGET
The name of the object-ra paramter. |
static String |
KEY_SOLDEC
The name of the solar-dec paramter. |
static String |
KEY_SOLDISTANCE
The name of the solar-longitude paramter. |
static String |
KEY_SOLRA
The name of the solar-ra paramter. |
private static double |
LIGHTSPEED
The light speed, in AU/ms. |
private static double |
PERIHELARGUMENT
The perihel distance in AU. |
private static double |
PERIHELDISTANCE
The perihel distance in AU. |
private SolRa |
rasol
The solar right ascension. |
private RaTarget |
ratarget
The target ra. |
| Fields inherited from class stella.parameter.AbstractTargetParameter |
|---|
KEY_INDEX |
| Fields inherited from class stella.parameter.AbstractParameter |
|---|
KEY_FORMAT, KEY_NAME, KEY_PRESERVE, UNKNOWN |
| Fields inherited from class util.PropertyBundles |
|---|
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES |
| Fields inherited from class util.PropertyResources |
|---|
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset |
| Fields inherited from class util.PropertyContainer |
|---|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR |
| Fields inherited from interface util.PropertySupplying |
|---|
CONFIG, KEY_CLASS |
| Fields inherited from interface util.ResourceSupplying |
|---|
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME |
| Constructor Summary | |
|---|---|
HjdCorrection(Map define)
Constructs a new global representing the heliocentric correction that should be applied to a julian date. |
|
| Method Summary | |
|---|---|
private Double |
calculate(Number ra,
Number dec)
Calculates the helicentric correction for an object at the given sky position in ms. |
String |
getFormatted(Object myval)
Deviates the formatting to the protected version in AbstractParameter. |
Number |
getForTarget(TargetDefinition target)
Gets the heliocentric correction for the specified target |
static double |
getHjdCorrection(double d,
double solra,
double solde,
double ra,
double de)
Static access to hjd correction from solar distance, solar right ascension, solar declination, target ra and dec. |
Number |
getValue()
Returns the actual hjd in ms as a double. |
void |
registerParameter(Parameter add)
Registers the additional parameters needed. |
void |
registerTarget(TargetDefinition target)
Registers the target. |
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 jd. |
| Methods inherited from class stella.parameter.AbstractTargetValue |
|---|
get, set |
| Methods inherited from class stella.parameter.AbstractTargetParameter |
|---|
getAsStar, getConstant, getFormattedFor, getSetup |
| Methods inherited from class stella.parameter.AbstractParameter |
|---|
createParameter, delivers, exit, getFormatted, getName, getPreserveFile, getString, getString, init, register, setName, toString |
| Methods inherited from class util.PropertyBundles |
|---|
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource |
| Methods inherited from class util.PropertyResources |
|---|
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
|---|
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, reload, removeProperty, setObject, setProperties, setProperty, stringProperties |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.Reloadable |
|---|
reload |
| Methods inherited from interface stella.TargetDependingParameter |
|---|
getFormattedFor |
| Methods inherited from interface stella.Parameter |
|---|
getFormatted, getName, getString |
| Methods inherited from interface util.PropertySupplying |
|---|
defaultBoolean, 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, stringProperties |
| Methods inherited from interface util.Initializable |
|---|
init |
| Methods inherited from interface util.ResourceSupplying |
|---|
getResource, getResourceAsStream, getResources |
| Field Detail |
|---|
public static final String KEY_SOLDISTANCE
public static final String KEY_SOLRA
public static final String KEY_SOLDEC
public static final String KEY_RATARGET
public static final String KEY_DECTARGET
public static final String DEFNAME
private static final String DEFSOLDISTANCE
private static final String DEFSOLRA
private static final String DEFSOLDEC
private static final String DEFRATARGET
private static final String DEFDECTARGET
private static final DecimalFormat df
private static final double PERIHELDISTANCE
private static final double EXCENTRICITY
private static final double PERIHELARGUMENT
private static final double LIGHTSPEED
private SolDistance distancesol
private SolRa rasol
private SolDec decsol
private RaTarget ratarget
private DecTarget dectarget
| Constructor Detail |
|---|
public HjdCorrection(Map define)
| Method Detail |
|---|
public Number setValue(Number val)
throws UnsupportedOperationException
setValue in interface ValueUnsupportedOperationException
public double rescanned(String key,
String old,
String newval)
rescanned in interface Reloadablerescanned in class AbstractParameterpublic void registerParameter(Parameter add)
registerParameter in interface ParameterDependingpublic void registerTarget(TargetDefinition target)
registerTarget in interface TargetDependingpublic Number getForTarget(TargetDefinition target)
getForTarget in interface TargetDependingValuegetForTarget in interface TargetDependingParameterpublic Number getValue()
getValue in interface Value
private Double calculate(Number ra,
Number dec)
public static final double getHjdCorrection(double d,
double solra,
double solde,
double ra,
double de)
d - Solar distance in AU.solra - Right ascension of sun, degrees.solde - Declination of sun, degrees.ra - Target ra, degrees.de - Target de, degrees.
public String getFormatted(Object myval)
AbstractParameter.
getFormatted in class AbstractParameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||