<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
	<id>https://patrius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=CreateKeplerianOrbitUsingParameters</id>
	<title>CreateKeplerianOrbitUsingParameters - Historique des versions</title>
	<link rel="self" type="application/atom+xml" href="https://patrius.cnes.fr/index.php?action=history&amp;feed=atom&amp;title=CreateKeplerianOrbitUsingParameters"/>
	<link rel="alternate" type="text/html" href="https://patrius.cnes.fr/index.php?title=CreateKeplerianOrbitUsingParameters&amp;action=history"/>
	<updated>2026-04-05T01:45:37Z</updated>
	<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://patrius.cnes.fr/index.php?title=CreateKeplerianOrbitUsingParameters&amp;diff=25&amp;oldid=prev</id>
		<title>Admin : Page créée avec « &lt;syntaxhighlight lang=&quot;java&quot;&gt; public class SimpleKeplerianOrbitUsingParameters {          public static void main(String[] args) throws PatriusException, IOException, Pars... »</title>
		<link rel="alternate" type="text/html" href="https://patrius.cnes.fr/index.php?title=CreateKeplerianOrbitUsingParameters&amp;diff=25&amp;oldid=prev"/>
		<updated>2018-02-13T10:10:26Z</updated>

		<summary type="html">&lt;p&gt;Page créée avec « &amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt; public class SimpleKeplerianOrbitUsingParameters {          public static void main(String[] args) throws PatriusException, IOException, Pars... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
public class SimpleKeplerianOrbitUsingParameters {&lt;br /&gt;
    &lt;br /&gt;
    public static void main(String[] args) throws PatriusException, IOException, ParseException {&lt;br /&gt;
        &lt;br /&gt;
        // Patrius Dataset initialization (needed for example to get the UTC time)&lt;br /&gt;
        PatriusDataset.addResourcesFromPatriusDataset() ;&lt;br /&gt;
&lt;br /&gt;
        // Recovery of the UTC time scale using a &amp;quot;factory&amp;quot; (not to duplicate such unique object)&lt;br /&gt;
        final TimeScale TUC = TimeScalesFactory.getUTC();&lt;br /&gt;
        &lt;br /&gt;
        // Date of the orbit given in UTC time scale)&lt;br /&gt;
        final AbsoluteDate date = new AbsoluteDate(&amp;quot;2010-01-01T12:00:00.000&amp;quot;, TUC);&lt;br /&gt;
        &lt;br /&gt;
        // Getting the frame with wich will defined the orbit parameters&lt;br /&gt;
        // As for time scale, we will use also a &amp;quot;factory&amp;quot;.&lt;br /&gt;
        final Frame GCRF = FramesFactory.getGCRF();&lt;br /&gt;
&lt;br /&gt;
        // Creation of a keplerian orbit&lt;br /&gt;
        final double sma = 7200.e+3;&lt;br /&gt;
        final double exc = 0.01;&lt;br /&gt;
        final double inc = FastMath.toRadians(98.);&lt;br /&gt;
        final double pa = FastMath.toRadians(0.);&lt;br /&gt;
        final double raan = FastMath.toRadians(0.);&lt;br /&gt;
        final double anm = FastMath.toRadians(0.);&lt;br /&gt;
        final double MU = Constants.WGS84_EARTH_MU;&lt;br /&gt;
        &lt;br /&gt;
        // We use firstly an orbital parameters object&lt;br /&gt;
        final KeplerianParameters kep = new KeplerianParameters(sma, exc, inc, pa, raan, anm, PositionAngle.MEAN, MU);&lt;br /&gt;
        &lt;br /&gt;
        // Then, we create the orbit&lt;br /&gt;
        final KeplerianOrbit iniOrbit = new KeplerianOrbit(kep, GCRF, date);&lt;br /&gt;
        &lt;br /&gt;
        // Printing the Keplerian period&lt;br /&gt;
        System.out.println(&amp;quot;Tper = &amp;quot;+iniOrbit.getKeplerianPeriod()+&amp;quot; s&amp;quot;);&lt;br /&gt;
        &lt;br /&gt;
        // We may use other set of parameters ...&lt;br /&gt;
        final double per = sma*(1.-exc);&lt;br /&gt;
        final double apo = sma*(1.+exc);&lt;br /&gt;
        final ApsisRadiusParameters aps = new ApsisRadiusParameters(per, apo, inc, pa, raan, anm, PositionAngle.MEAN, MU);&lt;br /&gt;
        &lt;br /&gt;
        // Then, we create again the orbit&lt;br /&gt;
        final KeplerianOrbit sameOrbit = new KeplerianOrbit(aps, GCRF, date);&lt;br /&gt;
        &lt;br /&gt;
        // We compare each PV coordinates&lt;br /&gt;
        final PVCoordinates pvOrbit = iniOrbit.getPVCoordinates();&lt;br /&gt;
        final PVCoordinates pvSameOrbit = sameOrbit.getPVCoordinates();&lt;br /&gt;
        &lt;br /&gt;
        System.out.println();&lt;br /&gt;
        System.out.println(&amp;quot;Is both orbits equals : &amp;quot;+pvSameOrbit.getPosition().equals(pvOrbit.getPosition()));&lt;br /&gt;
        System.out.println(&amp;quot;Is both orbits equals : &amp;quot;+pvSameOrbit.getVelocity().equals(pvOrbit.getVelocity()));&lt;br /&gt;
        &lt;br /&gt;
    }&lt;br /&gt;
    &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>