Package ucar.unidata.data.sounding
Class TrackInfo
java.lang.Object
ucar.unidata.data.sounding.TrackInfo
- Direct Known Subclasses:
CDMProfileFeatureTypeInfo,CdmTrackInfo,CDMTrajectoryFeatureTypeInfo,CosmicTrajectoryFeatureTypeInfo,EolDbTrackAdapter.EolDbTrackInfo
Class TrackInfo Provides access to a track or trajectory
- Author:
- IDV Development Team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TrackAdapterThe adapaterstatic final StringRealType name for altitudeprotected Hashtablecached time valuesprotected ucar.ma2.RangeThe last range when we create the llaSetstatic final StringRealType name for latitudeprotected GriddedSetlat/lon/altitude setstatic final StringRealType name for longitudestatic final StringRealType name for timeprotected StringName of trackprotected StringThe var altitude.protected ListAll the variablesprotected StringThe var latitude.protected StringThe var longitude.protected StringThe var time. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddVariable(VarInfo variable) Add variable testprotected voidaddVariableData(String vname, Object dataArray) Adds the variable data.protected intcountReals(List vars) How many of the given vars are numericget the dataprotected float[]getAltitude(ucar.ma2.Range range) get altitude valuesprotected ucar.ma2.RangeGet the default range of dataprotected VarInfogetDataVariable(String variableName) Utility to find the variable with the given nameprotected double[]getDoubleData(ucar.ma2.Range range, String var) _more_Get the ending time of this track.protected abstract float[]getFloatData(ucar.ma2.Range range, String var) Get the data values for range and varprotected float[]getFloatData(ucar.ma2.Range range, VarInfo var) Utility for getting dataprotected ucar.ma2.RangeGet the full range but clipped to the adapters lastNMinutesprotected float[]getLatitude(ucar.ma2.Range range) Get latitude valuesprotected float[]getLongitude(ucar.ma2.Range range) get longitude valuesintHow many points in trackgetPointObTrack(ucar.ma2.Range range) Take a FlatField of data and turn it into a field of PointObs.protected GriddedSetgetSpatialSet(ucar.ma2.Range range) Returns the lat/lon/alt values as a GriddedSet with manifold dimension 1.Get the starting time of this track.protected abstract String[]getStringData(ucar.ma2.Range range, String var) Get string valuesprotected String[]getStringData(ucar.ma2.Range range, VarInfo var) Get string values for variableprotected double[]getTime(ucar.ma2.Range range) Get the time for each obprotected UnitWhat is the time unitdouble[]getTimeVals(ucar.ma2.Range range) Get the time values for the rangeReturns a track for the variable name specified.Get the name of the trackgetTrackWithTime(String variable, ucar.ma2.Range range) Returns a track for the variable name specified.protected ObjectgetVariableData(String vname) Gets the variable data._more_Get list of VarInfos to useprotected RealTypegetVarType(RealType varToCheck) Get the appropriate RealType for the particular variable.protected RealTypegetVarType(RealType varToCheck, Unit unit, double sampleValue) Get the appropriate RealType for the particular variable.booleanincludeInPointData(String varName) Should we include the given var in the point dataprotected GriddedSetmakeEarthDomainSet(ucar.ma2.Range range) Make the earth spatial domainprotected RAOBmakeRAOB()Make the RAOBvoidsetCoordinateVars(String lon, String lat, String alt, String time) _more_
-
Field Details
-
varTime
The var time. -
varLatitude
The var latitude. -
varLongitude
The var longitude. -
varAltitude
The var altitude. -
TIME_TYPE
RealType name for time- See Also:
-
LAT_TYPE
RealType name for latitude- See Also:
-
LON_TYPE
RealType name for longitude- See Also:
-
ALT_TYPE
RealType name for altitude- See Also:
-
cachedTimeVals
cached time values -
adapter
The adapater -
llaSet
lat/lon/altitude set -
lastSpatialSetRange
protected ucar.ma2.Range lastSpatialSetRangeThe last range when we create the llaSet -
variables
All the variables -
trackName
Name of track
-
-
Constructor Details
-
TrackInfo
ctor- Parameters:
adapter- The adaptername- name of track- Throws:
Exception- On badness
-
-
Method Details
-
addVariable
Add variable test- Parameters:
variable- the variable
-
addVariableData
Adds the variable data.- Parameters:
vname- the vnamedataArray- the data array
-
getVariableData
Gets the variable data.- Parameters:
vname- the vname- Returns:
- the variable data
-
getVariables
_more_- Returns:
- _more_
-
getStartTime
Get the starting time of this track.- Returns:
- starting time
-
getEndTime
Get the ending time of this track.- Returns:
- ending time
-
getNumberPoints
How many points in track- Returns:
- num points in track
- Throws:
Exception- _more_
-
makeEarthDomainSet
Make the earth spatial domain- Parameters:
range- The data range of the request- Returns:
- The spatial domain
- Throws:
Exception- On badness
-
getTrackWithTime
Returns a track for the variable name specified. Returned track is of type:((Latitude, Longitude, Altitude) -> (variable, Time)
- Parameters:
variable- variable to getrange- The data range of the request- Returns:
- FlatField of the type above.
- Throws:
Exception- On badness
-
getTimeVals
Get the time values for the range- Parameters:
range- range to use- Returns:
- time values in range
- Throws:
Exception- problem getting time values
-
getTimeUnit
What is the time unit- Returns:
- time unit
- Throws:
Exception- On badness
-
getTime
Get the time for each ob- Parameters:
range- subset on range- Returns:
- time values
- Throws:
Exception- On badness
-
getLatitude
Get latitude values- Parameters:
range- subset on range. may be null- Returns:
- latitude values
- Throws:
Exception- On badness
-
getLongitude
get longitude values- Parameters:
range- subset on range. may be null- Returns:
- longitude values
- Throws:
Exception- On badness
-
getAltitude
get altitude values- Parameters:
range- subset on range. May be null- Returns:
- altitude values
- Throws:
Exception- On badness
-
getFloatData
Utility for getting data- Parameters:
range- The rangevar- The variable- Returns:
- The data
- Throws:
Exception- On badness
-
getStringData
Get string values for variable- Parameters:
range- the range. May be nullvar- The var- Returns:
- String values
- Throws:
Exception- On badness
-
getFloatData
Get the data values for range and var- Parameters:
range- The range. May be null.var- The variable- Returns:
- Values
- Throws:
Exception- On badness
-
getDoubleData
_more_- Parameters:
range- _more_var- _more_- Returns:
- _more_
- Throws:
Exception- _more_
-
getStringData
Get string values- Parameters:
range- The range. May be null.var- The variable- Returns:
- Values
- Throws:
Exception- On badness
-
getPointObTrack
Take a FlatField of data and turn it into a field of PointObs.- Parameters:
range- The data range of the request- Returns:
- field of PointObs
- Throws:
Exception- On badness
-
getDataVariable
Utility to find the variable with the given name- Parameters:
variableName- The name- Returns:
- The variable.
-
getVarType
Get the appropriate RealType for the particular variable. Used to get alternate names for lat/lon/alt- Parameters:
varToCheck- variable to check- Returns:
- new variable or the original
-
getTrackName
Get the name of the track- Returns:
- Track name
-
setCoordinateVars
_more_- Parameters:
lon- _more_lat- _more_alt- _more_time- _more_
-
getVarType
Get the appropriate RealType for the particular variable. Used to get alternate names for lat/lon/alt- Parameters:
varToCheck- variable to checkunit- unit for return RealTypesampleValue- sample value for comparing RealTypes- Returns:
- new variable or the original
-
getDataRange
Get the default range of data- Returns:
- range
- Throws:
Exception- On badness
-
getFullRange
Get the full range but clipped to the adapters lastNMinutes- Returns:
- range
- Throws:
Exception- On badness
-
getVarsToUse
Get list of VarInfos to use- Returns:
- List of vars
-
countReals
How many of the given vars are numeric- Parameters:
vars- List of vars- Returns:
- how many numeric
-
getTrack
Returns a track for the variable name specified. Returned track is of type:((Latitude, Longitude, Altitude) -> (variable)
- Parameters:
variableName- variable of datarange- The data range of the request- Returns:
- FlatField of the type above.
- Throws:
Exception- On badness
-
getSpatialSet
Returns the lat/lon/alt values as a GriddedSet with manifold dimension 1.- Parameters:
range- The data range of the request- Returns:
- set of lat/lon/alt points.
- Throws:
Exception- On badness
-
includeInPointData
Should we include the given var in the point data- Parameters:
varName- VarInfo name- Returns:
- Include in point data
-
getAerologicalDiagramData
get the data- Returns:
- the data
- Throws:
Exception- On badness
-
makeRAOB
Make the RAOB- Returns:
- The RAOB_
- Throws:
Exception- On badness
-