Package ucar.visad.quantities
Class PolarHorizontalWind.PolarCoordinateSystem
java.lang.Object
visad.CoordinateSystem
ucar.visad.quantities.PolarHorizontalWind.PolarCoordinateSystem
- All Implemented Interfaces:
Serializable
- Enclosing class:
PolarHorizontalWind
Provides support for transforming wind coordinates between polar
and cartesian representations.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPolarCoordinateSystem(RealTupleType refType, Unit speedUnit, Unit directionUnit) Constructs from units for speed and direction.PolarCoordinateSystem(Unit speedUnit, Unit directionUnit) Constructs from units for speed and direction. -
Method Summary
Modifier and TypeMethodDescriptionbooleanTests for semantic equality with an object.double[][]fromReference(double[][] values) Converts wind coordinates from cartesian to polar.float[][]fromReference(float[][] values) Converts wind coordinates from cartesian to polar.double[][]toReference(double[][] values) Converts wind coordinates from polar to cartesian.float[][]toReference(float[][] values) Converts wind coordinates from polar to cartesian.Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
-
Constructor Details
-
PolarCoordinateSystem
Constructs from units for speed and direction.- Parameters:
speedUnit- The unit for speed.directionUnit- The unit for direction.- Throws:
VisADException- Couldn't create necessary VisAD object.
-
PolarCoordinateSystem
public PolarCoordinateSystem(RealTupleType refType, Unit speedUnit, Unit directionUnit) throws VisADException Constructs from units for speed and direction.- Parameters:
refType- The reference typespeedUnit- The unit for speed.directionUnit- The unit for direction.- Throws:
VisADException- Couldn't create necessary VisAD object.
-
-
Method Details
-
toReference
Converts wind coordinates from polar to cartesian.- Specified by:
toReferencein classCoordinateSystem- Parameters:
values- Polar wind coordinates (speed, direction).- Returns:
- Cartesian wind coordinates (u, v).
- Throws:
VisADException- Couldn't create necessary VisAD object.
-
toReference
Converts wind coordinates from polar to cartesian.- Overrides:
toReferencein classCoordinateSystem- Parameters:
values- Polar wind coordinates (speed, direction).- Returns:
- Cartesian wind coordinates (u, v).
- Throws:
VisADException- Couldn't create necessary VisAD object.
-
fromReference
Converts wind coordinates from cartesian to polar.- Specified by:
fromReferencein classCoordinateSystem- Parameters:
values- Cartesian wind coordinates (u, v).- Returns:
- Polar wind coordinates (speed, direction).
- Throws:
VisADException- Couldn't create necessary VisAD object.
-
fromReference
Converts wind coordinates from cartesian to polar.- Overrides:
fromReferencein classCoordinateSystem- Parameters:
values- Cartesian wind coordinates (u, v).- Returns:
- Polar wind coordinates (speed, direction).
- Throws:
VisADException- Couldn't create necessary VisAD object.
-
equals
Tests for semantic equality with an object.- Specified by:
equalsin classCoordinateSystem- Parameters:
object- The object.- Returns:
- True if and only if this object is semantically identical to the specified object.
-