ucar.nc2.dt.point
Class StationDatasetCollection

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

public class StationDatasetCollection
extends java.lang.Object

A Collection of StationDatasets


Constructor Summary
StationDatasetCollection()
           
 
Method Summary
 void add(java.lang.String location)
           
 DataIterator getDataIterator(Station s)
          Get all data for this Station.
 DataIterator getDataIterator(Station s, java.util.Date start, java.util.Date end)
          Get data for this Station within the specified date range.
 Station getStation(java.lang.String name)
          Find a Station by name
 java.util.List getStations()
          Get all the Stations in the collection.
 java.util.List getStations(LatLonRect boundingBox)
          Get all the Stations within a bounding box.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StationDatasetCollection

public StationDatasetCollection()
Method Detail

add

public void add(java.lang.String location)
         throws java.io.IOException
Throws:
java.io.IOException

getStations

public java.util.List getStations()
                           throws java.io.IOException
Get all the Stations in the collection.

Returns:
List of Station
Throws:
java.io.IOException - I/O error

getStations

public java.util.List getStations(LatLonRect boundingBox)
                           throws java.io.IOException
Get all the Stations within a bounding box.

Parameters:
boundingBox - within this bounding box
Returns:
List of Station
Throws:
java.io.IOException - I/O error

getStation

public Station getStation(java.lang.String name)
Find a Station by name

Parameters:
name - name of the Station
Returns:
Station with that name, or null if not found

getDataIterator

public DataIterator getDataIterator(Station s)
                             throws java.io.IOException
Get all data for this Station.

Parameters:
s - Station
Returns:
iterator over type getDataClass()
Throws:
java.io.IOException - I/O error

getDataIterator

public DataIterator getDataIterator(Station s,
                                    java.util.Date start,
                                    java.util.Date end)
                             throws java.io.IOException
Get data for this Station within the specified date range.

Parameters:
s - Station
start - starting Date
end - ending Date
Returns:
Iterator over type getDataClass()
Throws:
java.io.IOException - I/O error

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        java.text.ParseException
Throws:
java.io.IOException
java.text.ParseException