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.files.rinex.navigation;
18
19 import org.orekit.gnss.SatelliteSystem;
20 import org.orekit.propagation.analytical.gnss.data.GNSSConstants;
21 import org.orekit.time.AbsoluteDate;
22 import org.orekit.utils.units.Unit;
23
24 /** Base container for data contained in a ionosphere message.
25 * @author Luc Maisonobe
26 * @since 12.0
27 */
28 public class IonosphereBaseMessage extends TypeSvMessage {
29
30 /** Converter for Klobuchar parameters. */
31 public static final Unit SC = Unit.RADIAN.scale("sc", GNSSConstants.GNSS_PI);
32
33 /** Converter for Klobuchar parameters. */
34 public static final Unit S_PER_SC_N0 = Unit.SECOND;
35
36 /** Converter for Klobuchar parameters. */
37 public static final Unit S_PER_SC_N1 = S_PER_SC_N0.divide("s/sc", SC);
38
39 /** Converter for Klobuchar parameters. */
40 public static final Unit S_PER_SC_N2 = S_PER_SC_N1.divide("s/sc²", SC);
41
42 /** Converter for Klobuchar parameters. */
43 public static final Unit S_PER_SC_N3 = S_PER_SC_N2.divide("s/sc³", SC);
44
45 /** Transmit time. */
46 private AbsoluteDate transmitTime;
47
48 /** Simple constructor.
49 * @param system satellite system
50 * @param prn satellite number
51 * @param type navigation message type
52 * @param subType navigation message subtype
53 */
54 public IonosphereBaseMessage(final SatelliteSystem system, final int prn,
55 final String type, final String subType) {
56 super(system, prn, type, subType);
57 }
58
59 /** {@inheritDoc} */
60 @Override
61 public AbsoluteDate getDate() {
62 return transmitTime;
63 }
64
65 /** Get the transmit time.
66 * @return the transmit time
67 */
68 public AbsoluteDate getTransmitTime() {
69 return transmitTime;
70 }
71
72 /** Set the transmit time.
73 * @param transmitTime the transmit time to set
74 */
75 public void setTransmitTime(final AbsoluteDate transmitTime) {
76 this.transmitTime = transmitTime;
77 }
78
79 }