SsrIm201Data.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.gnss.metric.messages.ssr.subtype;

  18. import org.orekit.gnss.metric.messages.ssr.SsrData;

  19. /**
  20.  * Container for SSR IM201 data.
  21.  * <p>
  22.  * One instance of this class corresponds to one ionospheric layer.
  23.  * </p>
  24.  * @author Bryan Cazabonne
  25.  * @since 11.0
  26.  */
  27. public class SsrIm201Data extends SsrData {

  28.     /** Height of the ionospheric layer [m]. */
  29.     private double heightIonosphericLayer;

  30.     /** Spherical harmonics degree. */
  31.     private int sphericalHarmonicsDegree;

  32.     /** Spherical harmonics order. */
  33.     private int sphericalHarmonicsOrder;

  34.     /** Cosine parameters of spherical harmonics expansion of degree N and order M. */
  35.     private double[][] cnm;

  36.     /** Sine parameters of spherical harmonics expansion of degree N and order M. */
  37.     private double[][] snm;

  38.     /** Constructor. */
  39.     public SsrIm201Data() {
  40.         // Noting to do ...
  41.     }

  42.     /**
  43.      * Get the height of the ionospheric layer.
  44.      * @return the height of the ionospheric layer in meters
  45.      */
  46.     public double getHeightIonosphericLayer() {
  47.         return heightIonosphericLayer;
  48.     }

  49.     /**
  50.      * Set the height of the ionospheric layer.
  51.      * @param heightIonosphericLayer the height to set in meters
  52.      */
  53.     public void setHeightIonosphericLayer(final double heightIonosphericLayer) {
  54.         this.heightIonosphericLayer = heightIonosphericLayer;
  55.     }

  56.     /**
  57.      * Get the degree of spherical harmonic expansion.
  58.      * @return the degree of spherical harmonic expansion
  59.      */
  60.     public int getSphericalHarmonicsDegree() {
  61.         return sphericalHarmonicsDegree;
  62.     }

  63.     /**
  64.      * Set the degree of spherical harmonic expansion.
  65.      * @param sphericalHarmonicsDegree the degree to set
  66.      */
  67.     public void setSphericalHarmonicsDegree(final int sphericalHarmonicsDegree) {
  68.         this.sphericalHarmonicsDegree = sphericalHarmonicsDegree;
  69.     }

  70.     /**
  71.      * Get the order of spherical harmonic expansion.
  72.      * @return the order the order of spherical harmonic expansion
  73.      */
  74.     public int getSphericalHarmonicsOrder() {
  75.         return sphericalHarmonicsOrder;
  76.     }

  77.     /**
  78.      * Set the order of spherical harmonic expansion.
  79.      * @param sphericalHarmonicsOrder the order to set
  80.      */
  81.     public void setSphericalHarmonicsOrder(final int sphericalHarmonicsOrder) {
  82.         this.sphericalHarmonicsOrder = sphericalHarmonicsOrder;
  83.     }

  84.     /**
  85.      * Get the cosine parameters of spherical harmonics expansion of degree N and order M.
  86.      * <p>
  87.      * The size of the array is (N + 1) x (M + 1)
  88.      * </p>
  89.      * @return the cosine parameters in TECU
  90.      */
  91.     public double[][] getCnm() {
  92.         return cnm.clone();
  93.     }

  94.     /**
  95.      * Set the cosine parameters of spherical harmonics expansion of degree N and order M.
  96.      * @param cnm the parameters to set
  97.      */
  98.     public void setCnm(final double[][] cnm) {
  99.         this.cnm = cnm.clone();
  100.     }

  101.     /**
  102.      * Get the sine parameters of spherical harmonics expansion of degree N and order M.
  103.      * <p>
  104.      * The size of the array is (N + 1) x (M + 1)
  105.      * </p>
  106.      * @return the sine parameters in TECU
  107.      */
  108.     public double[][] getSnm() {
  109.         return snm.clone();
  110.     }

  111.     /**
  112.      * Set the sine parameters of spherical harmonics expansion of degree N and order M.
  113.      * @param snm the parameters to set
  114.      */
  115.     public void setSnm(final double[][] snm) {
  116.         this.snm = snm.clone();
  117.     }

  118. }