Package ucar.visad.quantities
Class VectorQuantity
java.lang.Object
ucar.visad.quantities.Quantity
ucar.visad.quantities.VectorQuantity
- Direct Known Subclasses:
Wind
Provides support for vector quantities. A vector quantity has at least one
component (and usually at least two components) and may have associated with
it a default CoordinateSystem and default domain set.
- Version:
- $Id: VectorQuantity.java,v 1.12 2006/08/09 22:04:54 dmurray Exp $
- Author:
- Steven R. Emmerson
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
VectorQuantity
(RealTupleType realTupleType) Constructs from an existing VisADRealTupleType
.protected
VectorQuantity
(RealType[] realTypes) Constructs from an array of VisADRealType
s.protected
VectorQuantity
(RealType[] realTypes, CoordinateSystem coordinateSystem) Constructs from an array of VisADRealType
s and a default coordinate system transformation.protected
VectorQuantity
(RealType[] realTypes, CoordinateSystem coordinateSystem, Set set) Constructs from an array of VisADRealType
s, a default coordinate system transformation, and a default sampling set. -
Method Summary
Modifier and TypeMethodDescriptionprotected final EarthVectorType
Returns the associatedRealTupleType
.Methods inherited from class ucar.visad.quantities.Quantity
realTupleType, setRealTupleType
-
Constructor Details
-
VectorQuantity
Constructs from an array of VisADRealType
s.- Parameters:
realTypes
- The array ofRealType
s.- Throws:
VisADException
- if a core VisAD failure occurs.
-
VectorQuantity
protected VectorQuantity(RealType[] realTypes, CoordinateSystem coordinateSystem) throws VisADException Constructs from an array of VisADRealType
s and a default coordinate system transformation.- Parameters:
realTypes
- The array ofRealType
s.coordinateSystem
- The default CoordinateSystem of this quantity. May benull
.- Throws:
VisADException
- if a core VisAD failure occurs.
-
VectorQuantity
protected VectorQuantity(RealType[] realTypes, CoordinateSystem coordinateSystem, Set set) throws VisADException Constructs from an array of VisADRealType
s, a default coordinate system transformation, and a default sampling set.- Parameters:
realTypes
- The array ofRealType
s.coordinateSystem
- The default CoordinateSystem of this quantity. May benull
.set
- The default domain set of this quantity. May benull
.- Throws:
VisADException
- if a core VisAD failure occurs.
-
VectorQuantity
Constructs from an existing VisADRealTupleType
.- Parameters:
realTupleType
- An existingRealTupleType
.
-
-
Method Details
-
earthVectorType
Returns the associatedRealTupleType
.- Returns:
- The associated
RealTupleType
. - Throws:
VisADException
- if a core VisAD failure occurs.
-