public final class StuveCoordinateSystem extends AerologicalCoordinateSystem
Provides support for converting between the (x,y) coordinates on a skew T - log P diagram and (pressure,temperature) coordinates.
Instances of this class are immutable.
Modifier and Type | Field and Description |
---|---|
static visad.Real |
DEFAULT_MAXIMUM_PRESSURE
The default maximum pressure.
|
static visad.Real |
DEFAULT_MAXIMUM_TEMPERATURE
The default maximum temperature.
|
static visad.Real |
DEFAULT_MINIMUM_PRESSURE
The default minimum pressure.
|
static visad.Real |
DEFAULT_MINIMUM_TEMPERATURE
The default minimum temperature.
|
Modifier and Type | Method and Description |
---|---|
AerologicalCoordinateSystem |
createDisplayCoordinateSystem(AerologicalCoordinateSystem acs)
Create a 3D display coordinate system from the (possibly) 2D input.
|
boolean |
equals(java.lang.Object obj)
Indicate whether or not this coordinate system is the same as
another.
|
double[][] |
fromReference(double[][] coords)
Transforms (X,Y) coordinates to (pressure,temperature) coordinates.
|
visad.Real |
getMaximumPressure()
Gets the maximum display pressure.
|
visad.Real |
getMaximumTemperature()
Gets the maximum display temperature.
|
visad.Real |
getMaximumX()
Gets the maximum X coordinate.
|
visad.Real |
getMaximumY()
Gets the maximum Y coordinate.
|
visad.Real |
getMinimumPressure()
Gets the minimum display pressure.
|
visad.Real |
getMinimumTemperature()
Gets the minimum display temperature.
|
visad.Real |
getMinimumX()
Gets the minimum X coordinate.
|
visad.Real |
getMinimumY()
Gets the minimum Y coordinate.
|
int |
hashCode()
Returns the hash code of this instance.
|
static StuveCoordinateSystem |
instance()
Factory method for obtaining an instance.
|
static StuveCoordinateSystem |
instance(visad.RealTupleType referenceTupleType)
Factory method for obtaining an instance.
|
static StuveCoordinateSystem |
instance(visad.RealTupleType referenceTupleType,
visad.Real minimumPressure,
visad.Real maximumPressure,
visad.Real minimumTemperature,
visad.Real maximumTemperature,
visad.Unit pressureUnit,
visad.Unit temperatureUnit,
visad.Real minimumX,
visad.Real maximumX,
visad.Real minimumY,
visad.Real maximumY)
Factory method for obtaining an instance.
|
static void |
main(java.lang.String[] args)
Tests this class.
|
double[][] |
toReference(double[][] coords)
Transforms (pressure,temperature) coordinates to (X,Y) coordinates.
|
canConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
public static final visad.Real DEFAULT_MINIMUM_PRESSURE
public static final visad.Real DEFAULT_MAXIMUM_PRESSURE
public static final visad.Real DEFAULT_MINIMUM_TEMPERATURE
public static final visad.Real DEFAULT_MAXIMUM_TEMPERATURE
public static StuveCoordinateSystem instance() throws visad.VisADException
visad.VisADException
- Couldn't create necessary VisAD object.public static StuveCoordinateSystem instance(visad.RealTupleType referenceTupleType) throws visad.VisADException
referenceTupleType
- The type of the reference coordinate system.
It shall have 2-3 components. The first
component shall be the X component; the second
component shall be the Y component; any third
component is ignored.referenceTupleType
as its
reference RealTupleType.visad.VisADException
- Couldn't create necessary VisAD object.public static StuveCoordinateSystem instance(visad.RealTupleType referenceTupleType, visad.Real minimumPressure, visad.Real maximumPressure, visad.Real minimumTemperature, visad.Real maximumTemperature, visad.Unit pressureUnit, visad.Unit temperatureUnit, visad.Real minimumX, visad.Real maximumX, visad.Real minimumY, visad.Real maximumY) throws visad.UnitException, visad.VisADException
referenceTupleType
- The type of the reference coordinate system.minimumPressure
- The minimum, displayed pressure.maximumPressure
- The maximum, displayed pressure.minimumTemperature
- The minimum, displayed temperature.maximumTemperature
- The maximum, displayed temperature.pressureUnit
- The unit of pressure for numeric values.temperatureUnit
- The unit of temperature for numeric
values.minimumX
- The minimum X coordinate.maximumX
- The maximum X coordinate.minimumY
- The minimum Y coordinate.maximumY
- The maximum Y coordinate.visad.UnitException
- Improper unit.visad.VisADException
- Couldn't create necessary VisAD object.public visad.Real getMinimumPressure()
getMinimumPressure
in class AerologicalCoordinateSystem
public visad.Real getMaximumPressure()
getMaximumPressure
in class AerologicalCoordinateSystem
public visad.Real getMinimumTemperature()
getMinimumTemperature
in class AerologicalCoordinateSystem
public visad.Real getMaximumTemperature()
getMaximumTemperature
in class AerologicalCoordinateSystem
public visad.Real getMinimumX()
getMinimumX
in class AerologicalCoordinateSystem
public visad.Real getMaximumX()
getMaximumX
in class AerologicalCoordinateSystem
public visad.Real getMinimumY()
getMinimumY
in class AerologicalCoordinateSystem
public visad.Real getMaximumY()
getMaximumY
in class AerologicalCoordinateSystem
public double[][] toReference(double[][] coords)
toReference
in class visad.CoordinateSystem
coords
- Real coordinates: coords[0][i]
and coords[1][i]
are the
pressure and temperature coordinates,
respectively, of the i
th point.
On output, coords[0][i]
and
coords[1][i]
are the corresponding
X and Y display coordinates, respectively.coords
).public double[][] fromReference(double[][] coords)
fromReference
in class visad.CoordinateSystem
coords
- Display coordinates: coords[0][i]
and coords[1][i]
are the X
and Y display coordinates, respectively,
of the i
th point. On
output, coords[0][i]
and
coords[1][i]
are the corresponding
pressure and temperature coordinates,
respectively.coords
).public boolean equals(java.lang.Object obj)
equals
in class visad.CoordinateSystem
obj
- The object to be compared with this one.true
if and only if
obj
is semantically identical to
this object.public int hashCode()
hashCode
in class java.lang.Object
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- Execution arguments. Ignored.java.lang.Exception
- if something went wrong.public AerologicalCoordinateSystem createDisplayCoordinateSystem(AerologicalCoordinateSystem acs) throws visad.VisADException
createDisplayCoordinateSystem
in class AerologicalCoordinateSystem
acs
- StuveCoordinateSystem to get values from.visad.VisADException
- problem creating new CoordinateSystem