|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object visad.CoordinateSystem visad.data.vis5d.Vis5DVerticalSystem.Vis5DVerticalCoordinateSystem
public static class Vis5DVerticalSystem.Vis5DVerticalCoordinateSystem
Vis5DVerticalCoordinateSystem is the VisAD class for coordinate systems for transforming pressure in millibars to Altitude in m. It uses the standard Vis5D climate formulas:
P = 1012.5 * e^( H / -7.2 ) (^ denotes exponentiation) H = -7.2 * Ln( P / 1012.5 ) (Ln denotes natural log)for the transformations (in this case H is in km).
Constructor Summary | |
---|---|
Vis5DVerticalSystem.Vis5DVerticalCoordinateSystem()
Construct a new vertical transformation system |
Method Summary | |
---|---|
static double |
altitudeToPressure(double alt)
Converts an altitude value in meters to a pressure value in millibars. |
boolean |
equals(Object o)
Checks the equality of o against this coordinate system |
double[][] |
fromReference(double[][] alts)
Converts altitudes in m to pressure in millibars. |
float[][] |
fromReference(float[][] alts)
Converts altitudes in m to pressure in millibars. |
static double |
pressureToAltitude(double pressure)
Converts a pressure value in millibars to an altitude in meters. |
double[][] |
toReference(double[][] pressures)
Converts pressures in millibars to altitude in meters. |
float[][] |
toReference(float[][] pressures)
Converts pressures in millibars to altitude in meters. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Vis5DVerticalSystem.Vis5DVerticalCoordinateSystem() throws VisADException
VisADException
Method Detail |
---|
public double[][] toReference(double[][] pressures) throws VisADException
toReference
in class CoordinateSystem
pressures
- array of pressures
VisADException
- illegal inputpublic double[][] fromReference(double[][] alts) throws VisADException
fromReference
in class CoordinateSystem
alts
- array of altitudes
VisADException
- illegal inputpublic float[][] toReference(float[][] pressures) throws VisADException
toReference
in class CoordinateSystem
pressures
- array of pressures
VisADException
- illegal inputpublic float[][] fromReference(float[][] alts) throws VisADException
fromReference
in class CoordinateSystem
alts
- array of altitudes
VisADException
- illegal inputpublic boolean equals(Object o)
equals
in class CoordinateSystem
o
- object in question
public static double altitudeToPressure(double alt)
P = 1012.5 * e^( H / -7.2 ) (^ denotes exponentiation) (H is in km in this formula, but input value is meters)
alt
- value to convert
public static double pressureToAltitude(double pressure)
H = -7.2 * Ln( P / 1012.5 ) (Ln denotes natural log) (H is in km in this formula, but returned value is meters)
pressure
- value to convert
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |