ucar.nc2.dt.radial
Class StationRadarCollectionImpl

java.lang.Object
  extended by ucar.nc2.dt.TypedDatasetImpl
      extended by ucar.nc2.dt.radial.StationRadarCollectionImpl
All Implemented Interfaces:
StationRadarCollection, TypedDataset
Direct Known Subclasses:
DqcRadarDatasetCollection, TDSRadarDatasetCollection

public abstract class StationRadarCollectionImpl
extends TypedDatasetImpl
implements StationRadarCollection

Created by IntelliJ IDEA. User: yuanho Date: Feb 13, 2007 Time: 1:28:37 PM To change this template use File | Settings | File Templates.


Field Summary
protected  HashMap absTimesList
           
protected  HashMap relTimesList
           
protected  HashMap stations
           
protected  DateUnit timeUnit
           
 
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title
 
Constructor Summary
StationRadarCollectionImpl()
           
StationRadarCollectionImpl(StationRadarCollection radarDataset)
           
 
Method Summary
 boolean checkStationProduct(String stationName, Product product)
          check if the product available for one station
 LatLonRect getBoundingBox()
           
 Station getStation(String name)
           
 List getStations()
          Get all the Stations in the collection.
 List getStations(CancelTask cancel)
          Get all the Stations in the collection, allow user to cancel.
 List getStations(LatLonRect boundingBox)
          Get all the Stations within a bounding box.
 List getStations(LatLonRect boundingBox, CancelTask cancel)
          Get all the Stations within a bounding box, allow user to cancel.
 
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
close, findGlobalAttributeIgnoreCase, getDataVariable, getDataVariables, getDescription, getDetailInfo, getEndDate, getGlobalAttributes, getLocation, getLocationURI, getNetcdfFile, getStartDate, getTitle, removeDataVariable, setBoundingBox, setDescription, setEndDate, setLocationURI, setStartDate, setTitle
 
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.StationRadarCollection
checkStationProduct, getStationProductCount
 

Field Detail

stations

protected HashMap stations

relTimesList

protected HashMap relTimesList

absTimesList

protected HashMap absTimesList

timeUnit

protected DateUnit timeUnit
Constructor Detail

StationRadarCollectionImpl

public StationRadarCollectionImpl()

StationRadarCollectionImpl

public StationRadarCollectionImpl(StationRadarCollection radarDataset)
Method Detail

getBoundingBox

public LatLonRect getBoundingBox()
Specified by:
getBoundingBox in interface TypedDataset
Overrides:
getBoundingBox in class TypedDatasetImpl
Returns:
the boundingBox for the entire dataset.

getStations

public List getStations(LatLonRect boundingBox,
                        CancelTask cancel)
                 throws IOException
Description copied from interface: StationRadarCollection
Get all the Stations within a bounding box, allow user to cancel.

Specified by:
getStations in interface StationRadarCollection
Parameters:
boundingBox - restrict data to this bounding nox
cancel - allow user to cancel. Implementors should return ASAP.
Returns:
List of Station
Throws:
IOException - on io error

checkStationProduct

public boolean checkStationProduct(String stationName,
                                   Product product)
Description copied from interface: StationRadarCollection
check if the product available for one station

Specified by:
checkStationProduct in interface StationRadarCollection
Parameters:
stationName - which station
product - the given Product and Station
Returns:
true if data avaible for the given Product

getStation

public Station getStation(String name)
                   throws IOException
Throws:
IOException

getStations

public List getStations()
                 throws IOException
Description copied from interface: StationRadarCollection
Get all the Stations in the collection.

Specified by:
getStations in interface StationRadarCollection
Returns:
List of Station
Throws:
IOException - on io error

getStations

public List getStations(CancelTask cancel)
                 throws IOException
Get all the Stations in the collection, allow user to cancel.

Parameters:
cancel - allow user to cancel. Implementors should return ASAP.
Returns:
List of Station
Throws:
IOException

getStations

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

Returns:
List of Station
Throws:
IOException


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