ucar.nc2.ft.fmrc
Class VertCoord

java.lang.Object
  extended by ucar.nc2.ft.fmrc.VertCoord
All Implemented Interfaces:
Comparable

public class VertCoord
extends Object
implements Comparable

Represents a vertical coordinate shared among variables.


Method Summary
 int compareTo(Object o)
           
 boolean equalsData(VertCoord other)
           
static VertCoord findVertCoord(List<VertCoord> vertCoords, VertCoord want)
           
 int getId()
           
 String getName()
           
 int getSize()
           
 String getUnits()
           
 double[] getValues1()
           
 double[] getValues2()
           
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.
 void setId(int id)
           
 void setName(String name)
           
 void setUnits(String units)
           
 void setValues1(double[] values)
           
 void setValues2(double[] values)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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 coord
vcList - list of VertCoord, may be empty


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.