|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.noaa.pmel.util.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 |
equals, 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
|
SGT Home | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |