Package ucar.nc2.iosp.grid
Class GridVertCoord
- java.lang.Object
-
- ucar.nc2.iosp.grid.GridVertCoord
-
- All Implemented Interfaces:
Comparable<GridVertCoord>
public class GridVertCoord extends Object implements Comparable<GridVertCoord>
A Vertical Coordinate variable for a Grid variable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
GridVertCoord.LevelCoord
A level coordinate
-
Field Summary
Fields Modifier and Type Field Description protected double[]
coordValues
protected double[]
factors
vertical pressure factorsprotected boolean
isVerticalCoordinate
protected String
levelName
protected List<GridVertCoord.LevelCoord>
levels
levelsprotected GridTableLookup
lookup
protected int
seq
protected GridRecord
typicalRecord
typical record for this vertical coordinateprotected String
units
unitsprotected boolean
usesBounds
-
Constructor Summary
Constructors Modifier Constructor Description protected
GridVertCoord(String name)
Create a new GridVertCoord with the given name.protected
GridVertCoord(List<GridRecord> records, String levelName, GridTableLookup lookup, GridHorizCoordSys hcs)
Create a new GridVertCoord with the appropriate params
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addExtraAttributes(Variable v)
int
compareTo(GridVertCoord gv)
Compare this to anotherdouble
getCoord(int i)
protected String
getLevelDesc()
String
getVariableName()
Get the variable nameString
toString()
-
-
-
Field Detail
-
typicalRecord
protected GridRecord typicalRecord
typical record for this vertical coordinate
-
levelName
protected String levelName
-
lookup
protected GridTableLookup lookup
-
seq
protected int seq
-
coordValues
protected double[] coordValues
-
usesBounds
protected boolean usesBounds
-
isVerticalCoordinate
protected boolean isVerticalCoordinate
-
factors
protected double[] factors
vertical pressure factors
-
units
protected String units
units
-
levels
protected List<GridVertCoord.LevelCoord> levels
levels
-
-
Constructor Detail
-
GridVertCoord
protected GridVertCoord(String name)
Create a new GridVertCoord with the given name. Used by deprecated GridIndex2NC.makeDefinedCoord()- Parameters:
name
- name
-
GridVertCoord
protected GridVertCoord(List<GridRecord> records, String levelName, GridTableLookup lookup, GridHorizCoordSys hcs)
Create a new GridVertCoord with the appropriate params- Parameters:
records
- list of GridRecords that make up this coordlevelName
- the name of the levellookup
- the lookup tablehcs
- Horizontal coordinate
-
-
Method Detail
-
getVariableName
public String getVariableName()
Get the variable name- Returns:
- the variable name
-
getLevelDesc
protected String getLevelDesc()
-
addExtraAttributes
protected void addExtraAttributes(Variable v)
-
compareTo
public int compareTo(GridVertCoord gv)
Compare this to another- Specified by:
compareTo
in interfaceComparable<GridVertCoord>
- Parameters:
gv
- the other GridVertCoord- Returns:
- the comparison
-
getCoord
public double getCoord(int i)
-
-