|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.CoordinateSystem
ucar.unidata.view.sounding.AerologicalCoordinateSystem
ucar.unidata.view.sounding.SkewTCoordinateSystem
public final class SkewTCoordinateSystem
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.
| Field Summary | |
|---|---|
static Real |
DEFAULT_ISOTHERM_TANGENT
The default isotherm tangent. |
static Real |
DEFAULT_MAXIMUM_PRESSURE
The default maximum pressure. |
static Real |
DEFAULT_MAXIMUM_TEMPERATURE
The default maximum temperature. |
static Real |
DEFAULT_MINIMUM_PRESSURE
The default minimum pressure. |
static Real |
DEFAULT_MINIMUM_TEMPERATURE
The default minimum temperature. |
static Real |
DEFAULT_TEMPERATURE_PER_LOG_PRESSURE
The default change in temperature per natural logarithm of pressure in the vertical. |
| Method Summary | |
|---|---|
AerologicalCoordinateSystem |
createDisplayCoordinateSystem(AerologicalCoordinateSystem acs)
Create a 3D display coordinate system from the (possibly) 2D input. |
boolean |
equals(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. |
Real |
getIsothermTangent()
Gets the tangent of the isotherms. |
Real |
getMaximumPressure()
Gets the maximum display pressure. |
Real |
getMaximumTemperature()
Gets the maximum display temperature. |
Real |
getMaximumX()
Gets the maximum X coordinate. |
Real |
getMaximumY()
Gets the maximum Y coordinate. |
Real |
getMinimumPressure()
Gets the minimum display pressure. |
Real |
getMinimumTemperature()
Gets the minimum display temperature. |
Real |
getMinimumX()
Gets the minimum X coordinate. |
Real |
getMinimumY()
Gets the minimum Y coordinate. |
Real |
getTemperaturePerLogPressure()
Gets the change in temperature per natural logarithm of pressure in the vertical. |
int |
hashCode()
Returns the hash code of this instance. |
static SkewTCoordinateSystem |
instance()
Factory method for obtaining an instance. |
static SkewTCoordinateSystem |
instance(RealTupleType referenceTupleType)
Factory method for obtaining an instance. |
static SkewTCoordinateSystem |
instance(RealTupleType referenceTupleType,
Real minimumPressure,
Real maximumPressure,
Real minimumTemperature,
Real maximumTemperature,
Real isothermTangent,
Real temperaturePerLogPressure,
Unit pressureUnit,
Unit temperatureUnit,
Real minimumX,
Real maximumX,
Real minimumY,
Real maximumY)
Factory method for obtaining an instance. |
static void |
main(String[] args)
Tests this class. |
double[][] |
toReference(double[][] coords)
Transforms (pressure,temperature) coordinates to (X,Y) coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Real DEFAULT_MINIMUM_PRESSURE
public static final Real DEFAULT_MAXIMUM_PRESSURE
public static final Real DEFAULT_MINIMUM_TEMPERATURE
public static final Real DEFAULT_MAXIMUM_TEMPERATURE
public static final Real DEFAULT_ISOTHERM_TANGENT
public static final Real DEFAULT_TEMPERATURE_PER_LOG_PRESSURE
| Method Detail |
|---|
public static SkewTCoordinateSystem instance()
throws VisADException
VisADException - Couldn't create necessary VisAD object.
public static SkewTCoordinateSystem instance(RealTupleType referenceTupleType)
throws 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.
VisADException - Couldn't create necessary VisAD object.
public static SkewTCoordinateSystem instance(RealTupleType referenceTupleType,
Real minimumPressure,
Real maximumPressure,
Real minimumTemperature,
Real maximumTemperature,
Real isothermTangent,
Real temperaturePerLogPressure,
Unit pressureUnit,
Unit temperatureUnit,
Real minimumX,
Real maximumX,
Real minimumY,
Real maximumY)
throws UnitException,
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.isothermTangent - The tangent of the isotherms in the
background plot.temperaturePerLogPressure - The rate of change in temperature per natural
logarithm of pressure in the vertical.
Increasing this value squeezes the isotherms
together on the plot.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.
UnitException - Improper unit.
VisADException - Couldn't create necessary VisAD object.public Real getMinimumPressure()
getMinimumPressure in class AerologicalCoordinateSystempublic Real getMaximumPressure()
getMaximumPressure in class AerologicalCoordinateSystempublic Real getMinimumTemperature()
getMinimumTemperature in class AerologicalCoordinateSystempublic Real getMaximumTemperature()
getMaximumTemperature in class AerologicalCoordinateSystempublic Real getIsothermTangent()
public Real getTemperaturePerLogPressure()
public Real getMinimumX()
getMinimumX in class AerologicalCoordinateSystempublic Real getMaximumX()
getMaximumX in class AerologicalCoordinateSystempublic Real getMinimumY()
getMinimumY in class AerologicalCoordinateSystempublic Real getMaximumY()
getMaximumY in class AerologicalCoordinateSystempublic double[][] toReference(double[][] coords)
toReference in class CoordinateSystemcoords - Real coordinates: coords[0][i]
and coords[1][i] are the
pressure and temperature coordinates,
respectively, of the ith 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 CoordinateSystemcoords - Display coordinates: coords[0][i]
and coords[1][i] are the X
and Y display coordinates, respectively,
of the ith point. On
output, coords[0][i] and
coords[1][i] are the corresponding
pressure and temperature coordinates,
respectively.
coords).public boolean equals(Object obj)
equals in class CoordinateSystemobj - 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 Object
public static void main(String[] args)
throws Exception
args - Execution arguments. Ignored.
Exception - if something went wrong.
public AerologicalCoordinateSystem createDisplayCoordinateSystem(AerologicalCoordinateSystem acs)
throws VisADException
createDisplayCoordinateSystem in class AerologicalCoordinateSystemacs - SkewTCoordinateSystem to get values from.
VisADException - problem creating new CoordinateSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||