public abstract class TrackInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected TrackAdapter |
adapter
The adapater
|
static java.lang.String |
ALT_TYPE
RealType name for altitude
|
protected java.util.Hashtable |
cachedTimeVals
cached time values
|
protected ucar.ma2.Range |
lastSpatialSetRange
The last range when we create the llaSet
|
static java.lang.String |
LAT_TYPE
RealType name for latitude
|
protected visad.GriddedSet |
llaSet
lat/lon/altitude set
|
static java.lang.String |
LON_TYPE
RealType name for longitude
|
static java.lang.String |
TIME_TYPE
RealType name for time
|
protected java.lang.String |
trackName
Name of track
|
protected java.lang.String |
varAltitude
The var altitude.
|
protected java.util.List |
variables
All the variables
|
protected java.lang.String |
varLatitude
The var latitude.
|
protected java.lang.String |
varLongitude
The var longitude.
|
protected java.lang.String |
varTime
The var time.
|
Constructor and Description |
---|
TrackInfo(TrackAdapter adapter,
java.lang.String name)
ctor
|
Modifier and Type | Method and Description |
---|---|
protected void |
addVariable(VarInfo variable)
Add variable test
|
protected void |
addVariableData(java.lang.String vname,
java.lang.Object dataArray)
Adds the variable data.
|
protected int |
countReals(java.util.List vars)
How many of the given vars are numeric
|
visad.Data |
getAerologicalDiagramData()
get the data
|
protected float[] |
getAltitude(ucar.ma2.Range range)
get altitude values
|
protected ucar.ma2.Range |
getDataRange()
Get the default range of data
|
protected VarInfo |
getDataVariable(java.lang.String variableName)
Utility to find the variable with the given name
|
protected double[] |
getDoubleData(ucar.ma2.Range range,
java.lang.String var)
_more_
|
visad.DateTime |
getEndTime()
Get the ending time of this track.
|
protected abstract float[] |
getFloatData(ucar.ma2.Range range,
java.lang.String var)
Get the data values for range and var
|
protected float[] |
getFloatData(ucar.ma2.Range range,
VarInfo var)
Utility for getting data
|
protected ucar.ma2.Range |
getFullRange()
Get the full range but clipped to the adapters lastNMinutes
|
protected float[] |
getLatitude(ucar.ma2.Range range)
Get latitude values
|
protected float[] |
getLongitude(ucar.ma2.Range range)
get longitude values
|
int |
getNumberPoints()
How many points in track
|
visad.FieldImpl |
getPointObTrack(ucar.ma2.Range range)
Take a FlatField of data and turn it into a field of PointObs.
|
protected visad.GriddedSet |
getSpatialSet(ucar.ma2.Range range)
Returns the lat/lon/alt values as a GriddedSet with manifold
dimension 1.
|
visad.DateTime |
getStartTime()
Get the starting time of this track.
|
protected abstract java.lang.String[] |
getStringData(ucar.ma2.Range range,
java.lang.String var)
Get string values
|
protected java.lang.String[] |
getStringData(ucar.ma2.Range range,
VarInfo var)
Get string values for variable
|
protected double[] |
getTime(ucar.ma2.Range range)
Get the time for each ob
|
protected visad.Unit |
getTimeUnit()
What is the time unit
|
double[] |
getTimeVals(ucar.ma2.Range range)
Get the time values for the range
|
visad.FlatField |
getTrack(java.lang.String variableName,
ucar.ma2.Range range)
Returns a track for the variable name specified.
|
java.lang.String |
getTrackName()
Get the name of the track
|
visad.FlatField |
getTrackWithTime(java.lang.String variable,
ucar.ma2.Range range)
Returns a track for the variable name specified.
|
protected java.lang.Object |
getVariableData(java.lang.String vname)
Gets the variable data.
|
java.util.List<VarInfo> |
getVariables()
_more_
|
protected java.util.List<VarInfo> |
getVarsToUse()
Get list of VarInfos to use
|
protected visad.RealType |
getVarType(visad.RealType varToCheck)
Get the appropriate RealType for the particular variable.
|
protected visad.RealType |
getVarType(visad.RealType varToCheck,
visad.Unit unit,
double sampleValue)
Get the appropriate RealType for the particular variable.
|
boolean |
includeInPointData(java.lang.String varName)
Should we include the given var in the point data
|
protected visad.GriddedSet |
makeEarthDomainSet(ucar.ma2.Range range)
Make the earth spatial domain
|
protected RAOB |
makeRAOB()
Make the RAOB
|
void |
setCoordinateVars(java.lang.String lon,
java.lang.String lat,
java.lang.String alt,
java.lang.String time)
_more_
|
protected java.lang.String varTime
protected java.lang.String varLatitude
protected java.lang.String varLongitude
protected java.lang.String varAltitude
public static final java.lang.String TIME_TYPE
public static final java.lang.String LAT_TYPE
public static final java.lang.String LON_TYPE
public static final java.lang.String ALT_TYPE
protected java.util.Hashtable cachedTimeVals
protected TrackAdapter adapter
protected visad.GriddedSet llaSet
protected ucar.ma2.Range lastSpatialSetRange
protected java.util.List variables
protected java.lang.String trackName
public TrackInfo(TrackAdapter adapter, java.lang.String name) throws java.lang.Exception
adapter
- The adaptername
- name of trackjava.lang.Exception
- On badnessprotected void addVariable(VarInfo variable)
variable
- the variableprotected void addVariableData(java.lang.String vname, java.lang.Object dataArray)
vname
- the vnamedataArray
- the data arrayprotected java.lang.Object getVariableData(java.lang.String vname)
vname
- the vnamepublic java.util.List<VarInfo> getVariables()
public visad.DateTime getStartTime()
public visad.DateTime getEndTime()
public int getNumberPoints() throws java.lang.Exception
java.lang.Exception
- _more_protected visad.GriddedSet makeEarthDomainSet(ucar.ma2.Range range) throws java.lang.Exception
range
- The data range of the requestjava.lang.Exception
- On badnesspublic visad.FlatField getTrackWithTime(java.lang.String variable, ucar.ma2.Range range) throws java.lang.Exception
((Latitude, Longitude, Altitude) -> (variable, Time)
variable
- variable to getrange
- The data range of the requestjava.lang.Exception
- On badnesspublic double[] getTimeVals(ucar.ma2.Range range) throws java.lang.Exception
range
- range to usejava.lang.Exception
- problem getting time valuesprotected visad.Unit getTimeUnit() throws java.lang.Exception
java.lang.Exception
- On badnessprotected double[] getTime(ucar.ma2.Range range) throws java.lang.Exception
range
- subset on rangejava.lang.Exception
- On badnessprotected float[] getLatitude(ucar.ma2.Range range) throws java.lang.Exception
range
- subset on range. may be nulljava.lang.Exception
- On badnessprotected float[] getLongitude(ucar.ma2.Range range) throws java.lang.Exception
range
- subset on range. may be nulljava.lang.Exception
- On badnessprotected float[] getAltitude(ucar.ma2.Range range) throws java.lang.Exception
range
- subset on range. May be nulljava.lang.Exception
- On badnessprotected float[] getFloatData(ucar.ma2.Range range, VarInfo var) throws java.lang.Exception
range
- The rangevar
- The variablejava.lang.Exception
- On badnessprotected java.lang.String[] getStringData(ucar.ma2.Range range, VarInfo var) throws java.lang.Exception
range
- the range. May be nullvar
- The varjava.lang.Exception
- On badnessprotected abstract float[] getFloatData(ucar.ma2.Range range, java.lang.String var) throws java.lang.Exception
range
- The range. May be null.var
- The variablejava.lang.Exception
- On badnessprotected double[] getDoubleData(ucar.ma2.Range range, java.lang.String var) throws java.lang.Exception
range
- _more_var
- _more_java.lang.Exception
- _more_protected abstract java.lang.String[] getStringData(ucar.ma2.Range range, java.lang.String var) throws java.lang.Exception
range
- The range. May be null.var
- The variablejava.lang.Exception
- On badnesspublic visad.FieldImpl getPointObTrack(ucar.ma2.Range range) throws java.lang.Exception
range
- The data range of the requestjava.lang.Exception
- On badnessprotected VarInfo getDataVariable(java.lang.String variableName)
variableName
- The nameprotected visad.RealType getVarType(visad.RealType varToCheck)
varToCheck
- variable to checkpublic java.lang.String getTrackName()
public void setCoordinateVars(java.lang.String lon, java.lang.String lat, java.lang.String alt, java.lang.String time)
lon
- _more_lat
- _more_alt
- _more_time
- _more_protected visad.RealType getVarType(visad.RealType varToCheck, visad.Unit unit, double sampleValue)
varToCheck
- variable to checkunit
- unit for return RealTypesampleValue
- sample value for comparing RealTypesprotected ucar.ma2.Range getDataRange() throws java.lang.Exception
java.lang.Exception
- On badnessprotected ucar.ma2.Range getFullRange() throws java.lang.Exception
java.lang.Exception
- On badnessprotected java.util.List<VarInfo> getVarsToUse()
protected int countReals(java.util.List vars)
vars
- List of varspublic visad.FlatField getTrack(java.lang.String variableName, ucar.ma2.Range range) throws java.lang.Exception
((Latitude, Longitude, Altitude) -> (variable)
variableName
- variable of datarange
- The data range of the requestjava.lang.Exception
- On badnessprotected visad.GriddedSet getSpatialSet(ucar.ma2.Range range) throws java.lang.Exception
range
- The data range of the requestjava.lang.Exception
- On badnesspublic boolean includeInPointData(java.lang.String varName)
varName
- VarInfo namepublic visad.Data getAerologicalDiagramData() throws java.lang.Exception
java.lang.Exception
- On badnessprotected RAOB makeRAOB() throws java.lang.Exception
java.lang.Exception
- On badness