EOPFittedModel.java

  1. /* Copyright 2022-2025 Luc Maisonobe
  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.orekit.utils.SecularAndHarmonic;

  19. /** Container for fitted model for Earth Orientation Parameters.
  20.  * @see PredictedEOPHistory
  21.  * @see EOPFitter
  22.  * @since 12.0
  23.  * @author Luc Maisonobe
  24.  */
  25. public class EOPFittedModel {

  26.     /** Fitted model for dut1 and LOD. */
  27.     private final SecularAndHarmonic dut1;

  28.     /** Fitted model for pole x component. */
  29.     private final SecularAndHarmonic xP;

  30.     /** Fitted model for pole y component. */
  31.     private final SecularAndHarmonic yP;

  32.     /** Fitted model for nutation x component. */
  33.     private final SecularAndHarmonic dx;

  34.     /** Fitted model for nutation y component. */
  35.     private final SecularAndHarmonic dy;

  36.     /** Simple constructor.
  37.      * @param dut1 fitted model for dut1 and LOD
  38.      * @param xP fitted model for pole x component
  39.      * @param yP fitted model for pole y component
  40.      * @param dx fitted model for nutation x component
  41.      * @param dy fitted model for nutation y component
  42.      */
  43.     public EOPFittedModel(final SecularAndHarmonic dut1,
  44.                      final SecularAndHarmonic xP, final SecularAndHarmonic yP,
  45.                      final SecularAndHarmonic dx, final SecularAndHarmonic dy) {
  46.         this.dut1 = dut1;
  47.         this.xP   = xP;
  48.         this.yP   = yP;
  49.         this.dx   = dx;
  50.         this.dy   = dy;
  51.     }

  52.     /** Get the fitted secular and harmonics model for DUT1/LOD.
  53.      * <p>
  54.      * LOD can be computed from DUT1 as {@code -Constants.JULIAN_DAY * getDUT1().osculatingDerivative(date)}
  55.      * </p>
  56.      * @return fitted secular and harmonics model for DUT1/LOD
  57.      */
  58.     public SecularAndHarmonic getDUT1() {
  59.         return dut1;
  60.     }

  61.     /** Get the fitted secular and harmonics model for pole x component.
  62.      * @return fitted secular and harmonics model for pole x component
  63.      */
  64.     public SecularAndHarmonic getXp() {
  65.         return xP;
  66.     }

  67.     /** Get the fitted secular and harmonics model for pole y component.
  68.      * @return fitted secular and harmonics model for pole y component
  69.      */
  70.     public SecularAndHarmonic getYp() {
  71.         return yP;
  72.     }

  73.     /** Get the fitted secular and harmonics model for nutation x component.
  74.      * @return fitted secular and harmonics model for nutation x component
  75.      */
  76.     public SecularAndHarmonic getDx() {
  77.         return dx;
  78.     }

  79.     /** Get the fitted secular and harmonics model for nutation y component.
  80.      * @return fitted secular and harmonics model for nutation y component
  81.      */
  82.     public SecularAndHarmonic getDy() {
  83.         return dy;
  84.     }

  85. }