visad
Class EarthVectorType

java.lang.Object
  extended by visad.MathType
      extended by visad.TupleType
          extended by visad.RealTupleType
              extended by visad.RealVectorType
                  extended by visad.EarthVectorType
All Implemented Interfaces:
Serializable

public class EarthVectorType
extends RealVectorType

EarthVectorType is the VisAD data type for 2-D and 3-D wind or current vectors in Units convertable with meter / second whose first component is parallel to latitude lines, positive east, and whose second component is parallel to longitude lines, positive north. It assumes vertical coordinates transform nearly flat, so the optional third vertical wind component does not transform.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class visad.RealTupleType
Generic2D, Generic3D, LatitudeLongitudeAltitude, LatitudeLongitudeTuple, SpatialCartesian2DTuple, SpatialCartesian3DTuple, SpatialEarth2DTuple, SpatialEarth3DTuple, Time1DTuple
 
Constructor Summary
EarthVectorType(RealType a)
           
EarthVectorType(RealType[] types)
           
EarthVectorType(RealType[] types, CoordinateSystem coord_sys)
           
EarthVectorType(RealType a, RealType b)
           
EarthVectorType(RealType a, RealType b, RealType c)
           
EarthVectorType(RealType a, RealType b, RealType c, RealType d)
           
 
Method Summary
 double[][] transformVectors(RealTupleType out, CoordinateSystem coord_out, Unit[] units_out, ErrorEstimate[] loc_errors_out, RealTupleType in, CoordinateSystem coord_in, Unit[] units_in, CoordinateSystem coord_vector, ErrorEstimate[] errors_in, ErrorEstimate[] errors_out, double[][] inloc, double[][] outloc, double[][] value)
          transform an array of vector values from a field, based on a coordinate transform of the field domain.
 float[][] transformVectors(RealTupleType out, CoordinateSystem coord_out, Unit[] units_out, ErrorEstimate[] loc_errors_out, RealTupleType in, CoordinateSystem coord_in, Unit[] units_in, CoordinateSystem coord_vector, ErrorEstimate[] errors_in, ErrorEstimate[] errors_out, float[][] inloc, float[][] outloc, float[][] value)
          transform an array of vector values from a field, based on a coordinate transform of the field domain.
 
Methods inherited from class visad.RealVectorType
transformVectors, transformVectors
 
Methods inherited from class visad.RealTupleType
binary, buildShadowType, equalsExceptName, equalsExceptNameButUnits, getCoordinateSystem, getDefaultSet, getDefaultUnits, makeArray, makeArray, makeArray, makeArray, missingData, prettyString, setDefaultSet, unary
 
Methods inherited from class visad.TupleType
__getitem__, __len__, cloneDerivative, equals, getComponent, getComponents, getDimension, getFlat, getIndex, getIndex, getNumberOfRealComponents, getRealComponents, hashCode
 
Methods inherited from class visad.MathType
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EarthVectorType

public EarthVectorType(RealType[] types)
                throws VisADException
Throws:
VisADException

EarthVectorType

public EarthVectorType(RealType[] types,
                       CoordinateSystem coord_sys)
                throws VisADException
Throws:
VisADException

EarthVectorType

public EarthVectorType(RealType a)
                throws VisADException
Throws:
VisADException

EarthVectorType

public EarthVectorType(RealType a,
                       RealType b)
                throws VisADException
Throws:
VisADException

EarthVectorType

public EarthVectorType(RealType a,
                       RealType b,
                       RealType c)
                throws VisADException
Throws:
VisADException

EarthVectorType

public EarthVectorType(RealType a,
                       RealType b,
                       RealType c,
                       RealType d)
                throws VisADException
Throws:
VisADException
Method Detail

transformVectors

public double[][] transformVectors(RealTupleType out,
                                   CoordinateSystem coord_out,
                                   Unit[] units_out,
                                   ErrorEstimate[] loc_errors_out,
                                   RealTupleType in,
                                   CoordinateSystem coord_in,
                                   Unit[] units_in,
                                   CoordinateSystem coord_vector,
                                   ErrorEstimate[] errors_in,
                                   ErrorEstimate[] errors_out,
                                   double[][] inloc,
                                   double[][] outloc,
                                   double[][] value)
                            throws VisADException,
                                   RemoteException
transform an array of vector values from a field, based on a coordinate transform of the field domain. This may use the Jacobean of the coordinate transform, but may be more complex. For example, vectors in m/s would not transform for a simple rescaling transform. Or the transform may be to a moving coordinate system. out, coord_out, units_out, in, coord_in, units_in are the arguments to the corresponding call to transformCoordinates; loc_errors_out are the ErrorEstimates for loc from that call; inloc and outloc contain the input and output values from the corresponding call to transformCoordinates; coord_vector and errors_in are the CoordinateSystem and ErrorEstimates associated with values; value are the vector values (already resampled at loc); return new value array; return transformed ErrorEstimates in errors_out array

Specified by:
transformVectors in class RealVectorType
Throws:
VisADException
RemoteException

transformVectors

public float[][] transformVectors(RealTupleType out,
                                  CoordinateSystem coord_out,
                                  Unit[] units_out,
                                  ErrorEstimate[] loc_errors_out,
                                  RealTupleType in,
                                  CoordinateSystem coord_in,
                                  Unit[] units_in,
                                  CoordinateSystem coord_vector,
                                  ErrorEstimate[] errors_in,
                                  ErrorEstimate[] errors_out,
                                  float[][] inloc,
                                  float[][] outloc,
                                  float[][] value)
                           throws VisADException,
                                  RemoteException
transform an array of vector values from a field, based on a coordinate transform of the field domain. This may use the Jacobean of the coordinate transform, but may be more complex. For example, vectors in m/s would not transform for a simple rescaling transform. Or the transform may be to a moving coordinate system. out, coord_out, units_out, in, coord_in, units_in are the arguments to the corresponding call to transformCoordinates; loc_errors_out are the ErrorEstimates for loc from that call; inloc and outloc contain the input and output values from the corresponding call to transformCoordinates; coord_vector and errors_in are the CoordinateSystem and ErrorEstimates associated with values; value are the vector values (already resampled at loc); return new value array; return transformed ErrorEstimates in errors_out array

Overrides:
transformVectors in class RealVectorType
Throws:
VisADException
RemoteException