ucar.unidata.data.sounding
Class CDMTrajectoryFeatureTypeInfo

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

public class CDMTrajectoryFeatureTypeInfo
extends TrackInfo

Created by IntelliJ IDEA. User: yuanho Date: Sep 17, 2010 Time: 1:37:50 PM To change this template use File | Settings | File Templates.


Nested Class Summary
static class CDMTrajectoryFeatureTypeInfo.StationBean
          Class description
static class CDMTrajectoryFeatureTypeInfo.TrajectoryFeatureBean
          Class description
 
Field Summary
 
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
CDMTrajectoryFeatureTypeInfo(TrackAdapter adapter, ucar.nc2.ft.FeatureDatasetPoint fdp, ucar.nc2.ft.TrajectoryFeatureCollection tfc)
          ctor
 
Method Summary
protected  float[] getAltitude(ucar.ma2.Range range)
          _more_
protected  ucar.ma2.Range getDataRange()
          Get the full range.
 double[] getDoubleData(ucar.ma2.Range range, String var)
          _more_
 DateTime getEndTime()
          _more_
 float[] getFloatData(ucar.ma2.Range range, String var)
          Get the data values for the range.
 ucar.nc2.ft.TrajectoryFeatureCollection getFt()
          Get TrajectoryObsDatatype
protected  float[] getLatitude(ucar.ma2.Range range)
          _more_
protected  float[] getLongitude(ucar.ma2.Range range)
          _more_
 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.
 DateTime getStartTime()
          _more_
 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()
          What is the time unit
 double[] getTimeVals(ucar.ma2.Range range)
          Get the time values for the range
static float[] qcLatLon(float[] v)
          _more_
 
Methods inherited from class ucar.unidata.data.sounding.TrackInfo
addVariable, countReals, getAerologicalDiagramData, getDataVariable, getFloatData, getFullRange, getSpatialSet, getStringData, 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
 

Constructor Detail

CDMTrajectoryFeatureTypeInfo

public CDMTrajectoryFeatureTypeInfo(TrackAdapter adapter,
                                    ucar.nc2.ft.FeatureDatasetPoint fdp,
                                    ucar.nc2.ft.TrajectoryFeatureCollection tfc)
                             throws Exception
ctor

Parameters:
adapter - The adapter
fdp -
tfc -
Throws:
Exception - On badness
Method Detail

getTimeUnit

protected Unit getTimeUnit()
                    throws Exception
Description copied from class: TrackInfo
What is the time unit

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

getFt

public ucar.nc2.ft.TrajectoryFeatureCollection getFt()
Get TrajectoryObsDatatype

Returns:
the TrajectoryObsDatatype

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

getNumberPoints

public int getNumberPoints()
Get number of points in track

Overrides:
getNumberPoints in class TrackInfo
Returns:
number of points

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

getTimeVals

public double[] getTimeVals(ucar.ma2.Range range)
                     throws Exception
Description copied from class: TrackInfo
Get the time values for the range

Overrides:
getTimeVals in class TrackInfo
Parameters:
range - range to use
Returns:
time values in range
Throws:
Exception - problem getting time values

getStartTime

public DateTime getStartTime()
_more_

Overrides:
getStartTime in class TrackInfo
Returns:
_more_

getEndTime

public DateTime getEndTime()
_more_

Overrides:
getEndTime in class TrackInfo
Returns:
_more_

qcLatLon

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

Parameters:
v - _more_
Returns:
_more_

getAltitude

protected float[] getAltitude(ucar.ma2.Range range)
                       throws Exception
_more_

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

getLatitude

protected float[] getLatitude(ucar.ma2.Range range)
                       throws Exception
_more_

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

getLongitude

protected float[] getLongitude(ucar.ma2.Range range)
                        throws Exception
_more_

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

getFloatData

public 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

public 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

public 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