CreateFrames : Différence entre versions
De Wiki
(Page créée avec « <syntaxhighlight lang="java"> public class CreateFrames { public static void main(String[] args) throws PatriusException { // Patrius Dataset initialization... ») |
(Aucune différence)
|
Version actuelle en date du 13 février 2018 à 10:08
public class CreateFrames { public static void main(String[] args) throws PatriusException { // Patrius Dataset initialization (needed for example to get the UTC time) PatriusDataset.addResourcesFromPatriusDataset() ; // GCRF frame final Frame gcrf = FramesFactory.getGCRF(); // Recovery of the UTC time scale using a "factory" (not to duplicate such unique object) final TimeScale TUC = TimeScalesFactory.getUTC(); // Date of the orbit given in UTC time scale) final AbsoluteDate date = new AbsoluteDate("2010-01-01T12:00:00.000", TUC); // H0-n frame : n = 9s and reference longitude = 5 degrees final Frame h0n = FramesFactory.getH0MinusN("Test", date, 9, FastMath.toRadians(5.)); // Printing frame informaton System.out.println(); System.out.println("GCRF name: "+gcrf.getName()); System.out.println("H0-n name: "+h0n.getName()); } }