Search in sources :

Example 21 with UT1Scale

use of org.orekit.time.UT1Scale in project Orekit by CS-SI.

the class IERSConventionsTest method testGMSTRate2010.

@Test
public void testGMSTRate2010() throws OrekitException {
    final UT1Scale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
    checkGMSTRate(IERSConventions.IERS_2010.getGMSTFunction(ut1), IERSConventions.IERS_2010.getGMSTRateFunction(ut1), AbsoluteDate.J2000_EPOCH.shiftedBy(-0.4 * Constants.JULIAN_DAY), 0.8 * Constants.JULIAN_DAY, 600.0, 10.0, 8.0e-13);
}
Also used : UT1Scale(org.orekit.time.UT1Scale) Test(org.junit.Test)

Example 22 with UT1Scale

use of org.orekit.time.UT1Scale in project Orekit by CS-SI.

the class IERSConventionsTest method testTideFrequencyDependenceFunction2003FieldConsistency.

@Test
public void testTideFrequencyDependenceFunction2003FieldConsistency() throws OrekitException {
    final UT1Scale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2003, true);
    checkVectorFunctionConsistency(IERSConventions.IERS_2003.getTideFrequencyDependenceFunction(ut1), 5, AbsoluteDate.J2000_EPOCH.shiftedBy(-0.4 * Constants.JULIAN_DAY), 0.8 * Constants.JULIAN_DAY, 600.0, 10.0, 4.0e-24, 4.0e-22);
}
Also used : UT1Scale(org.orekit.time.UT1Scale) Test(org.junit.Test)

Example 23 with UT1Scale

use of org.orekit.time.UT1Scale in project Orekit by CS-SI.

the class IERSConventionsTest method testTideFrequencyDependenceFunction2010FieldConsistency.

@Test
public void testTideFrequencyDependenceFunction2010FieldConsistency() throws OrekitException {
    final UT1Scale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
    checkVectorFunctionConsistency(IERSConventions.IERS_2010.getTideFrequencyDependenceFunction(ut1), 5, AbsoluteDate.J2000_EPOCH.shiftedBy(-0.4 * Constants.JULIAN_DAY), 0.8 * Constants.JULIAN_DAY, 600.0, 10.0, 4.0e-24, 4.0e-22);
}
Also used : UT1Scale(org.orekit.time.UT1Scale) Test(org.junit.Test)

Example 24 with UT1Scale

use of org.orekit.time.UT1Scale in project Orekit by CS-SI.

the class IERSConventionsTest method testGMST2000vs2006.

@Test
public void testGMST2000vs2006() throws OrekitException {
    final UT1Scale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
    final TimeScalarFunction gmst00 = IERSConventions.IERS_2003.getGMSTFunction(ut1);
    final TimeScalarFunction gmst06 = IERSConventions.IERS_2010.getGMSTFunction(ut1);
    final DSFactory factory = new DSFactory(1, 1);
    final FieldAbsoluteDate<DerivativeStructure> ds2000 = FieldAbsoluteDate.getJ2000Epoch(factory.getDerivativeField());
    for (double dt = 0; dt < 10 * Constants.JULIAN_YEAR; dt += 10 * Constants.JULIAN_DAY) {
        FieldAbsoluteDate<DerivativeStructure> date = ds2000.shiftedBy(factory.variable(0, dt));
        DerivativeStructure delta = gmst06.value(date).subtract(gmst00.value(date));
        // GMST2006 and GMST2000 are similar to about 0.15 milli-arcseconds between 2000 and 2010
        Assert.assertEquals(0.0, MathUtils.normalizeAngle(delta.getValue(), 0.0), 7e-10);
        Assert.assertEquals(0.0, delta.getPartialDerivative(1), 3.0e-18);
    }
}
Also used : UT1Scale(org.orekit.time.UT1Scale) DerivativeStructure(org.hipparchus.analysis.differentiation.DerivativeStructure) DSFactory(org.hipparchus.analysis.differentiation.DSFactory) TimeScalarFunction(org.orekit.time.TimeScalarFunction) Test(org.junit.Test)

Example 25 with UT1Scale

use of org.orekit.time.UT1Scale in project Orekit by CS-SI.

the class IERSConventionsTest method testTideFrequencyDependenceFunction1996FieldConsistency.

@Test
public void testTideFrequencyDependenceFunction1996FieldConsistency() throws OrekitException {
    final UT1Scale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_1996, true);
    checkVectorFunctionConsistency(IERSConventions.IERS_1996.getTideFrequencyDependenceFunction(ut1), 5, AbsoluteDate.J2000_EPOCH.shiftedBy(-0.4 * Constants.JULIAN_DAY), 0.8 * Constants.JULIAN_DAY, 600.0, 10.0, 4.0e-24, 4.0e-22);
}
Also used : UT1Scale(org.orekit.time.UT1Scale) Test(org.junit.Test)

Aggregations

UT1Scale (org.orekit.time.UT1Scale)26 Test (org.junit.Test)24 AbsoluteDate (org.orekit.time.AbsoluteDate)14 TimeScale (org.orekit.time.TimeScale)12 NormalizedSphericalHarmonicsProvider (org.orekit.forces.gravity.potential.NormalizedSphericalHarmonicsProvider)10 Frame (org.orekit.frames.Frame)9 FieldAbsoluteDate (org.orekit.time.FieldAbsoluteDate)9 ForceModel (org.orekit.forces.ForceModel)8 SpacecraftState (org.orekit.propagation.SpacecraftState)8 KeplerianOrbit (org.orekit.orbits.KeplerianOrbit)7 Orbit (org.orekit.orbits.Orbit)7 FieldSpacecraftState (org.orekit.propagation.FieldSpacecraftState)6 AbstractLegacyForceModelTest (org.orekit.forces.AbstractLegacyForceModelTest)5 FieldCartesianOrbit (org.orekit.orbits.FieldCartesianOrbit)5 NormalizedSphericalHarmonics (org.orekit.forces.gravity.potential.NormalizedSphericalHarmonicsProvider.NormalizedSphericalHarmonics)3 IERSConventions (org.orekit.utils.IERSConventions)3 Field (java.lang.reflect.Field)2 Rotation (org.hipparchus.geometry.euclidean.threed.Rotation)2 LofOffset (org.orekit.attitudes.LofOffset)2 AstronomicalAmplitudeReader (org.orekit.forces.gravity.potential.AstronomicalAmplitudeReader)2