ucar.nc2.dt.point
Class StationDatasetHelper

java.lang.Object
  extended by ucar.nc2.dt.point.StationDatasetHelper

public class StationDatasetHelper
extends java.lang.Object

Helper class for StationObsDataset. StationObsDataset must implement: getStations() getData( Station s) This assumes that calling getData( Station s) is reletively cheap, ie that theres no cheaper filtering to do.

Version:
$Revision:51 $ $Date:2006-07-12 17:13:13Z $
Author:
caron

Constructor Summary
StationDatasetHelper(StationObsDataset obsDataset)
           
 
Method Summary
 LatLonRect getBoundingBox()
           
 Station getStation(java.lang.String name)
           
 java.util.List getStationObs(LatLonRect boundingBox, CancelTask cancel)
           
 java.util.List getStationObs(LatLonRect boundingBox, double startTime, double endTime, CancelTask cancel)
           
 java.util.List getStationObs(java.util.List stations, CancelTask cancel)
           
 java.util.List getStationObs(java.util.List stations, double startTime, double endTime, CancelTask cancel)
           
 java.util.List getStationObs(Station s, double startTime, double endTime, CancelTask cancel)
           
 java.util.List getStations(LatLonRect boundingBox, CancelTask cancel)
           
 void sortByTime(java.util.List stationObs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationDatasetHelper

public StationDatasetHelper(StationObsDataset obsDataset)
Method Detail

getBoundingBox

public LatLonRect getBoundingBox()

getStations

public java.util.List getStations(LatLonRect boundingBox,
                                  CancelTask cancel)
                           throws java.io.IOException
Throws:
java.io.IOException

getStation

public Station getStation(java.lang.String name)

getStationObs

public java.util.List getStationObs(Station s,
                                    double startTime,
                                    double endTime,
                                    CancelTask cancel)
                             throws java.io.IOException
Throws:
java.io.IOException

getStationObs

public java.util.List getStationObs(java.util.List stations,
                                    CancelTask cancel)
                             throws java.io.IOException
Throws:
java.io.IOException

getStationObs

public java.util.List getStationObs(java.util.List stations,
                                    double startTime,
                                    double endTime,
                                    CancelTask cancel)
                             throws java.io.IOException
Throws:
java.io.IOException

getStationObs

public java.util.List getStationObs(LatLonRect boundingBox,
                                    CancelTask cancel)
                             throws java.io.IOException
Throws:
java.io.IOException

getStationObs

public java.util.List getStationObs(LatLonRect boundingBox,
                                    double startTime,
                                    double endTime,
                                    CancelTask cancel)
                             throws java.io.IOException
Throws:
java.io.IOException

sortByTime

public void sortByTime(java.util.List stationObs)