public final class GeopotentialAltitude extends ScalarQuantity
Modifier and Type | Class and Description |
---|---|
static class |
GeopotentialAltitude.GeopotentialCoordinateSystem
Provides support for coordinate system transformations between
geopotential altitude and altitude.
|
Modifier and Type | Method and Description |
---|---|
static visad.Data |
fromAltitude(visad.Data altitude)
Converts altitude to geopotential altitude.
|
static visad.Data |
fromAltitude(visad.Data altitude,
visad.Real gravity)
Converts altitude to geopotential altitude based on a value for gravity.
|
static visad.Unit |
getGeopotentialMeter()
Gets the geopotential meter unit.
|
static visad.Unit |
getGeopotentialUnit(visad.Unit altUnit)
Returns the standard geopotential altitude unit corresponding to an
altitude unit.
|
static visad.Unit |
getGeopotentialUnit(visad.Unit altUnit,
visad.Real gravity)
Returns the geopotential altitude unit corresponding to an altitude
unit and gravity.
|
static visad.RealTupleType |
getRealTupleType()
Obtains the RealTupleType associated with this class.
|
static visad.RealType |
getRealType()
Obtains the RealType associated with this class.
|
static visad.Data |
toAltitude(visad.Data geopotentialAltitude)
Converts from geopotential altitude to altitude.
|
static visad.Data |
toAltitude(visad.Data geopotentialAltitude,
visad.Real gravity)
Converts from geopotential altitude to altitude.
|
static double[] |
toAltitude(double[] geoAlts,
visad.Unit geoUnit,
visad.Real gravity,
double[] altitudes,
visad.Unit altUnit)
Converts from geopotential altitude to altitude.
|
static double[] |
toAltitude(double[] geoAlts,
visad.Unit geoUnit,
visad.Real gravity,
double[] altitudes,
visad.Unit altUnit,
boolean copy)
Converts from geopotential altitude to altitude.
|
static float[] |
toAltitude(float[] geoAlts,
visad.Unit geoUnit,
visad.Real gravity,
float[] altitudes,
visad.Unit altUnit)
Converts from geopotential altitude to altitude.
|
static float[] |
toAltitude(float[] geoAlts,
visad.Unit geoUnit,
visad.Real gravity,
float[] altitudes,
visad.Unit altUnit,
boolean copy)
Converts from geopotential altitude to altitude.
|
static double[] |
toGeopotentialAltitude(double[] altitudes,
visad.Unit altUnit,
visad.Real gravity,
double[] geoAlts,
visad.Unit geoUnit)
Converts from altitude to geopotential altitude.
|
static double[] |
toGeopotentialAltitude(double[] altitudes,
visad.Unit altUnit,
visad.Real gravity,
double[] geoAlts,
visad.Unit geoUnit,
boolean copy)
Converts from altitude to geopotential altitude.
|
static float[] |
toGeopotentialAltitude(float[] altitudes,
visad.Unit altUnit,
visad.Real gravity,
float[] geoAlts,
visad.Unit geoUnit)
Converts from altitude to geopotential altitude.
|
static float[] |
toGeopotentialAltitude(float[] altitudes,
visad.Unit altUnit,
visad.Real gravity,
float[] geoAlts,
visad.Unit geoUnit,
boolean copy)
Converts from altitude to geopotential altitude.
|
getRealType, getRealType, realType
realTupleType, setRealTupleType
public static visad.Unit getGeopotentialMeter() throws visad.VisADException
visad.VisADException
- Couldn't create necessary VisAD object.public static visad.RealType getRealType() throws visad.VisADException
visad.VisADException
- Couldn't perform necessary VisAD operation.public static visad.RealTupleType getRealTupleType() throws visad.VisADException
visad.VisADException
- Couldn't perform necessary VisAD operation.public static visad.Data fromAltitude(visad.Data altitude) throws visad.VisADException, java.rmi.RemoteException
altitude
- The altitude data object.visad.VisADException
- if a core VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public static visad.Data fromAltitude(visad.Data altitude, visad.Real gravity) throws visad.VisADException, java.rmi.RemoteException
altitude
- The altitude data object.gravity
- The value for gravity.visad.VisADException
- if a core VisAD failure occurs.java.rmi.RemoteException
- if a Java RMI failure occurs.public static visad.Data toAltitude(visad.Data geopotentialAltitude, visad.Real gravity) throws visad.VisADException, java.rmi.RemoteException
geopotentialAltitude
- Geopotential altitude.gravity
- Gravity.visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.VisADMath
public static visad.Data toAltitude(visad.Data geopotentialAltitude) throws visad.VisADException, java.rmi.RemoteException
geopotentialAltitude
- Geopotential altitude.visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.VisADMath
public static double[] toAltitude(double[] geoAlts, visad.Unit geoUnit, visad.Real gravity, double[] altitudes, visad.Unit altUnit) throws visad.VisADException, java.rmi.RemoteException
geoAlts
- Geopotential altitudes in units of
geoUnit
.geoUnit
- The unit of geopotential altitude.gravity
- Gravity.altitudes
- Altitudes in units of altUnit
.
Its length shall be at least
geoAlts.length
. It may be the same
array as geoAlts
.altUnit
- The unit of altitude.altitudes
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static double[] toAltitude(double[] geoAlts, visad.Unit geoUnit, visad.Real gravity, double[] altitudes, visad.Unit altUnit, boolean copy) throws visad.VisADException, java.rmi.RemoteException
geoAlts
- Geopotential altitudes in units of
geoUnit
.geoUnit
- The unit of geopotential altitude.gravity
- Gravity.altitudes
- Altitudes in units of altUnit
.
Its length shall be at least
geoAlts.length
. It may be the same
array as geoAlts
.altUnit
- The unit of altitude.copy
- if true, a new copy of the array will be madealtitudes
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static float[] toAltitude(float[] geoAlts, visad.Unit geoUnit, visad.Real gravity, float[] altitudes, visad.Unit altUnit) throws visad.VisADException, java.rmi.RemoteException
geoAlts
- Geopotential altitudes in units of
geoUnit
.geoUnit
- The unit of geopotential altitude.gravity
- Gravity.altitudes
- Altitudes in units of altUnit
.
Its length shall be at least
geoAlts.length
. It may be the same
array as geoAlts
.altUnit
- The unit of altitude.altitudes
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static float[] toAltitude(float[] geoAlts, visad.Unit geoUnit, visad.Real gravity, float[] altitudes, visad.Unit altUnit, boolean copy) throws visad.VisADException, java.rmi.RemoteException
geoAlts
- Geopotential altitudes in units of
geoUnit
.geoUnit
- The unit of geopotential altitude.gravity
- Gravity.altitudes
- Altitudes in units of altUnit
.
Its length shall be at least
geoAlts.length
. It may be the same
array as geoAlts
.altUnit
- The unit of altitude.copy
- if true, a new copy of the array will be madealtitudes
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static double[] toGeopotentialAltitude(double[] altitudes, visad.Unit altUnit, visad.Real gravity, double[] geoAlts, visad.Unit geoUnit) throws visad.VisADException, java.rmi.RemoteException
altitudes
- Altitudes in units of altUnit
.altUnit
- The unit of altitude.gravity
- Gravity.geoAlts
- Geopotential altitudes in units of
geoUnit
.
Its length shall be at least
altitudes.length
. It may be the
same array as altitudes
.geoUnit
- The unit of geopotential altitude.geoAlts
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static double[] toGeopotentialAltitude(double[] altitudes, visad.Unit altUnit, visad.Real gravity, double[] geoAlts, visad.Unit geoUnit, boolean copy) throws visad.VisADException, java.rmi.RemoteException
altitudes
- Altitudes in units of altUnit
.altUnit
- The unit of altitude.gravity
- Gravity.geoAlts
- Geopotential altitudes in units of
geoUnit
.
Its length shall be at least
altitudes.length
. It may be the
same array as altitudes
.geoUnit
- The unit of geopotential altitude.copy
- if true, a new copy of the array will be madegeoAlts
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static float[] toGeopotentialAltitude(float[] altitudes, visad.Unit altUnit, visad.Real gravity, float[] geoAlts, visad.Unit geoUnit) throws visad.VisADException, java.rmi.RemoteException
altitudes
- Altitudes in units of altUnit
.altUnit
- The unit of altitude.gravity
- Gravity.geoAlts
- Geopotential altitudes in units of
geoUnit
.
Its length shall be at least
altitudes.length
. It may be the
same array as altitudes
.geoUnit
- The unit of geopotential altitude.geoAlts
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static float[] toGeopotentialAltitude(float[] altitudes, visad.Unit altUnit, visad.Real gravity, float[] geoAlts, visad.Unit geoUnit, boolean copy) throws visad.VisADException, java.rmi.RemoteException
altitudes
- Altitudes in units of altUnit
.altUnit
- The unit of altitude.gravity
- Gravity.geoAlts
- Geopotential altitudes in units of
geoUnit
.
Its length shall be at least
altitudes.length
. It may be the
same array as altitudes
.geoUnit
- The unit of geopotential altitude.copy
- if true, a new copy of the array will be madegeoAlts
(as a convenience).visad.VisADException
- Couldn't create necessary VisAD object.java.rmi.RemoteException
- Java RMI failure.public static visad.Unit getGeopotentialUnit(visad.Unit altUnit) throws visad.VisADException
altUnit
- A unit of altitude (e.g. m)altUnit
(e.g.
gpm).visad.VisADException
- VisAD failure.public static visad.Unit getGeopotentialUnit(visad.Unit altUnit, visad.Real gravity) throws visad.UnitException, visad.TypeException, java.rmi.RemoteException, visad.VisADException
altUnit
- A unit of altitude (e.g. meter).gravity
- The value of gravity.altUnit
(e.g. geopotential
meter).visad.UnitException
- Altitude unit not a unit of length.visad.TypeException
- gravity
isn't gravity.visad.VisADException
- VisAD failure.java.rmi.RemoteException
- Java RMI failure.