diff options
author | David A. Madore <david+git@madore.org> | 2012-03-27 19:23:09 +0200 |
---|---|---|
committer | David A. Madore <david+git@madore.org> | 2012-03-27 19:48:07 +0200 |
commit | b0cb2767577a654db082f5ae9bbd69ffde725d2e (patch) | |
tree | 59c2e3be045eca44ec9015a15b9bb2033683c888 /org/madore/ephem/Nutation.java | |
parent | 221c71e37bdc19dc5bbc1f0303697f67847b7712 (diff) | |
download | ephem-b0cb2767577a654db082f5ae9bbd69ffde725d2e.tar.gz ephem-b0cb2767577a654db082f5ae9bbd69ffde725d2e.tar.bz2 ephem-b0cb2767577a654db082f5ae9bbd69ffde725d2e.zip |
Equation of the origins/equinoxes.
Diffstat (limited to 'org/madore/ephem/Nutation.java')
-rw-r--r-- | org/madore/ephem/Nutation.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/org/madore/ephem/Nutation.java b/org/madore/ephem/Nutation.java index ecc08a4..dcfdc30 100644 --- a/org/madore/ephem/Nutation.java +++ b/org/madore/ephem/Nutation.java @@ -10,7 +10,7 @@ import java.io.BufferedReader; public final class Nutation { public static enum Variable { - PSI("psi"), EPSILON("epsilon"); + PSI("psi"), EPSILON("epsilon"), EQORG("eqorg"); final String name; Variable(String name) { this.name = name; } } @@ -70,4 +70,12 @@ public final class Nutation { return mat3; } + public static double eqeqnx(double t) { // Equation of the equinoxes (=GAST-GMST, in arc seconds) + return getFunc(Variable.PSI).v(t)*Math.cos(Precession.epsilon.v(t)) + getFunc(Variable.EQORG).v(t); + } + + public static double eqorg(double t) { + return Precession.eqorg.v(t) + eqeqnx(t); + } + } |