Class SingleTrajectoryObsDataset

  • All Implemented Interfaces:
    Closeable, AutoCloseable, TrajectoryObsDataset, TypedDataset
    Direct Known Subclasses:
    ARMTrajectoryObsDataset, RafTrajectoryObsDataset, SimpleTrajectoryObsDataset, UnidataTrajectoryObsDataset, ZebraClassTrajectoryObsDataset

    public class SingleTrajectoryObsDataset
    extends TypedDatasetImpl
    implements TrajectoryObsDataset
    Deprecated.
    use ucar.nc2.ft.*
    Superclass for for implementations of TrajectoryObsDataset using a NetcdfFile underneath that contains a single trajectory. The file must have a single coordinate variable for time. The time dimension may be UNLIMITED (if time is not UNLIMITED, there must be no UNLIMITED dimension). The file must also have a latitude variable, a longitude variable, and an elevation variable each on the time dimension only. The data variables also must be on the time dimension but they can also have other dimensions. For instance:
     time( time)  - convertable to -> double
     lat( time)   - convertable to -> double
     lon( time)   - convertable to -> double
     elev( time)  - convertable to -> double
     var1( time[, dim#]*)
     ...
     varN( time[, dim#]*)
     
    Since:
    5 May 2005 10:12 -0600
    • Field Detail

      • trajectoryId

        protected String trajectoryId
        Deprecated.
      • trajectoryNumPoint

        protected int trajectoryNumPoint
        Deprecated.
      • trajectoryVarsMap

        protected HashMap trajectoryVarsMap
        Deprecated.
      • timeDim

        protected Dimension timeDim
        Deprecated.
      • timeVar

        protected Variable timeVar
        Deprecated.
      • recordVar

        protected Structure recordVar
        Deprecated.
      • latVar

        protected Variable latVar
        Deprecated.
      • lonVar

        protected Variable lonVar
        Deprecated.
      • elevVar

        protected Variable elevVar
        Deprecated.
      • timeVarUnitsString

        protected String timeVarUnitsString
        Deprecated.
      • elevVarUnitsConversionFactor

        protected double elevVarUnitsConversionFactor
        Deprecated.
    • Constructor Detail

      • SingleTrajectoryObsDataset

        public SingleTrajectoryObsDataset()
        Deprecated.
      • SingleTrajectoryObsDataset

        public SingleTrajectoryObsDataset​(NetcdfDataset ncfile)
        Deprecated.
    • Method Detail

      • setTrajectoryInfo

        public void setTrajectoryInfo​(SingleTrajectoryObsDataset.Config trajConfig)
                               throws IOException
        Deprecated.
        Setup needed for all SingleTrajectoryObsDatatypes. Can only be called once. Units of time varible must be udunits time units. Units of latitude variable must be convertible to "degrees_north" by udunits. Units of longitude variable must be convertible to "degrees_east" by udunits. Units of altitude variable must be convertible to "meters" by udunits.
        Throws:
        IllegalArgumentException - if units of time, latitude, longitude, or altitude variables are not as required.
        IllegalStateException - if this method has already been called.
        IOException
      • getMetersConversionFactor

        protected static double getMetersConversionFactor​(String unitsString)
                                                   throws Exception
        Deprecated.
        Throws:
        Exception
      • syncExtend

        public boolean syncExtend()
        Deprecated.
        Description copied from interface: TrajectoryObsDataset
        Syncronize with the underlying dataset if it has been extended in a way that is compatible with the existing structural metadata (for instance, if the unlimited dimension has grown). Return true if syncronization was needed and sucessful. Otherwise, return false. NOTE: For now, assuming growth of the unlimited dimension only allowed change. To get range for new extent only, use getRange( oldNumPoints + 1, newNumPoints, 1)
        Specified by:
        syncExtend in interface TrajectoryObsDataset
        Returns:
        true if syncronization was needed and sucessful, otherwise false.