ucar.nc2.dt.point
Class StationDatasetCollection

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

public class StationDatasetCollection
extends Object

A Collection of StationDatasets


Constructor Summary
StationDatasetCollection()
           
 
Method Summary
 void add(String location)
           
 DataIterator getDataIterator(Station s)
          Get all data for this Station.
 DataIterator getDataIterator(Station s, Date start, Date end)
          Get data for this Station within the specified date range.
 Station getStation(String name)
          Find a Station by name
 List getStations()
          Get all the Stations in the collection.
 List getStations(LatLonRect boundingBox)
          Get all the Stations within a bounding box.
static void main(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(String location)
         throws IOException
Throws:
IOException

getStations

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

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

getStations

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

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

getStation

public Station getStation(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 IOException
Get all data for this Station.

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

getDataIterator

public DataIterator getDataIterator(Station s,
                                    Date start,
                                    Date end)
                             throws 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:
IOException - I/O error

main

public static void main(String[] args)
                 throws IOException,
                        ParseException
Throws:
IOException
ParseException


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