Units.java

  1. /* Copyright 2002-2022 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. import org.orekit.utils.units.Unit;

  19. /**
  20.  * Units used in CCSDS messages.
  21.  *
  22.  * @author Luc Maisonobe
  23.  */
  24. public class Units {

  25.     /** Seconds reciprocal unit. */
  26.     public static final Unit ONE_PER_S = Unit.parse("1/s");

  27.     /** kg.m² unit. */
  28.     public static final Unit KG_M2 = Unit.parse("kg.m²");

  29.     /** km³/s² unit. */
  30.     public static final Unit KM3_PER_S2 = Unit.parse("km³/s²");

  31.     /** m² unit. */
  32.     public static final Unit M2 = Unit.parse("m²");

  33.     /** #/year unit. */
  34.     public static final Unit NB_PER_Y = Unit.parse("#/yr");

  35.     /** Square kilometers units. */
  36.     public static final Unit KM2 = Unit.parse("km²");

  37.     /** Kilometers par second units. */
  38.     public static final Unit KM_PER_S = Unit.parse("km/s");

  39.     /** Kilometers par square second units. */
  40.     public static final Unit KM_PER_S2 = Unit.parse("km/s²");

  41.     /** Square kilometers par second units. */
  42.     public static final Unit KM2_PER_S = Unit.parse("km²/s");

  43.     /** Square kilometers per square second units. */
  44.     public static final Unit KM2_PER_S2 = Unit.parse("km²/s²");

  45.     /** Revolutions per day unit. */
  46.     public static final Unit REV_PER_DAY = Unit.parse("rev/d");

  47.     /** Scaled revolutions per square day unit. */
  48.     public static final Unit REV_PER_DAY2_SCALED = Unit.parse("2rev/d²");

  49.     /** Scaled revolutions per cubic day divieded by 6 unit. */
  50.     public static final Unit REV_PER_DAY3_SCALED = Unit.parse("6rev/d³");

  51.     /** Degree per second unit. */
  52.     public static final Unit DEG_PER_S = Unit.parse("°/s");

  53.     /** Newton metre unit. */
  54.     public static final Unit N_M = Unit.parse("N.m");

  55.     /** Nano Tesla unit. */
  56.     public static final Unit NANO_TESLA = Unit.parse("nT");

  57.     /** HectoPascal unit. */
  58.     public static final Unit HECTO_PASCAL = Unit.parse("hPa");

  59.     /** Hertz per second unit. */
  60.     public static final Unit HZ_PER_S = Unit.parse("Hz/s");

  61.     /** Private constructor for a utility class.
  62.      */
  63.     private Units() {
  64.         // nothing to do
  65.     }

  66. }