Package ucar.nc2.dt.point
Class RecordDatasetHelper.RecordStationObs
- java.lang.Object
-
- ucar.nc2.dt.point.PointObsDatatypeImpl
-
- ucar.nc2.dt.point.RecordDatasetHelper.RecordPointObs
-
- ucar.nc2.dt.point.RecordDatasetHelper.RecordStationObs
-
- All Implemented Interfaces:
Comparable
,PointObsDatatype
,StationObsDatatype
- Enclosing class:
- RecordDatasetHelper
public class RecordDatasetHelper.RecordStationObs extends RecordDatasetHelper.RecordPointObs implements StationObsDatatype
-
-
Field Summary
-
Fields inherited from class ucar.nc2.dt.point.RecordDatasetHelper.RecordPointObs
llpt, recno, sdata
-
Fields inherited from class ucar.nc2.dt.point.PointObsDatatypeImpl
location, nomTime, obsTime
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RecordStationObs(int recno, StructureData sdata)
Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatypeprotected
RecordStationObs(Station station, double obsTime, double nomTime, int recno)
Constructor for the case where you keep track of the station, time of each record, but the data reading is deferred.protected
RecordStationObs(Station station, double obsTime, double nomTime, StructureData sdata)
Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatypeprotected
RecordStationObs(Station station, StructureData sdata)
Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatype
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StructureData
getData()
The actual data of the observation.Station
getStation()
Station location of the observation-
Methods inherited from class ucar.nc2.dt.point.RecordDatasetHelper.RecordPointObs
getLatLon, getNominalTimeAsDate, getObservationTimeAsDate
-
Methods inherited from class ucar.nc2.dt.point.PointObsDatatypeImpl
compareTo, getLocation, getNominalTime, getObservationTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface ucar.nc2.dt.PointObsDatatype
getLocation, getNominalTime, getNominalTimeAsDate, getObservationTime, getObservationTimeAsDate
-
-
-
-
Constructor Detail
-
RecordStationObs
protected RecordStationObs(Station station, double obsTime, double nomTime, int recno)
Constructor for the case where you keep track of the station, time of each record, but the data reading is deferred.- Parameters:
station
- data is for this StationobsTime
- observation timenomTime
- nominal time (may be NaN)recno
- data is at this record number
-
RecordStationObs
protected RecordStationObs(int recno, 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
-
RecordStationObs
protected RecordStationObs(Station station, double obsTime, double nomTime, StructureData sdata)
Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatype- Parameters:
station
- data is for this StationobsTime
- observation timenomTime
- nominal time (may be NaN)sdata
- the structure data
-
RecordStationObs
protected RecordStationObs(Station station, StructureData sdata)
Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatype- Parameters:
station
- data is for this Stationsdata
- the structure data
-
-
Method Detail
-
getStation
public Station getStation()
Description copied from interface:StationObsDatatype
Station location of the observation- Specified by:
getStation
in interfaceStationObsDatatype
- Returns:
- Station location of the observation
-
getData
public StructureData getData() throws IOException
Description copied from interface:PointObsDatatype
The actual data of the observation.- Specified by:
getData
in interfacePointObsDatatype
- Overrides:
getData
in classRecordDatasetHelper.RecordPointObs
- Returns:
- the actual data of the observation.
- Throws:
IOException
- on io error
-
-