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 class
CoordinateVert.Builder1
static class
CoordinateVert.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 Counters
calcDistributions()
boolean
equals(Object o)
int
estMemorySize()
int
getCode()
int
getIndex(Object val)
List<VertCoordValue>
getLevelSorted()
String
getName()
int
getNCoords()
int
getSize()
Coordinate.Type
getType()
String
getUnit()
Object
getValue(int idx)
List<?>
getValues()
VertCoordType
getVertUnit()
int
hashCode()
boolean
isLayer()
boolean
isPositiveUp()
void
setName(String name)
void
showCoords(Formatter info)
void
showInfo(Formatter info, 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:
getValues
in interfaceCoordinate
-
getIndex
public int getIndex(Object val)
- Specified by:
getIndex
in interfaceCoordinate
-
getValue
public Object getValue(int idx)
- Specified by:
getValue
in interfaceCoordinate
-
getSize
public int getSize()
- Specified by:
getSize
in interfaceCoordinate
-
getNCoords
public int getNCoords()
- Specified by:
getNCoords
in interfaceCoordinate
-
getType
public Coordinate.Type getType()
- Specified by:
getType
in interfaceCoordinate
-
estMemorySize
public int estMemorySize()
- Specified by:
estMemorySize
in interfaceCoordinate
-
getUnit
@Nullable public String getUnit()
- Specified by:
getUnit
in interfaceCoordinate
-
getVertUnit
public VertCoordType getVertUnit()
-
isLayer
public boolean isLayer()
-
isPositiveUp
public boolean isPositiveUp()
-
getCode
public int getCode()
- Specified by:
getCode
in interfaceCoordinate
-
getName
public String getName()
- Specified by:
getName
in interfaceCoordinate
-
setName
public void setName(String name)
-
showInfo
public void showInfo(Formatter info, Indent indent)
- Specified by:
showInfo
in interfaceCoordinate
-
showCoords
public void showCoords(Formatter info)
- Specified by:
showCoords
in interfaceCoordinate
-
calcDistributions
public Counters calcDistributions()
- Specified by:
calcDistributions
in interfaceCoordinate
-
-