|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.noaa.pmel.util.Units
public class Units
Units is a static class for converting the units of DependentVariables.
Field Summary | |
---|---|
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 | |
---|---|
Units()
|
Method Summary | |
---|---|
static SGTData |
convertToBaseUnit(SGTData grid,
int base,
int comp)
Convert data to common units. |
static int |
getBaseUnit(SGTMetaData meta)
Return the base unit for the meta data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int NONE
public static final int TEMPERATURE
public static final int VELOCITY
public static final int DISTANCE
public static final int X_AXIS
public static final int Y_AXIS
public static final int Z_AXIS
Constructor Detail |
---|
public Units()
Method Detail |
---|
public static int getBaseUnit(SGTMetaData meta)
public static SGTData convertToBaseUnit(SGTData grid, int base, int comp)
grid
- the database
- the base units, TEMPERATURE, VELOCITY, DISTANCE, or NONEcomp
- grid component, X_AXIS, Y_AXIS, or Z_AXIS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |