Package ucar.nc2.dt.point
Class RecordDatasetHelper.RecordPointObs
- java.lang.Object
-
- ucar.nc2.dt.point.PointObsDatatypeImpl
-
- ucar.nc2.dt.point.RecordDatasetHelper.RecordPointObs
-
- All Implemented Interfaces:
Comparable,PointObsDatatype
- Direct Known Subclasses:
RecordDatasetHelper.RecordStationObs
- Enclosing class:
- RecordDatasetHelper
public class RecordDatasetHelper.RecordPointObs extends PointObsDatatypeImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRecordPointObs()RecordPointObs(int recno, ucar.ma2.StructureData sdata)Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatypeprotectedRecordPointObs(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
-
RecordPointObs
protected RecordPointObs()
-
RecordPointObs
protected RecordPointObs(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.
-
RecordPointObs
public RecordPointObs(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
-
-