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 classGridVertCoord.LevelCoordA level coordinate
-
Field Summary
Fields Modifier and Type Field Description protected double[]coordValuesprotected double[]factorsvertical pressure factorsprotected booleanisVerticalCoordinateprotected StringlevelNameprotected List<GridVertCoord.LevelCoord>levelslevelsprotected GridTableLookuplookupprotected intseqprotected GridRecordtypicalRecordtypical record for this vertical coordinateprotected Stringunitsunitsprotected booleanusesBounds
-
Constructor Summary
Constructors Modifier Constructor Description protectedGridVertCoord(String name)Create a new GridVertCoord with the given name.protectedGridVertCoord(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 voidaddExtraAttributes(ucar.nc2.Variable v)intcompareTo(GridVertCoord gv)Compare this to anotherdoublegetCoord(int i)protected StringgetLevelDesc()StringgetVariableName()Get the variable nameStringtoString()
-
-
-
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(ucar.nc2.Variable v)
-
compareTo
public int compareTo(GridVertCoord gv)
Compare this to another- Specified by:
compareToin interfaceComparable<GridVertCoord>- Parameters:
gv- the other GridVertCoord- Returns:
- the comparison
-
getCoord
public double getCoord(int i)
-
-