public abstract class TrackAdapter
extends java.lang.Object
Constructor and Description |
---|
TrackAdapter() |
TrackAdapter(TrackDataSource dataSource,
java.lang.String filename)
Construct a new track from the filename.
|
TrackAdapter(TrackDataSource dataSource,
java.lang.String filename,
java.util.Hashtable pointDataFilter,
int stride,
int lastNMinutes)
Construct a new track from the filename.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addActions(java.util.List actions)
Adds the actions.
|
protected void |
addTrackInfo(TrackInfo trackInfo)
Add the track info to the list.
|
visad.Data |
getAerologicalDiagramData(java.lang.String trackId)
Get the track data parameters necessary to plot an aerological
diagram.
|
visad.DateTime |
getBaseTime()
Deprecated.
use #getStartTime()
|
java.lang.String |
getDataSourceDescription()
Gets the data source description.
|
java.lang.String |
getDataSourceName()
Gets the data source name.
|
visad.DateTime |
getEndTime()
Get the ending time of this track.
|
java.lang.String |
getFilename()
Get the Filename property.
|
int |
getLastNMinutes()
Get the LastNMinutes property.
|
ucar.ma2.Range |
getLastPointRange(java.lang.String trackId)
Get the data range for the very last obs.
|
int |
getNumObservations(java.lang.String trackId)
get total number of obs_.
|
visad.FieldImpl |
getPointObTrack(java.lang.String trackId,
ucar.ma2.Range range)
Take a FlatField of data and turn it into a field of PointObs.
|
visad.DateTime |
getStartTime()
Get the starting time of this track.
|
int |
getStride()
Get the Stride property.
|
visad.FlatField |
getTrack(java.lang.String trackId,
java.lang.String variable,
ucar.ma2.Range range)
Returns a track for the variable name specified.
|
TrackInfo |
getTrackInfo(java.lang.String name)
Find the track info with the given name.
|
java.util.List<TrackInfo> |
getTrackInfos()
Get list of TrackInfo-s.
|
visad.FlatField |
getTrackWithTime(java.lang.String trackId,
java.lang.String variable,
ucar.ma2.Range range)
Returns a track for the variable name specified.
|
boolean |
includeInPointData(java.lang.String varName)
Should we include the given var in the point data.
|
void |
setLastNMinutes(int value)
Set the LastNMinutes property.
|
void |
setStride(int value)
Set the Stride property.
|
java.lang.String |
toString() |
public TrackAdapter() throws java.lang.Exception
java.lang.Exception
public TrackAdapter(TrackDataSource dataSource, java.lang.String filename) throws java.lang.Exception
dataSource
- datasourcefilename
- location of filejava.lang.Exception
- On badnesspublic TrackAdapter(TrackDataSource dataSource, java.lang.String filename, java.util.Hashtable pointDataFilter, int stride, int lastNMinutes) throws java.lang.Exception
dataSource
- _more_filename
- location of filepointDataFilter
- Filters the variables to usestride
- The stridelastNMinutes
- use the last N minutesjava.lang.Exception
- On badnessprotected void addActions(java.util.List actions)
actions
- the actionsprotected void addTrackInfo(TrackInfo trackInfo) throws java.lang.Exception
trackInfo
- Describes a trackjava.lang.Exception
- On badnesspublic java.util.List<TrackInfo> getTrackInfos()
public TrackInfo getTrackInfo(java.lang.String name)
name
- name of track infopublic visad.FlatField getTrackWithTime(java.lang.String trackId, java.lang.String variable, ucar.ma2.Range range) throws java.lang.Exception
((Latitude, Longitude, Altitude) -> (variable, Time)
trackId
- Which trackvariable
- variable to getrange
- The data range of the requestjava.lang.Exception
- On badnesspublic ucar.ma2.Range getLastPointRange(java.lang.String trackId) throws java.lang.Exception
trackId
- which trackjava.lang.Exception
- On badnesspublic int getNumObservations(java.lang.String trackId) throws java.lang.Exception
trackId
- Which trackjava.lang.Exception
- On badnesspublic visad.FieldImpl getPointObTrack(java.lang.String trackId, ucar.ma2.Range range) throws java.lang.Exception
trackId
- Which trackrange
- The data range of the requestjava.lang.Exception
- On badnesspublic visad.FlatField getTrack(java.lang.String trackId, java.lang.String variable, ucar.ma2.Range range) throws java.lang.Exception
((Latitude, Longitude, Altitude) -> (variable)
trackId
- Which trackvariable
- variable of datarange
- The data range of the requestjava.lang.Exception
- On badnesspublic visad.Data getAerologicalDiagramData(java.lang.String trackId) throws java.lang.Exception
(Time -> (AirPressure, AirTemperature, Dewpoint, (Speed, Direction), (Latitude, Longitude, Altitude)))
trackId
- id of the trackjava.lang.Exception
- On badnesspublic visad.DateTime getBaseTime()
public visad.DateTime getStartTime()
public visad.DateTime getEndTime()
public void setStride(int value)
value
- The new value for Stridepublic int getStride()
public void setLastNMinutes(int value)
value
- The new value for LastNMinutespublic int getLastNMinutes()
public boolean includeInPointData(java.lang.String varName)
varName
- Variable namepublic java.lang.String getFilename()
public java.lang.String getDataSourceName()
public java.lang.String getDataSourceDescription()
public java.lang.String toString()
toString
in class java.lang.Object