ucar.nc2.thredds
Class TDSRadarDatasetCollection

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

public class TDSRadarDatasetCollection
extends ucar.nc2.dt.radial.StationRadarCollectionImpl

Created by IntelliJ IDEA. User: yuanho Date: Jan 8, 2008 Time: 10:55:57 AM To change this template use File | Settings | File Templates.


Nested Class Summary
 class TDSRadarDatasetCollection.DatasetURIInfo
          Class DatasetURIInfo _more_
 class TDSRadarDatasetCollection.InvDatasetInfo
          Class InvDatasetInfo _more_
 class TDSRadarDatasetCollection.TDSRadarDatasetInfo
          Class DqcRadarDatasetInfo _more_
 
Method Summary
 boolean checkStationProduct(Product product)
          _more_
 boolean checkStationProduct(java.lang.String sName, Product product)
          _more_
static TDSRadarDatasetCollection factory(InvDataset ds, java.lang.String dsc_location, java.lang.StringBuffer errlog)
          _more_
static TDSRadarDatasetCollection factory(java.lang.String desc, java.lang.String dsc_location, java.lang.StringBuffer errlog)
          _more_
 java.util.ArrayList getData(java.lang.String sName, DateSelection dateInfo)
          Getting data for a single radar station, with time range.
 java.util.ArrayList getData(java.lang.String sName, DateSelection dateSelect, CancelTask cancel)
          Getting data for a single radar station, with time range.
 DataIterator getDataIterator(int bufferSize)
          Getting data Iterator for a single radar station.
 java.util.ArrayList getDataURIs(java.lang.String sName, DateSelection dateInfo)
          Getting data URIs for a single radar station, with time range.
 java.util.ArrayList getDataURIs(java.lang.String sName, DateSelection dateSelect, CancelTask cancel)
          _more_
 java.lang.String getDescription()
          _more_
 java.lang.String getLocationURI()
          _more_
 RadialDatasetSweep getRadarDataset(java.lang.String stnName, java.util.Date absTime)
          Getting dataset for a single radar station.
 java.net.URI getRadarDatasetURI(java.lang.String stnName, java.util.Date absTime)
          Getting URI for a single radar station.
 java.util.List getRadarProducts()
          _more_
 LatLonRect getRadarsBoundingBox()
          _more_
 StationImpl getRadarStation(java.lang.String sName)
          get one radar station.
 java.util.ArrayList getRadarStationDatasets(java.lang.String stnName, java.util.Date start, java.util.Date end)
          Getting data Iterator for a single radar station.
 java.util.List getRadarStations()
          get all radar station.
 java.util.ArrayList getRadarStationTimes(java.lang.String stnName, java.util.Date start, java.util.Date end)
          Getting data URI list for a single radar station.
 java.util.ArrayList getRadarStationURIs(java.lang.String stnName, java.util.Date start, java.util.Date end)
          Getting data for a single radar station.
 java.util.List getRadarTimeSpan()
          _more_
 int getStationProductCount(java.lang.String sName)
          _more_
 java.util.List getStations()
          get all radar station.
 java.util.List getStations(CancelTask cancel)
          get all radar station within box.
 java.util.List getStations(LatLonRect boundingBox)
          get all radar station within box.
 java.util.List getStations(LatLonRect boundingBox, CancelTask cancel)
          get all radar station within box.
 java.lang.String getTitle()
          _more_
static void main(java.lang.String[] args)
          _more_
 org.jdom.Element readElements(org.jdom.Element elem, java.lang.String eleName)
          _more_
 java.util.HashMap readRadarStations(java.lang.String stsXML_location)
          _more_
 LatLonRect readSelectRegion(org.jdom.Element elem, org.jdom.Namespace ns)
          _more_
 java.util.List readSelectTime(org.jdom.Element elem, org.jdom.Namespace ns)
          _more_
 java.util.List readSelectVariable(org.jdom.Element elem, org.jdom.Namespace ns)
          _more_
static long roundTo(long roundTo, long seconds)
          Getting data for a single radar station, with time range and interval.
 
Methods inherited from class ucar.nc2.dt.radial.StationRadarCollectionImpl
getBoundingBox, getStation
 
