use of org.orekit.data.BodiesElements in project Orekit by CS-SI.
the class OceanLoadingTest method testLongPeriod.
@Test
public void testLongPeriod() throws OrekitException {
TimeScale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
FundamentalNutationArguments fna = IERSConventions.IERS_2010.getNutationArguments(ut1);
BodiesElements elements = fna.evaluateAll(new AbsoluteDate(2009, 6, 25, 0, 0, 0.0, ut1));
for (Tide tide : getTides()) {
if (tide.getDoodsonMultipliers()[0] == 0) {
double f = tide.getRate(elements) * Constants.JULIAN_DAY / (2 * FastMath.PI);
Assert.assertTrue(f > 0.0);
Assert.assertTrue(f <= 0.5);
}
}
}
use of org.orekit.data.BodiesElements in project Orekit by CS-SI.
the class OceanLoadingTest method testDiurnal.
@Test
public void testDiurnal() throws OrekitException {
TimeScale ut1 = TimeScalesFactory.getUT1(IERSConventions.IERS_2010, true);
FundamentalNutationArguments fna = IERSConventions.IERS_2010.getNutationArguments(ut1);
BodiesElements elements = fna.evaluateAll(new AbsoluteDate(2009, 6, 25, 0, 0, 0.0, ut1));
for (Tide tide : getTides()) {
if (tide.getDoodsonMultipliers()[0] == 1) {
double f = tide.getRate(elements) * Constants.JULIAN_DAY / (2 * FastMath.PI);
Assert.assertTrue(f > 0.5);
Assert.assertTrue(f <= 1.5);
}
}
}
Aggregations