|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.dmi.jog.Profile
A vertical profile. Missing values are represented by
Float.NaN
.
Method Summary | |
int |
compareTo(Object o)
Compares this Profile to another Object . |
boolean |
equals(Object o)
Compares this Profile to the specified Object. |
float[] |
getData()
Returns the data of this Profile . |
static Profile |
getInstance(Profile p)
Returns a Profile copy of the argument. |
static Profile |
getInstance(String id,
float[] z,
float[] data)
Returns a Profile representation of the arguments. |
static Profile |
getInstance(String id,
String zunit,
String dunit,
float[] z,
float[] data)
Returns a Profile representation of the arguments. |
String |
getParameterID()
Returns the parameter ID of this Profile , eg. |
String |
getUnitData()
Returns the units of the data in this Profile . |
String |
getUnitVerticalLevels()
Returns the units of the vertical levels in this Profile . |
float[] |
getVerticalLevels()
Returns the vertical levels of this Profile . |
int |
hashCode()
|
Profile |
interpolateVerticalLevels(float[] z)
Returns a Profile with values interpolated to the values
in z . |
boolean |
isInterpolated()
Returns true if the data in this Profile are
interpolated. |
void |
setInterpolated()
Flags data as interpolated. |
String |
toString()
Returns a String representation of this Profile . |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
public int compareTo(Object o)
Profile
to another Object
.
compareTo
in interface Comparable
o
- the Object
to be compared.
Profile
with the same parameter as this Profile
;
a value less than 0 if the parameter of the argument is
lexically less than the parameter of this Profile
and a value greater than 0 if the parameter of the argument is
lexically more than the parameter of this Profile
.public boolean equals(Object o)
Profile
to the specified Object. The result is
true if and only if the argument is not null and is a Profile
containing the same data as this Profile
.
o
- the Object to be compared for equality with this Profile
.
public float[] getData()
Profile
.
Profile
.public static Profile getInstance(Profile p)
Profile
copy of the argument.
p
- Profile
to create a copy of.
Profile
.public static Profile getInstance(String id, float[] z, float[] data)
Profile
.
id
- identifier for the data.z
- depth array.data
- data array (eg. temperature, salinity).
Profile
representation of the arguments.public static Profile getInstance(String id, String zunit, String dunit, float[] z, float[] data)
id
- identifier for the data.zunit
- units for depth array.dunit
- units for data array.z
- depth array.data
- data array (eg. temperature, salinity).
Profile
representation of the arguments.public String getParameterID()
Profile
, eg. Temperature.
Profile
.public String getUnitData()
Profile
.
Profile
.public String getUnitVerticalLevels()
Profile
.
Profile
.public float[] getVerticalLevels()
Profile
.
Profile
.public int hashCode()
public Profile interpolateVerticalLevels(float[] z)
Profile
with values interpolated to the values
in z
.
z
- depths to interpolate this Profile
to.
Profile
with values from this Profile
interpolated to the depths in z
.public boolean isInterpolated()
Profile
are
interpolated.
Profile
are
interpolated.public void setInterpolated()
public String toString()
String
representation of this Profile
.
String
representation of this Profile
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |