ucar.unidata.data.sounding
Class CdmTrackInfo

java.lang.Object
  extended by ucar.unidata.data.sounding.TrackInfo
      extended by ucar.unidata.data.sounding.CdmTrackInfo

public class CdmTrackInfo
extends TrackInfo

Class TrackInfo Provides access to a track or trajectory

Version:
$Revision: 1.8 $
Author:
IDV Development Team

Field Summary
static String VAR_ALTITUDE
          Fixed var name for alt
static String VAR_LATITUDE
          Fixed var name for lat
static String VAR_LONGITUDE
          Fixed var name for lon
static String VAR_TIME
          Fixed var name for time
 
Fields inherited from class ucar.unidata.data.sounding.TrackInfo
adapter, ALT_TYPE, cachedTimeVals, lastSpatialSetRange, LAT_TYPE, llaSet, LON_TYPE, TIME_TYPE, trackName, varAltitude, variables, varLatitude, varLongitude, varTime, workBearing
 
Constructor Summary
CdmTrackInfo(TrackAdapter adapter, ucar.nc2.dt.TrajectoryObsDataset tod, ucar.nc2.dt.TrajectoryObsDatatype todt)
          ctor
 
Method Summary
protected  ucar.ma2.Range getDataRange()
          Get the full range.
protected  double[] getDoubleData(ucar.ma2.Range range, String var)
          _more_
protected  float[] getFloatData(ucar.ma2.Range range, String var)
          Get the data values for the range.
 int getNumberPoints()
          Get number of points in track
 FieldImpl getPointObTrack(ucar.ma2.Range range)
          Take a FlatField of data and turn it into a field of PointObs.
protected  String[] getStringData(ucar.ma2.Range range, String var)
          Get the string values for the var
protected  double[] getTime(ucar.ma2.Range range)
          Get the time for each ob.
protected  Unit getTimeUnit()
          A utility to get the time unit
 ucar.nc2.dt.TrajectoryObsDatatype getTodt()
          Get TrajectoryObsDatatype
static float[] qcLatLon(float[] v)
          _more_
 
Methods inherited from class ucar.unidata.data.sounding.TrackInfo
addVariable, countReals, getAerologicalDiagramData, getAltitude, getDataVariable, getEndTime, getFloatData, getFullRange, getLatitude, getLongitude, getSpatialSet, getStartTime, getStringData, getTimeVals, getTrack, getTrackName, getTrackWithTime, getVariables, getVarsToUse, getVarType, getVarType, includeInPointData, makeEarthDomainSet, makeRAOB, setCoordinateVars
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VAR_LATITUDE

public static final String VAR_LATITUDE
Fixed var name for lat

See Also:
Constant Field Values

VAR_LONGITUDE

public static final String VAR_LONGITUDE
Fixed var name for lon

See Also:
Constant Field Values

VAR_ALTITUDE

public static final String VAR_ALTITUDE
Fixed var name for alt

See Also:
Constant Field Values

VAR_TIME

public static final String VAR_TIME
Fixed var name for time

See Also:
Constant Field Values
Constructor Detail

CdmTrackInfo

public CdmTrackInfo(TrackAdapter adapter,
                    ucar.nc2.dt.TrajectoryObsDataset tod,
                    ucar.nc2.dt.TrajectoryObsDatatype todt)
             throws Exception
ctor

Parameters:
adapter - The adapter
tod - tod
todt - todt
Throws:
Exception - On badness
Method Detail

getTodt

public ucar.nc2.dt.TrajectoryObsDatatype getTodt()
Get TrajectoryObsDatatype

Returns:
the TrajectoryObsDatatype

getNumberPoints

public int getNumberPoints()
Get number of points in track

Overrides:
getNumberPoints in class TrackInfo
Returns:
number of points

getDataRange

protected ucar.ma2.Range getDataRange()
                               throws Exception
Get the full range. Include the stride

Overrides:
getDataRange in class TrackInfo
Returns:
The range
Throws:
Exception - On badness

getTimeUnit

protected Unit getTimeUnit()
                    throws Exception
A utility to get the time unit

Overrides:
getTimeUnit in class TrackInfo
Returns:
The time unit
Throws:
Exception - On badness

getTime

protected double[] getTime(ucar.ma2.Range range)
                    throws Exception
Get the time for each ob. May be subset by range.

Overrides:
getTime in class TrackInfo
Parameters:
range - Subset on range. May be null
Returns:
time values
Throws:
Exception - On badness

qcLatLon

public static float[] qcLatLon(float[] v)
_more_

Parameters:
v - _more_
Returns:
_more_

getFloatData

protected float[] getFloatData(ucar.ma2.Range range,
                               String var)
                        throws Exception
Get the data values for the range.

Specified by:
getFloatData in class TrackInfo
Parameters:
range - subset. May be null
var - The variable
Returns:
values
Throws:
Exception - On badness

getDoubleData

protected double[] getDoubleData(ucar.ma2.Range range,
                                 String var)
                          throws Exception
_more_

Overrides:
getDoubleData in class TrackInfo
Parameters:
range - _more_
var - _more_
Returns:
_more_
Throws:
Exception - _more_

getStringData

protected String[] getStringData(ucar.ma2.Range range,
                                 String var)
                          throws Exception
Get the string values for the var

Specified by:
getStringData in class TrackInfo
Parameters:
range - subset. May be null.
var - The var
Returns:
string values
Throws:
Exception - On badness

getPointObTrack

public FieldImpl getPointObTrack(ucar.ma2.Range range)
                          throws Exception
Take a FlatField of data and turn it into a field of PointObs.

Overrides:
getPointObTrack in class TrackInfo
Parameters:
range - The data range of the request
Returns:
field of PointObs
Throws:
Exception - On badness