Package ucar.nc2.grib.coord
Class CoordinateVert
- java.lang.Object
-
- ucar.nc2.grib.coord.CoordinateVert
-
- All Implemented Interfaces:
Coordinate
@Immutable public class CoordinateVert extends Object implements Coordinate
Vertical GRIB coordinates Effectively immutable; setName() can only be called once.- Since:
- 11/27/13
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoordinateVert.Builder1static classCoordinateVert.Builder2-
Nested classes/interfaces inherited from interface ucar.nc2.grib.coord.Coordinate
Coordinate.Type
-
-
Constructor Summary
Constructors Constructor Description CoordinateVert(int code, VertCoordType vunit, List<VertCoordValue> levelSorted)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ucar.nc2.util.CounterscalcDistributions()booleanequals(Object o)intestMemorySize()intgetCode()intgetIndex(Object val)List<VertCoordValue>getLevelSorted()StringgetName()intgetNCoords()intgetSize()Coordinate.TypegetType()StringgetUnit()ObjectgetValue(int idx)List<?>getValues()VertCoordTypegetVertUnit()inthashCode()booleanisLayer()booleanisPositiveUp()voidsetName(String name)voidshowCoords(Formatter info)voidshowInfo(Formatter info, ucar.nc2.util.Indent indent)
-
-
-
Constructor Detail
-
CoordinateVert
public CoordinateVert(int code, VertCoordType vunit, List<VertCoordValue> levelSorted)
-
-
Method Detail
-
getLevelSorted
public List<VertCoordValue> getLevelSorted()
-
getValues
public List<?> getValues()
- Specified by:
getValuesin interfaceCoordinate
-
getIndex
public int getIndex(Object val)
- Specified by:
getIndexin interfaceCoordinate
-
getValue
public Object getValue(int idx)
- Specified by:
getValuein interfaceCoordinate
-
getSize
public int getSize()
- Specified by:
getSizein interfaceCoordinate
-
getNCoords
public int getNCoords()
- Specified by:
getNCoordsin interfaceCoordinate
-
getType
public Coordinate.Type getType()
- Specified by:
getTypein interfaceCoordinate
-
estMemorySize
public int estMemorySize()
- Specified by:
estMemorySizein interfaceCoordinate
-
getUnit
@Nullable public String getUnit()
- Specified by:
getUnitin interfaceCoordinate
-
getVertUnit
public VertCoordType getVertUnit()
-
isLayer
public boolean isLayer()
-
isPositiveUp
public boolean isPositiveUp()
-
getCode
public int getCode()
- Specified by:
getCodein interfaceCoordinate
-
getName
public String getName()
- Specified by:
getNamein interfaceCoordinate
-
setName
public void setName(String name)
-
showInfo
public void showInfo(Formatter info, ucar.nc2.util.Indent indent)
- Specified by:
showInfoin interfaceCoordinate
-
showCoords
public void showCoords(Formatter info)
- Specified by:
showCoordsin interfaceCoordinate
-
calcDistributions
public ucar.nc2.util.Counters calcDistributions()
- Specified by:
calcDistributionsin interfaceCoordinate
-
-