ucar.nc2.dt.point
Class RecordDatasetHelper.RecordStationObs

java.lang.Object
  extended by ucar.nc2.dt.point.PointObsDatatypeImpl
      extended by ucar.nc2.dt.point.RecordDatasetHelper.RecordPointObs
          extended by 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
protected RecordDatasetHelper.RecordStationObs(int recno, StructureData sdata)
          Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatype
protected RecordDatasetHelper.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 RecordDatasetHelper.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
protected RecordDatasetHelper.RecordStationObs(Station station, StructureData sdata)
          Constructor for when you already have the StructureData and want to wrap it in a StationObsDatatype
 
Method Summary
 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 ucar.nc2.dt.PointObsDatatype
getLocation, getNominalTime, getNominalTimeAsDate, getObservationTime, getObservationTimeAsDate
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

RecordDatasetHelper.RecordStationObs

protected RecordDatasetHelper.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 Station
obsTime - observation time
nomTime - nominal time (may be NaN)
recno - data is at this record number

RecordDatasetHelper.RecordStationObs

protected RecordDatasetHelper.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

RecordDatasetHelper.RecordStationObs

protected RecordDatasetHelper.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 Station
obsTime - observation time
nomTime - nominal time (may be NaN)
sdata - the structure data

RecordDatasetHelper.RecordStationObs

protected RecordDatasetHelper.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 Station
sdata - the structure data
Method Detail

getStation

public Station getStation()
Description copied from interface: StationObsDatatype
Station location of the observation

Specified by:
getStation in interface StationObsDatatype
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 interface PointObsDatatype
Overrides:
getData in class RecordDatasetHelper.RecordPointObs
Returns:
the actual data of the observation.
Throws:
IOException - on io error


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.