use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.
the class MarshallSolarActivityFutureEstimationTest method testKpWeak.
@Test
public void testKpWeak() throws OrekitException {
MarshallSolarActivityFutureEstimation msafe = loadMsafe(MarshallSolarActivityFutureEstimation.StrengthLevel.WEAK);
Assert.assertEquals(1 + 1.0 / 3.0, msafe.get24HoursKp(new AbsoluteDate("2010-10-01", utc)), 0.1);
Assert.assertEquals(2.0, msafe.get24HoursKp(new AbsoluteDate("2011-05-01", utc)), 0.3);
Assert.assertEquals(1 + 1.0 / 3.0, msafe.get24HoursKp(new AbsoluteDate("2010-08-01", utc)), 0.1);
Assert.assertEquals(msafe.getThreeHourlyKP(new AbsoluteDate("2010-08-01", utc)), msafe.get24HoursKp(new AbsoluteDate("2010-08-01", utc)), 1.0e-14);
}
use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.
the class MarshallSolarActivityFutureEstimationTest method testMinDate.
@Test
public void testMinDate() throws OrekitException {
MarshallSolarActivityFutureEstimation msafe = loadMsafe(MarshallSolarActivityFutureEstimation.StrengthLevel.WEAK);
Assert.assertEquals(new AbsoluteDate("2010-05-01", utc), msafe.getMinDate());
Assert.assertEquals(78.1, msafe.getMeanFlux(msafe.getMinDate()), 1.0e-14);
}
use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.
the class MarshallSolarActivityFutureEstimationTest method testExtraData.
@Test(expected = OrekitException.class)
public void testExtraData() throws OrekitException {
MarshallSolarActivityFutureEstimation msafe = new MarshallSolarActivityFutureEstimation("Jan2011F10-extra-data\\.txt", MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG);
DataProvidersManager manager = DataProvidersManager.getInstance();
manager.feed(msafe.getSupportedNames(), msafe);
}
use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.
the class MarshallSolarActivityFutureEstimationTest method testFluxStrong.
@Test
public void testFluxStrong() throws OrekitException {
MarshallSolarActivityFutureEstimation msafe = loadMsafe(MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG);
Assert.assertEquals(94.2, msafe.getMeanFlux(new AbsoluteDate("2010-10-01", utc)), 1.0e-10);
Assert.assertEquals(96.6, msafe.getMeanFlux(new AbsoluteDate("2010-10-16T12:00:00", utc)), 1.0e-10);
Assert.assertEquals(99.0, msafe.getMeanFlux(new AbsoluteDate("2010-11-01", utc)), 1.0e-10);
Assert.assertEquals(msafe.getInstantFlux(new AbsoluteDate("2010-11-01", utc)), msafe.getMeanFlux(new AbsoluteDate("2010-11-01", utc)), 1.0e-10);
Assert.assertEquals(MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG, msafe.getStrengthLevel());
}
use of org.orekit.forces.drag.atmosphere.data.MarshallSolarActivityFutureEstimation in project Orekit by CS-SI.
the class MarshallSolarActivityFutureEstimationTest method testNoData.
@Test(expected = OrekitException.class)
public void testNoData() throws OrekitException {
MarshallSolarActivityFutureEstimation msafe = new MarshallSolarActivityFutureEstimation("Jan2011F10-no-data\\.txt", MarshallSolarActivityFutureEstimation.StrengthLevel.STRONG);
DataProvidersManager manager = DataProvidersManager.getInstance();
manager.feed(msafe.getSupportedNames(), msafe);
}
Aggregations