1 /* Copyright 2002-2021 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.files.ccsds.definitions;
18
19 import org.orekit.utils.units.Unit;
20
21 /**
22 * Units used in CCSDS messages.
23 *
24 * @author Luc Maisonobe
25 */
26 public class Units {
27
28 /** Seconds reciprocal unit. */
29 public static final Unit ONE_PER_S = Unit.parse("1/s");
30
31 /** kg.m² unit. */
32 public static final Unit KG_M2 = Unit.parse("kg.m²");
33
34 /** km³/s² unit. */
35 public static final Unit KM3_PER_S2 = Unit.parse("km³/s²");
36
37 /** m² unit. */
38 public static final Unit M2 = Unit.parse("m²");
39
40 /** #/year unit. */
41 public static final Unit NB_PER_Y = Unit.parse("#/yr");
42
43 /** Square kilometers units. */
44 public static final Unit KM2 = Unit.parse("km²");
45
46 /** Kilometers par second units. */
47 public static final Unit KM_PER_S = Unit.parse("km/s");
48
49 /** Kilometers par square second units. */
50 public static final Unit KM_PER_S2 = Unit.parse("km/s²");
51
52 /** Square kilometers par second units. */
53 public static final Unit KM2_PER_S = Unit.parse("km²/s");
54
55 /** Square kilometers per square second units. */
56 public static final Unit KM2_PER_S2 = Unit.parse("km²/s²");
57
58 /** Revolutions per day unit. */
59 public static final Unit REV_PER_DAY = Unit.parse("rev/d");
60
61 /** Scaled revolutions per square day unit. */
62 public static final Unit REV_PER_DAY2_SCALED = Unit.parse("2rev/d²");
63
64 /** Scaled revolutions per cubic day divieded by 6 unit. */
65 public static final Unit REV_PER_DAY3_SCALED = Unit.parse("6rev/d³");
66
67 /** Degree per second unit. */
68 public static final Unit DEG_PER_S = Unit.parse("°/s");
69
70 /** Newton metre unit. */
71 public static final Unit N_M = Unit.parse("N.m");
72
73 /** Nano Tesla unit. */
74 public static final Unit NANO_TESLA = Unit.parse("nT");
75
76 /** HectoPascal unit. */
77 public static final Unit HECTO_PASCAL = Unit.parse("hPa");
78
79 /** Hertz per second unit. */
80 public static final Unit HZ_PER_S = Unit.parse("Hz/s");
81
82 /** Private constructor for a utility class.
83 */
84 private Units() {
85 // nothing to do
86 }
87
88 }