Class PolarHorizontalWind.PolarCoordinateSystem

java.lang.Object
visad.CoordinateSystem
ucar.visad.quantities.PolarHorizontalWind.PolarCoordinateSystem
All Implemented Interfaces:
Serializable
Enclosing class:
PolarHorizontalWind

public static final class PolarHorizontalWind.PolarCoordinateSystem extends CoordinateSystem
Provides support for transforming wind coordinates between polar and cartesian representations.
See Also:
  • Constructor Details

    • PolarCoordinateSystem

      public PolarCoordinateSystem(Unit speedUnit, Unit directionUnit) throws VisADException
      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 type
      speedUnit - The unit for speed.
      directionUnit - The unit for direction.
      Throws:
      VisADException - Couldn't create necessary VisAD object.
  • Method Details

    • toReference

      public double[][] toReference(double[][] values) throws VisADException
      Converts wind coordinates from polar to cartesian.
      Specified by:
      toReference in class CoordinateSystem
      Parameters:
      values - Polar wind coordinates (speed, direction).
      Returns:
      Cartesian wind coordinates (u, v).
      Throws:
      VisADException - Couldn't create necessary VisAD object.
    • toReference

      public float[][] toReference(float[][] values) throws VisADException
      Converts wind coordinates from polar to cartesian.
      Overrides:
      toReference in class CoordinateSystem
      Parameters:
      values - Polar wind coordinates (speed, direction).
      Returns:
      Cartesian wind coordinates (u, v).
      Throws:
      VisADException - Couldn't create necessary VisAD object.
    • fromReference

      public double[][] fromReference(double[][] values) throws VisADException
      Converts wind coordinates from cartesian to polar.
      Specified by:
      fromReference in class CoordinateSystem
      Parameters:
      values - Cartesian wind coordinates (u, v).
      Returns:
      Polar wind coordinates (speed, direction).
      Throws:
      VisADException - Couldn't create necessary VisAD object.
    • fromReference

      public float[][] fromReference(float[][] values) throws VisADException
      Converts wind coordinates from cartesian to polar.
      Overrides:
      fromReference in class CoordinateSystem
      Parameters:
      values - Cartesian wind coordinates (u, v).
      Returns:
      Polar wind coordinates (speed, direction).
      Throws:
      VisADException - Couldn't create necessary VisAD object.
    • equals

      public boolean equals(Object object)
      Tests for semantic equality with an object.
      Specified by:
      equals in class CoordinateSystem
      Parameters:
      object - The object.
      Returns:
      True if and only if this object is semantically identical to the specified object.