Methods inherited from class ucar.nc2.dt.TypedDatasetImpl
close, findGlobalAttributeIgnoreCase, getDataVariable, getDataVariables, getDetailInfo, getEndDate, getGlobalAttributes, getNetcdfFile, getStartDate, setDescription, setLocationURI, setTitle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

factory

public static TDSRadarDatasetCollection factory(InvDataset ds,
                                                java.lang.String dsc_location,
                                                java.lang.StringBuffer errlog)
                                         throws java.io.IOException,
                                                java.net.URISyntaxException
_more_

Parameters:
ds - _more_
dsc_location - _more_
errlog - _more_
Returns:
_more_
Throws:
java.io.IOException - _more_
java.net.URISyntaxException

factory

public static TDSRadarDatasetCollection factory(java.lang.String desc,
                                                java.lang.String dsc_location,
                                                java.lang.StringBuffer errlog)
                                         throws java.io.IOException
_more_

Parameters:
desc - _more_
dsc_location - _more_
errlog - _more_
Returns:
_more_
Throws:
java.io.IOException - _more_

readRadarStations

public java.util.HashMap readRadarStations(java.lang.String stsXML_location)
                                    throws java.io.IOException
_more_

Returns:
station hashmap
Throws:
java.io.IOException

readElements

public org.jdom.Element readElements(org.jdom.Element elem,
                                     java.lang.String eleName)
_more_

Returns:
_more_

readSelectRegion

public LatLonRect readSelectRegion(org.jdom.Element elem,
                                   org.jdom.Namespace ns)
_more_

Returns:
_more_

readSelectTime

public java.util.List readSelectTime(org.jdom.Element elem,
                                     org.jdom.Namespace ns)
_more_

Returns:
list of times

readSelectVariable

public java.util.List readSelectVariable(org.jdom.Element elem,
                                         org.jdom.Namespace ns)
_more_

Returns:
list of varibles

getTitle

public java.lang.String getTitle()
_more_

Specified by:
getTitle in interface TypedDataset
Overrides:
getTitle in class TypedDatasetImpl
Returns:
_more_

getLocationURI

public java.lang.String getLocationURI()
_more_

Specified by:
getLocationURI in interface TypedDataset
Overrides:
getLocationURI in class TypedDatasetImpl
Returns:
_more_

getDescription

public java.lang.String getDescription()
_more_

Specified by:
getDescription in interface TypedDataset
Overrides:
getDescription in class TypedDatasetImpl
Returns:
_more_

getRadarsBoundingBox

public LatLonRect getRadarsBoundingBox()
_more_

Returns:
_more_

getRadarTimeSpan

public java.util.List getRadarTimeSpan()
_more_

Returns:
_more_

getRadarProducts

public java.util.List getRadarProducts()
_more_

Returns:
_more_

checkStationProduct

public boolean checkStationProduct(java.lang.String sName,
                                   Product product)
_more_

Parameters:
sName - _more_
product - _more_
Returns:
_more_

checkStationProduct

public boolean checkStationProduct(Product product)
_more_

Parameters:
product - _more_
Returns:
_more_

getStationProductCount

public int getStationProductCount(java.lang.String sName)
_more_

Parameters:
sName - _more_
Returns:
_more_

getStations

public java.util.List getStations()
                           throws java.io.IOException
get all radar station.

Specified by:
getStations in interface StationRadarCollection
Overrides:
getStations in class ucar.nc2.dt.radial.StationRadarCollectionImpl
Returns:
List of type DqcRadarStation objects
Throws:
java.io.IOException - java io exception

getRadarStations

public java.util.List getRadarStations()
get all radar station.

Returns:
List of type DqcRadarStation objects
Throws:
java.io.IOException - java io exception

getRadarStation

public StationImpl getRadarStation(java.lang.String sName)
get one radar station.

Returns:
StationImpl object
Throws:

getStations

public java.util.List getStations(CancelTask cancel)
                           throws java.io.IOException
get all radar station within box.

Overrides:
getStations in class ucar.nc2.dt.radial.StationRadarCollectionImpl
Parameters:
cancel - _more_
Returns:
List of type DqcRadarStation objects
Throws:
java.io.IOException - java io exception

getStations

public java.util.List getStations(LatLonRect boundingBox)
                           throws java.io.IOException
get all radar station within box.

