EME2000Provider.java

  1. /* Copyright 2002-2025 CS GROUP
  2.  * Licensed to CS GROUP (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.hipparchus.geometry.euclidean.threed.Rotation;
  19. import org.hipparchus.geometry.euclidean.threed.RotationConvention;
  20. import org.hipparchus.geometry.euclidean.threed.Vector3D;
  21. import org.hipparchus.util.FastMath;
  22. import org.orekit.time.AbsoluteDate;
  23. import org.orekit.utils.Constants;

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

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

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

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

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

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

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

  49.     }

  50. }