diff options
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); + } + } |