Overrides:
getStations in class ucar.nc2.dt.radial.StationRadarCollectionImpl
Parameters:
boundingBox - _more_
Returns:
List of type DqcRadarStation objects
Throws:
java.io.IOException - java io exception

getStations

public java.util.List getStations(LatLonRect boundingBox,
                                  CancelTask cancel)
                           throws java.io.IOException
get all radar station within box.

Specified by:
getStations in interface StationRadarCollection
Overrides:
getStations in class ucar.nc2.dt.radial.StationRadarCollectionImpl
Parameters:
boundingBox - _more_
cancel - _more_
Returns:
List of type DqcRadarStation objects
Throws:
java.io.IOException - java io exception

getRadarDataset

public RadialDatasetSweep getRadarDataset(java.lang.String stnName,
                                          java.util.Date absTime)
                                   throws java.io.IOException
Getting dataset for a single radar station.

Parameters:
stnName - radar station name
absTime - is absolute time
Returns:
RadialDatasetSweep object
Throws:
java.io.IOException - java io exception

getRadarDatasetURI

public java.net.URI getRadarDatasetURI(java.lang.String stnName,
                                       java.util.Date absTime)
                                throws java.io.IOException
Getting URI for a single radar station.

Parameters:
stnName - radar station name
absTime - is absolute time
Returns:
URI
Throws:
java.io.IOException - java io exception

getRadarStationURIs

public java.util.ArrayList getRadarStationURIs(java.lang.String stnName,
                                               java.util.Date start,
                                               java.util.Date end)
                                        throws java.io.IOException
Getting data for a single radar station.

Parameters:
stnName - radar station name
start - of the time
end - of the time
Returns:
data URI list
Throws:
java.io.IOException - java io exception

getRadarStationDatasets

public java.util.ArrayList getRadarStationDatasets(java.lang.String stnName,
                                                   java.util.Date start,
                                                   java.util.Date end)
                                            throws java.io.IOException
Getting data Iterator for a single radar station.

Parameters:
stnName - radar station name
start - of the time
end - of the time
Returns:
dataset list
Throws:
java.io.IOException - java io exception

getRadarStationTimes

public java.util.ArrayList getRadarStationTimes(java.lang.String stnName,
                                                java.util.Date start,
                                                java.util.Date end)
                                         throws java.io.IOException
Getting data URI list for a single radar station.

Parameters:
stnName - radar station name
start - of the time
end - of the time
Returns:
list of URIs
Throws:
java.io.IOException - java io exception

getDataIterator

public DataIterator getDataIterator(int bufferSize)
                             throws java.io.IOException
Getting data Iterator for a single radar station.

Parameters:
bufferSize -
Returns:
data iterator
Throws:
java.io.IOException - java io exception

getDataURIs

public java.util.ArrayList getDataURIs(java.lang.String sName,
                                       DateSelection dateInfo)
                                throws java.io.IOException
Getting data URIs for a single radar station, with time range.

Parameters:
sName - radar station name
dateInfo - the date selection information
Returns:
list of URIs
Throws:
java.io.IOException - _more_

getData

public java.util.ArrayList getData(java.lang.String sName,
                                   DateSelection dateInfo)
                            throws java.io.IOException
Getting data for a single radar station, with time range.

Parameters:
sName - radar station name
dateInfo - the date time selection information
Returns:
list of radialDatasetSweep
Throws:
java.io.IOException - _more_

getData

public java.util.ArrayList getData(java.lang.String sName,
                                   DateSelection dateSelect,
                                   CancelTask cancel)
                            throws java.io.IOException
Getting data for a single radar station, with time range.

Parameters:
sName - radar station name
dateSelect - the date time selection information
cancel - _more_
Returns:
list of radialDatasetSweep
Throws:
java.io.IOException - _more_

getDataURIs

public java.util.ArrayList getDataURIs(java.lang.String sName,
                                       DateSelection dateSelect,
                                       CancelTask cancel)
                                throws java.io.IOException
_more_

Parameters:
sName - _more_
dateSelect - _more_
cancel - _more_
Returns:
_more_
Throws:
java.io.IOException - _more_

roundTo

public static long roundTo(long roundTo,
                           long seconds)
Getting data for a single radar station, with time range and interval.

Parameters:
roundTo -
seconds - to be round to
Returns:
round to second

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
_more_

Parameters:
args - _more_
Throws:
java.io.IOException - _more_