Package ucar.nc2.dt.point
Class SequenceHelper.SeqPointObs
- java.lang.Object
-
- ucar.nc2.dt.point.PointObsDatatypeImpl
-
- ucar.nc2.dt.point.SequenceHelper.SeqPointObs
-
- All Implemented Interfaces:
Comparable,PointObsDatatype
- Enclosing class:
- SequenceHelper
public class SequenceHelper.SeqPointObs extends PointObsDatatypeImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description SeqPointObs(int recno, ucar.ma2.StructureData sdata)Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatypeprotectedSeqPointObs(ucar.unidata.geoloc.EarthLocation location, double obsTime, double nomTime, int recno)Constructor for the case where you keep track of the location, time of each record, but not the data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ucar.ma2.StructureDatagetData()The actual data of the observation.ucar.unidata.geoloc.LatLonPointgetLatLon()DategetNominalTimeAsDate()Nominal time of the observation, as a Date.DategetObservationTimeAsDate()Actual time of the observation, as a Date.-
Methods inherited from class ucar.nc2.dt.point.PointObsDatatypeImpl
compareTo, getLocation, getNominalTime, getObservationTime
-
-
-
-
Constructor Detail
-
SeqPointObs
protected SeqPointObs(ucar.unidata.geoloc.EarthLocation location, double obsTime, double nomTime, int recno)Constructor for the case where you keep track of the location, time of each record, but not the data.
-
SeqPointObs
public SeqPointObs(int recno, ucar.ma2.StructureData sdata)Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatype- Parameters:
recno- record number LOOK why do we need ??sdata- the structure data
-
-
Method Detail
-
getLatLon
public ucar.unidata.geoloc.LatLonPoint getLatLon()
-
getNominalTimeAsDate
public Date getNominalTimeAsDate()
Description copied from interface:PointObsDatatypeNominal time of the observation, as a Date.- Returns:
- nominal time of the observation as a Date
-
getObservationTimeAsDate
public Date getObservationTimeAsDate()
Description copied from interface:PointObsDatatypeActual time of the observation, as a Date.- Returns:
- actual time of the observation as a Date
-
getData
public ucar.ma2.StructureData getData() throws IOExceptionDescription copied from interface:PointObsDatatypeThe actual data of the observation.- Returns:
- the actual data of the observation.
- Throws:
IOException- on io error
-
-