visad.bom
Class WindPolarCoordinateSystem

java.lang.Object
  extended by visad.CoordinateSystem
      extended by visad.bom.WindPolarCoordinateSystem
All Implemented Interfaces:
java.io.Serializable

public class WindPolarCoordinateSystem
extends CoordinateSystem

WindPolarCoordinateSystem is the VisAD CoordinateSystem class for (Longitude, Radius) with a Cartesian Reference, and with Longitude in degrees.

See Also:
Serialized Form

Constructor Summary
WindPolarCoordinateSystem()
          simple constructor for "static" conversions
WindPolarCoordinateSystem(RealTupleType reference)
          construct a CoordinateSystem for (longitude, radius) relative to a 2-D Cartesian reference; this constructor supplies units = {CommonUnit.Degree, CommonUnit.meterPerSecond} to the super constructor, in order to ensure Unit compatibility with its use of trigonometric functions
WindPolarCoordinateSystem(RealTupleType reference, Unit[] units)
          constructor to set units
 
Method Summary
 boolean equals(java.lang.Object cs)
          check for equality of CoordinateSystem objects; must test for cs == null
 double[][] fromReference(double[][] tuples)
          convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array
 float[][] fromReference(float[][] tuples)
          convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array for efficiency, subclasses should override this implementation
 double[][] toReference(double[][] tuples)
          convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array
 float[][] toReference(float[][] tuples)
          convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array; for efficiency, subclasses should override this implementation
 
Methods inherited from class visad.CoordinateSystem
canConvert, checkTable, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindPolarCoordinateSystem

public WindPolarCoordinateSystem(RealTupleType reference)
                          throws VisADException
construct a CoordinateSystem for (longitude, radius) relative to a 2-D Cartesian reference; this constructor supplies units = {CommonUnit.Degree, CommonUnit.meterPerSecond} to the super constructor, in order to ensure Unit compatibility with its use of trigonometric functions

Throws:
VisADException

WindPolarCoordinateSystem

public WindPolarCoordinateSystem(RealTupleType reference,
                                 Unit[] units)
                          throws VisADException
constructor to set units

Throws:
VisADException

WindPolarCoordinateSystem

public WindPolarCoordinateSystem()
                          throws VisADException
simple constructor for "static" conversions

Throws:
VisADException
Method Detail

toReference

public double[][] toReference(double[][] tuples)
                       throws VisADException
Description copied from class: CoordinateSystem
convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array

Specified by:
toReference in class CoordinateSystem
Throws:
VisADException

fromReference

public double[][] fromReference(double[][] tuples)
                         throws VisADException
Description copied from class: CoordinateSystem
convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array

Specified by:
fromReference in class CoordinateSystem
Throws:
VisADException

toReference

public float[][] toReference(float[][] tuples)
                      throws VisADException
Description copied from class: CoordinateSystem
convert RealTuple values to Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array; for efficiency, subclasses should override this implementation

Overrides:
toReference in class CoordinateSystem
Throws:
VisADException

fromReference

public float[][] fromReference(float[][] tuples)
                        throws VisADException
Description copied from class: CoordinateSystem
convert RealTuple values from Reference coordinates; for efficiency, input and output values are passed as double[][] arrays rather than RealTuple[] arrays; the array organization is double[tuple_dimension][number_of_tuples]; can modify and return argument array for efficiency, subclasses should override this implementation

Overrides:
fromReference in class CoordinateSystem
Throws:
VisADException

equals

public boolean equals(java.lang.Object cs)
Description copied from class: CoordinateSystem
check for equality of CoordinateSystem objects; must test for cs == null

Specified by:
equals in class CoordinateSystem