Package ucar.nc2.iosp.grads
Class GradsDimension
- java.lang.Object
-
- ucar.nc2.iosp.grads.GradsDimension
-
- Direct Known Subclasses:
GradsEnsembleDimension
,GradsTimeDimension
public class GradsDimension extends Object
Hold information about a GradDimension
-
-
Constructor Summary
Constructors Constructor Description GradsDimension(String name, int size, String mapping)
Make a new GradsDimension from the values
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLevel(String level)
Add a level to the list of levelsprotected List<String>
getLevels()
Get the levelsString
getName()
Get the name of this dimensionint
getSize()
Get the size of this dimensionString
getType()
Get the mapping typeString
getUnit()
Get the unitsdouble[]
getValues()
Get the valuesprotected double[]
makeLevelValues()
Make the level values from the specificationsprotected void
setUnit(String unit)
Set the unitString
toString()
Return a String representation of this object
-
-
-
Field Detail
-
LINEAR
public static final String LINEAR
linear type mapping- See Also:
- Constant Field Values
-
LEVELS
public static final String LEVELS
levels type mapping- See Also:
- Constant Field Values
-
-
Method Detail
-
addLevel
protected void addLevel(String level)
Add a level to the list of levels- Parameters:
level
- level to add
-
getName
public String getName()
Get the name of this dimension- Returns:
- the name
-
getSize
public int getSize()
Get the size of this dimension- Returns:
- the size
-
getValues
public double[] getValues()
Get the values- Returns:
- the values
-
getUnit
public String getUnit()
Get the units- Returns:
- the units
-
setUnit
protected void setUnit(String unit)
Set the unit- Parameters:
unit
- the unit
-
getType
public String getType()
Get the mapping type- Returns:
- the mapping type
-
makeLevelValues
protected double[] makeLevelValues()
Make the level values from the specifications- Returns:
- the level values
-
-