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 protectedRecordStationObs(int recno, ucar.ma2.StructureData sdata)Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatypeprotectedRecordStationObs(ucar.unidata.geoloc.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.protectedRecordStationObs(ucar.unidata.geoloc.Station station, double obsTime, double nomTime, ucar.ma2.StructureData sdata)Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatypeprotectedRecordStationObs(ucar.unidata.geoloc.Station station, ucar.ma2.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 ucar.ma2.StructureDatagetData()The actual data of the observation.ucar.unidata.geoloc.StationgetStation()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(ucar.unidata.geoloc.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, 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
-
RecordStationObs
protected RecordStationObs(ucar.unidata.geoloc.Station station, double obsTime, double nomTime, ucar.ma2.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(ucar.unidata.geoloc.Station station, ucar.ma2.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 ucar.unidata.geoloc.Station getStation()
Description copied from interface:StationObsDatatypeStation location of the observation- Specified by:
getStationin interfaceStationObsDatatype- Returns:
- Station location of the observation
-
getData
public ucar.ma2.StructureData getData() throws IOExceptionDescription copied from interface:PointObsDatatypeThe actual data of the observation.- Specified by:
getDatain interfacePointObsDatatype- Overrides:
getDatain classRecordDatasetHelper.RecordPointObs- Returns:
- the actual data of the observation.
- Throws:
IOException- on io error
-
-