Class CdmTrackInfo

java.lang.Object
ucar.unidata.data.sounding.TrackInfo
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 Details

  • Constructor Details

    • CdmTrackInfo

      public CdmTrackInfo(TrackAdapter adapter, ucar.nc2.ft.FeatureDatasetPoint tod, ucar.nc2.ft.TrajectoryFeature todt) throws Exception
      ctor
      Parameters:
      adapter - The adapter
      tod - tod
      todt - todt
      Throws:
      Exception - On badness
  • Method Details

    • getStartTime

      public DateTime getStartTime()
      Description copied from class: TrackInfo
      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
    • getTodt

      public ucar.nc2.ft.TrajectoryFeature 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
    • 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
    • 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