ucar.nc2.ft.fmrc
Class VertCoord
java.lang.Object
ucar.nc2.ft.fmrc.VertCoord
- All Implemented Interfaces:
- Comparable
public class VertCoord
- extends Object
- implements Comparable
Represents a vertical coordinate shared among variables.
getId
public int getId()
setId
public void setId(int id)
getName
public String getName()
setName
public void setName(String name)
getUnits
public String getUnits()
setUnits
public void setUnits(String units)
getValues1
public double[] getValues1()
setValues1
public void setValues1(double[] values)
getValues2
public double[] getValues2()
setValues2
public void setValues2(double[] values)
getSize
public int getSize()
equalsData
public boolean equalsData(VertCoord other)
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interface Comparable
toString
public String toString()
- Overrides:
toString
in class Object
findVertCoord
public static VertCoord findVertCoord(List<VertCoord> vertCoords,
VertCoord want)
normalize
public static void normalize(VertCoord result,
List<VertCoord> vcList)
- Extend result with all the values in the list of VertCoord
Sort the values and recreate the double[] values array.
- Parameters:
result
- extend this coordvcList
- list of VertCoord, may be empty
Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.