Class CDMTrajectoryFeatureTypeInfo

java.lang.Object
ucar.unidata.data.sounding.TrackInfo
ucar.unidata.data.sounding.CDMTrajectoryFeatureTypeInfo
Direct Known Subclasses:
CDMTrajectoryFeatureTypeInfo.PointFeatureTypeInfo, CDMTrajectoryFeatureTypeInfo.TrajectoryFeatureTypeInfo

public abstract class CDMTrajectoryFeatureTypeInfo extends TrackInfo
The Class CDMTrajectoryFeatureTypeInfo.
  • Constructor Details

    • CDMTrajectoryFeatureTypeInfo

      public CDMTrajectoryFeatureTypeInfo(TrajectoryFeatureTypeAdapter adapter, ucar.nc2.ft.FeatureDatasetPoint dataset, ucar.nc2.ft.DsgFeatureCollection fc) throws Exception
      Instantiates a new CDM trajectory feature type info.
      Parameters:
      adapter - the adapter
      dataset - the dataset
      fc - the fc
      Throws:
      Exception - the exception
  • Method Details

    • 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
    • initHelper

      protected CDMTrajectoryFeatureTypeInfo.TrajectoryFeatureBean initHelper(ucar.nc2.ft.DsgFeatureCollection fc) throws IOException
      Helps init method get observations
      Parameters:
      fc - the fc
      Returns:
      the trajectory feature bean
      Throws:
      IOException
    • init

      protected void init(CDMTrajectoryFeatureTypeInfo.TrajectoryFeatureBean trajBean) throws Exception
      Init method.
      Parameters:
      trajBean - trajectory bean
      Throws:
      Exception - the exception
    • 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
      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()
      Get the starting time of this track.
      Overrides:
      getStartTime in class TrackInfo
      Returns:
      starting time
    • getEndTime

      public DateTime getEndTime()
      Get the ending time of this track.
      Overrides:
      getEndTime in class TrackInfo
      Returns:
      ending time
    • getAltitude

      protected float[] getAltitude(ucar.ma2.Range range) throws Exception
      get altitude values
      Overrides:
      getAltitude in class TrackInfo
      Parameters:
      range - subset on range. May be null
      Returns:
      altitude values
      Throws:
      Exception - On badness
    • getLatitude

      protected float[] getLatitude(ucar.ma2.Range range) throws Exception
      Get latitude values
      Overrides:
      getLatitude in class TrackInfo
      Parameters:
      range - subset on range. may be null
      Returns:
      latitude values
      Throws:
      Exception - On badness
    • getLongitude

      protected float[] getLongitude(ucar.ma2.Range range) throws Exception
      get longitude values
      Overrides:
      getLongitude in class TrackInfo
      Parameters:
      range - subset on range. may be null
      Returns:
      longitude values
      Throws:
      Exception - On badness
    • 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