EME2000Provider.java

  1. /* Copyright 2002-2013 CS Systèmes d'Information
  2.  * Licensed to CS Systèmes d'Information (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.frames;

  18. import org.apache.commons.math3.geometry.euclidean.threed.Rotation;
  19. import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
  20. import org.apache.commons.math3.util.FastMath;
  21. import org.orekit.time.AbsoluteDate;
  22. import org.orekit.utils.Constants;

  23. /** EME2000 frame : mean equator at J2000.0.
  24.  * <p>This frame was the standard inertial reference prior to GCRF. It was defined
  25.  * using Lieske precession-nutation model for Earth. This frame has been superseded
  26.  * by GCRF which is implicitly defined from a few hundred quasars coordinates.<p>
  27.  * <p>The transformation between GCRF and EME2000 is a constant rotation bias.</p>
  28.  * @author Luc Maisonobe
  29.  */
  30. class EME2000Provider extends FixedTransformProvider {

  31.     /** Serializable UID. */
  32.     private static final long serialVersionUID = -6134137187835219727L;

  33.     /** Obliquity of the ecliptic. */
  34.     private static final double EPSILON_0 = 84381.448 * Constants.ARC_SECONDS_TO_RADIANS;

  35.     /** Bias in longitude. */
  36.     private static final double D_PSI_B = -0.041775 * Constants.ARC_SECONDS_TO_RADIANS;

  37.     /** Bias in obliquity. */
  38.     private static final double D_EPSILON_B = -0.0068192 * Constants.ARC_SECONDS_TO_RADIANS;

  39.     /** Right Ascension of the 2000 equinox in ICRS frame. */
  40.     private static final double ALPHA_0 = -0.0146 * Constants.ARC_SECONDS_TO_RADIANS;

  41.     /** Simple constructor.
  42.      */
  43.     protected EME2000Provider() {

  44.         // build the bias transform
  45.         super(new Transform(AbsoluteDate.J2000_EPOCH,
  46.                             new Rotation(Vector3D.PLUS_I, D_EPSILON_B).
  47.                             applyTo(new Rotation(Vector3D.PLUS_J, -D_PSI_B * FastMath.sin(EPSILON_0)).
  48.                                     applyTo(new Rotation(Vector3D.PLUS_K, -ALPHA_0)))));

  49.     }

  50. }