|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectvisad.ThingImpl
visad.DataImpl
visad.Tuple
visad.RealTuple
visad.georef.EarthLocationLite
public class EarthLocationLite
This provides a LoCal EarthLocation that is much faster to create than the EarthLocationTuple. Assumes units of lat/lon are degrees and Altitude is meters.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class visad.DataImpl |
|---|
DataImpl.Syncher |
| Field Summary |
|---|
| Fields inherited from class visad.Tuple |
|---|
cloneCnt |
| Fields inherited from interface visad.Data |
|---|
ABS, ACOS, ACOS_DEGREES, ADD, ASIN, ASIN_DEGREES, ATAN, ATAN_DEGREES, ATAN2, ATAN2_DEGREES, CEIL, COS, COS_DEGREES, DEGREES_TO_RADIANS, DEPENDENT, DIVIDE, EXP, FLOOR, INDEPENDENT, INV_ATAN2, INV_ATAN2_DEGREES, INV_DIVIDE, INV_POW, INV_REMAINDER, INV_SUBTRACT, LOG, MAX, MIN, MULTIPLY, NEAREST_NEIGHBOR, NEGATE, NO_ERRORS, NOP, POW, RADIANS_TO_DEGREES, REMAINDER, RINT, ROUND, SIN, SIN_DEGREES, SQRT, SUBTRACT, TAN, TAN_DEGREES, WEIGHTED_AVERAGE |
| Constructor Summary | |
|---|---|
EarthLocationLite(double lat,
double lon,
double alt)
Construct a new EarthLocationLite |
|
EarthLocationLite(Real lat,
Real lon,
Real alt)
Construct a new EarthLocationLite |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Indicates if this Tuple is identical to an object. |
Real |
getAltitude()
get altitude |
Data |
getComponent(int i)
Get the i'th component. |
Data[] |
getComponents(boolean copy)
Create, if needed, and return the component array. |
Real |
getLatitude()
get latitude |
LatLonPoint |
getLatLonPoint()
This is an EarthLocation interface method. |
Real |
getLongitude()
get longitude |
int |
hashCode()
Returns the hash code of this object. |
boolean |
isMissing()
is missing |
static void |
main(String[] args)
run 'java ucar.visad.EarthLocationLite' to test the RealTuple class. |
String |
toString()
to string |
| Methods inherited from class visad.RealTuple |
|---|
addReference, binary, clone, computeRanges, getCoordinateSystem, getErrors, getTupleUnits, getValues, longString, removeReference, unary |
| Methods inherited from class visad.Tuple |
|---|
__getitem__, __len__, adjustSamplingError, buildTupleType, getComponents, getDimension, getLength, getRealComponents, makeTuple |
| Methods inherited from class visad.DataImpl |
|---|
__add__, __add__, __div__, __div__, __mod__, __mod__, __mul__, __mul__, __neg__, __pow__, __pow__, __radd__, __rdiv__, __rmod__, __rmul__, __rpow__, __rsub__, __sub__, __sub__, abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, max, max, min, min, multiply, multiply, negate, negate, notifyReferences, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface visad.Data |
|---|
abs, abs, acos, acos, acosDegrees, acosDegrees, add, add, adjustSamplingError, asin, asin, asinDegrees, asinDegrees, atan, atan, atan2, atan2, atan2Degrees, atan2Degrees, atanDegrees, atanDegrees, binary, binary, ceil, ceil, changeMathType, computeRanges, computeRanges, computeRanges, cos, cos, cosDegrees, cosDegrees, dataClone, divide, divide, exp, exp, floor, floor, getType, local, log, log, longString, longString, max, max, min, min, multiply, multiply, negate, negate, pow, pow, remainder, remainder, rint, rint, round, round, sin, sin, sinDegrees, sinDegrees, sqrt, sqrt, subtract, subtract, tan, tan, tanDegrees, tanDegrees, unary, unary |
| Methods inherited from interface visad.Thing |
|---|
addReference, removeReference |
| Methods inherited from interface visad.TupleIface |
|---|
adjustSamplingError, getDimension, getRealComponents |
| Constructor Detail |
|---|
public EarthLocationLite(double lat,
double lon,
double alt)
throws VisADException
lat - latitudelon - longitudealt - altitude
VisADException - On badness
public EarthLocationLite(Real lat,
Real lon,
Real alt)
lat - latitudelon - longitudealt - altitude| Method Detail |
|---|
public boolean isMissing()
isMissing in interface DataisMissing in interface TupleIfaceisMissing in class Tuplepublic Real getLatitude()
getLatitude in interface LatLonPointpublic Real getLongitude()
getLongitude in interface LatLonPointpublic Real getAltitude()
getAltitude in interface EarthLocationpublic LatLonPoint getLatLonPoint()
getLatLonPoint in interface EarthLocation
public Data getComponent(int i)
throws VisADException,
RemoteException
getComponent in interface TupleIfacegetComponent in class Tuplei - Which one
RemoteException - On badness
VisADException - On badnesspublic Data[] getComponents(boolean copy)
getComponents in class Tuplecopy - if true then return a copy of the tuple array. Else return the actual array
public boolean equals(Object obj)
equals in interface LatLonPointequals in class Tupleobj - The object.
true if and only if the object is
a Tuple and both Tuple-s have identical component
sequences.public int hashCode()
hashCode in class Tuplepublic String toString()
toString in interface RealTupleIfacetoString in class RealTuple
public static void main(String[] args)
throws VisADException,
RemoteException
args - ignored
RemoteException - Java RMI problem
VisADException - Unable to create the VisAD objects
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||