|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.data.sounding.TrackInfo
public abstract class TrackInfo
Class TrackInfo Provides access to a track or trajectory
| Field Summary | |
|---|---|
protected TrackAdapter |
adapter
The adapater |
static String |
ALT_TYPE
RealType name for altitude |
protected Hashtable |
cachedTimeVals
cached time values |
protected ucar.ma2.Range |
lastSpatialSetRange
The last range when we create the llaSet |
static String |
LAT_TYPE
RealType name for latitude |
protected GriddedSet |
llaSet
lat/lon/altitude set |
static String |
LON_TYPE
RealType name for longitude |
static String |
TIME_TYPE
RealType name for time |
protected String |
trackName
Name of track |
protected String |
varAltitude
_more_ |
protected List |
variables
All the variables |
protected String |
varLatitude
_more_ |
protected String |
varLongitude
_more_ |
protected String |
varTime
_more_ |
protected ucar.unidata.geoloc.Bearing |
workBearing
bearing class for bearing calculations |
| Constructor Summary | |
|---|---|
TrackInfo(TrackAdapter adapter,
String name)
ctor |
|
| Method Summary | |
|---|---|
protected void |
addVariable(VarInfo variable)
Add variable |
protected int |
countReals(List vars)
How many of the given vars are numeric |
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(String variableName)
Utility to find the variable with the given name |
protected double[] |
getDoubleData(ucar.ma2.Range range,
String var)
_more_ |
DateTime |
getEndTime()
Get the ending time of this track. |
protected abstract float[] |
getFloatData(ucar.ma2.Range range,
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 |
FieldImpl |
getPointObTrack(ucar.ma2.Range range)
Take a FlatField of data and turn it into a field of PointObs. |
protected GriddedSet |
getSpatialSet(ucar.ma2.Range range)
Returns the lat/lon/alt values as a GriddedSet with manifold dimension 1. |
DateTime |
getStartTime()
Get the starting time of this track. |
protected abstract String[] |
getStringData(ucar.ma2.Range range,
String var)
Get string values |
protected 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 Unit |
getTimeUnit()
What is the time unit |
double[] |
getTimeVals(ucar.ma2.Range range)
Get the time values for the range |
FlatField |
getTrack(String variableName,
ucar.ma2.Range range)
Returns a track for the variable name specified. |
String |
getTrackName()
Get the name of the track |
FlatField |
getTrackWithTime(String variable,
ucar.ma2.Range range)
Returns a track for the variable name specified. |
List<VarInfo> |
getVariables()
_more_ |
protected List |
getVarsToUse()
Get list of VarInfos to use |
protected RealType |
getVarType(RealType varToCheck)
Get the appropriate RealType for the particular variable. |
protected RealType |
getVarType(RealType varToCheck,
Unit unit,
double sampleValue)
Get the appropriate RealType for the particular variable. |
boolean |
includeInPointData(String varName)
Should we include the given var in the point data |
protected GriddedSet |
makeEarthDomainSet(ucar.ma2.Range range)
Make the earth spatial domain |
protected RAOB |
makeRAOB()
Make the RAOB |
void |
setCoordinateVars(String lon,
String lat,
String alt,
String time)
_more_ |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String varTime
protected String varLatitude
protected String varLongitude
protected String varAltitude
public static final String TIME_TYPE
public static final String LAT_TYPE
public static final String LON_TYPE
public static final String ALT_TYPE
protected Hashtable cachedTimeVals
protected TrackAdapter adapter
protected GriddedSet llaSet
protected ucar.ma2.Range lastSpatialSetRange
protected ucar.unidata.geoloc.Bearing workBearing
protected List variables
protected String trackName
| Constructor Detail |
|---|
public TrackInfo(TrackAdapter adapter,
String name)
throws Exception
adapter - The adaptername - name of track
Exception - On badness| Method Detail |
|---|
protected void addVariable(VarInfo variable)
variable - the variablepublic List<VarInfo> getVariables()
public DateTime getStartTime()
public DateTime getEndTime()
public int getNumberPoints()
throws Exception
Exception - _more_
protected GriddedSet makeEarthDomainSet(ucar.ma2.Range range)
throws Exception
range - The data range of the request
Exception - On badness
public FlatField getTrackWithTime(String variable,
ucar.ma2.Range range)
throws Exception
((Latitude, Longitude, Altitude) -> (variable, Time)
variable - variable to getrange - The data range of the request
Exception - On badness
public double[] getTimeVals(ucar.ma2.Range range)
throws Exception
range - range to use
Exception - problem getting time values
protected Unit getTimeUnit()
throws Exception
Exception - On badness
protected double[] getTime(ucar.ma2.Range range)
throws Exception
range - subset on range
Exception - On badness
protected float[] getLatitude(ucar.ma2.Range range)
throws Exception
range - subset on range. may be null
Exception - On badness
protected float[] getLongitude(ucar.ma2.Range range)
throws Exception
range - subset on range. may be null
Exception - On badness
protected float[] getAltitude(ucar.ma2.Range range)
throws Exception
range - subset on range. May be null
Exception - On badness
protected float[] getFloatData(ucar.ma2.Range range,
VarInfo var)
throws Exception
range - The rangevar - The variable
Exception - On badness
protected String[] getStringData(ucar.ma2.Range range,
VarInfo var)
throws Exception
range - the range. May be nullvar - The var
Exception - On badness
protected abstract float[] getFloatData(ucar.ma2.Range range,
String var)
throws Exception
range - The range. May be null.var - The variable
Exception - On badness
protected double[] getDoubleData(ucar.ma2.Range range,
String var)
throws Exception
range - _more_var - _more_
Exception - _more_
protected abstract String[] getStringData(ucar.ma2.Range range,
String var)
throws Exception
range - The range. May be null.var - The variable
Exception - On badness
public FieldImpl getPointObTrack(ucar.ma2.Range range)
throws Exception
range - The data range of the request
Exception - On badnessprotected VarInfo getDataVariable(String variableName)
variableName - The name
protected RealType getVarType(RealType varToCheck)
varToCheck - variable to check
public String getTrackName()
public void setCoordinateVars(String lon,
String lat,
String alt,
String time)
lon - _more_lat - _more_alt - _more_time - _more_
protected RealType getVarType(RealType varToCheck,
Unit unit,
double sampleValue)
varToCheck - variable to checkunit - unit for return RealTypesampleValue - sample value for comparing RealTypes
protected ucar.ma2.Range getDataRange()
throws Exception
Exception - On badness
protected ucar.ma2.Range getFullRange()
throws Exception
Exception - On badnessprotected List getVarsToUse()
protected int countReals(List vars)
vars - List of vars
public FlatField getTrack(String variableName,
ucar.ma2.Range range)
throws Exception
((Latitude, Longitude, Altitude) -> (variable)
variableName - variable of datarange - The data range of the request
Exception - On badness
protected GriddedSet getSpatialSet(ucar.ma2.Range range)
throws Exception
range - The data range of the request
Exception - On badnesspublic boolean includeInPointData(String varName)
varName - VarInfo name
public Data getAerologicalDiagramData()
throws Exception
Exception - On badness
protected RAOB makeRAOB()
throws Exception
Exception - On badness
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||