Documentation of 'sgtplot.util.Units' Java class
Units
sgtplot.util

Class Units

  • All Implemented Interfaces:
    java.io.Serializable


    public class Units
    extends java.lang.Object
    implements java.io.Serializable
    Units is a static class for converting the units of DependentVariables.
    Since:
    sgtplot 1.0
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int DISTANCE
      base units are distance
      static int NONE
      No base units selected
      static int TEMPERATURE
      base units are temperature
      static int VELOCITY
      base units are velocity
      static int X_AXIS
      check X MetaData for units
      static int Y_AXIS
      check Y MetaData for units
      static int Z_AXIS
      check Z MetaData for units
    • Constructor Summary

      Constructors 
      Constructor and Description
      Units() 
    • Constructor Detail

      • Units

        public Units()
    • Method Detail

      • getBaseUnit

        public static int getBaseUnit(SGTMetaData meta)
        Return the base unit for the meta data.
        Returns:
        TEMPERATURE, VELOCITY, DISTANCE, or NONE
      • convertToBaseUnit

        public static SGTData convertToBaseUnit(SGTData grid,
                                                int base,
                                                int comp)
        Convert data to common units.
        Parameters:
        grid - the data
        base - the base units, TEMPERATURE, VELOCITY, DISTANCE, or NONE
        comp - grid component, X_AXIS, Y_AXIS, or Z_AXIS

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.