public class IdvRadarDatasetCollection extends StationRadarCollectionImpl
Modifier and Type | Class and Description |
---|---|
class |
IdvRadarDatasetCollection.DatasetURIInfo
The Class DatasetURIInfo.
|
class |
IdvRadarDatasetCollection.InvDatasetInfo
Class to hold an InvDataset and a Date
|
class |
IdvRadarDatasetCollection.TDSRadarDatasetInfo
Class to hold some information about TDS Radar Datasets
|
Modifier and Type | Field and Description |
---|---|
protected static org.jdom2.Namespace |
defNS
_more_
|
protected java.util.HashMap<java.lang.String,ucar.unidata.geoloc.Station> |
stationHMap
map of station name to station
|
absTimesList, relTimesList, stations, timeUnit
Modifier and Type | Method and Description |
---|---|
boolean |
checkStationProduct(Product product)
check the exist of a product in this dataset collection
|
boolean |
checkStationProduct(java.lang.String sName,
Product product)
check the exist of a product in this dataset collection
|
static IdvRadarDatasetCollection |
factory(thredds.catalog.InvDataset ds,
java.lang.String dsc_location,
java.lang.StringBuffer errlog)
tds radar dataset collection factory.
|
static IdvRadarDatasetCollection |
factory(java.lang.String desc,
java.lang.String dsc_location,
java.lang.StringBuffer errlog)
tds radar dataset collection factory.
|
java.util.List |
getData(java.lang.String sName,
DateSelection dateInfo)
Getting data for a single radar station, with time range.
|
java.util.List |
getData(java.lang.String sName,
DateSelection dateSelect,
ucar.nc2.util.CancelTask cancel)
Getting data for a single radar station, with time range.
|
ucar.nc2.dt.DataIterator |
getDataIterator(int bufferSize)
Getting data Iterator for a single radar station.
|
java.util.List |
getDataURIs(java.lang.String sName,
DateSelection dateInfo)
Getting data URIs for a single radar station, with time range.
|
java.util.List<java.net.URI> |
getDataURIs(java.lang.String sName,
DateSelection dateSelect,
ucar.nc2.util.CancelTask cancel)
getting data uri list
|
java.lang.String |
getDescription()
get dataset collection description
|
java.lang.String |
getLocation()
get dataset collection URI
|
java.net.URI |
getQueryRadarStationURI(java.lang.String stnName,
java.lang.String productID,
java.util.Date start,
java.util.Date end)
_more_
|
ucar.nc2.dt.RadialDatasetSweep |
getRadarDataset(java.lang.String stnName,
java.util.Date absTime)
Getting dataset for a single radar station.
|
ucar.nc2.dt.RadialDatasetSweep |
getRadarDataset(java.lang.String stnName,
java.lang.String productID,
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.net.URI |
getRadarDatasetURI(java.lang.String stnName,
java.lang.String productID,
java.util.Date absTime)
_more_
|
java.util.List |
getRadarProducts()
get products of dataset collection
|
ucar.unidata.geoloc.LatLonRect |
getRadarsBoundingBox()
get bounding box of dataset collection
|
ucar.unidata.geoloc.Station |
getRadarStation(java.lang.String sName)
get one radar station.
|
java.util.List |
getRadarStationDatasets(java.lang.String stnName,
java.util.Date start,
java.util.Date end)
Getting data Iterator for a single radar station.
|
java.util.List<ucar.unidata.geoloc.Station> |
getRadarStations()
get all radar station.
|
java.util.List<java.util.Date> |
getRadarStationTimes(java.lang.String stnName,
java.util.Date start,
java.util.Date end)
Getting data URI list for a single radar station.
|
java.util.List<java.util.Date> |
getRadarStationTimes(java.lang.String stnName,
java.lang.String productID,
java.util.Date start,
java.util.Date end)
Getting data URI list for a single radar station.
|
java.util.List |
getRadarStationURIs(java.lang.String stnName,
java.util.Date start,
java.util.Date end)
Getting data for a single radar station.
|
java.util.List |
getRadarTimeSpan()
get start and end time of dataset collection
|
int |
getStationProductCount(java.lang.String sName)
get the number of products
|
java.util.List<ucar.unidata.geoloc.Station> |
getStations()
get all radar station.
|
java.util.List<ucar.unidata.geoloc.Station> |
getStations(ucar.nc2.util.CancelTask cancel)
get all radar station within box.
|
java.util.List<ucar.unidata.geoloc.Station> |
getStations(ucar.unidata.geoloc.LatLonRect boundingBox)
get all radar station within box.
|
java.util.List<ucar.unidata.geoloc.Station> |
getStations(ucar.unidata.geoloc.LatLonRect boundingBox,
ucar.nc2.util.CancelTask cancel)
get all radar station within box.
|
java.lang.String |
getTitle()
get title of dataset collection
|
static void |
main(java.lang.String[] args)
Test the program.
|
org.jdom2.Element |
readElements(org.jdom2.Element elem,
java.lang.String eleName)
get named element from parent element
|
java.util.HashMap |
readRadarStations(java.lang.String stsXML_location)
retrieve all radar stations in this dataset collection
|
ucar.unidata.geoloc.LatLonRect |
readSelectRegion(org.jdom2.Element elem,
org.jdom2.Namespace ns)
get region from parent element
|
java.util.List<java.lang.String> |
readSelectTime(org.jdom2.Element elem,
org.jdom2.Namespace ns)
get start and end elemnt form parent element
|
java.util.List<Product> |
readSelectVariable(org.jdom2.Element elem,
org.jdom2.Namespace ns)
get variable list from parent element
|
static long |
roundTo(long roundTo,
long seconds)
Getting data for a single radar station, with time range and interval.
|
protected void |
setBoundingBox()
_more_
|
protected void |
setEndDate()
_more_
|
protected void |
setStartDate()
_more_
|
protected void |
setTimeUnits()
_more_
|
getBoundingBox, getStation
protected java.util.HashMap<java.lang.String,ucar.unidata.geoloc.Station> stationHMap
protected static final org.jdom2.Namespace defNS
public static IdvRadarDatasetCollection factory(thredds.catalog.InvDataset ds, java.lang.String dsc_location, java.lang.StringBuffer errlog) throws java.io.IOException
ds
- the dsdsc_location
- the dsc_locationerrlog
- the errlogjava.io.IOException
- Signals that an I/O exception has occurred.public static IdvRadarDatasetCollection factory(java.lang.String desc, java.lang.String dsc_location, java.lang.StringBuffer errlog) throws java.io.IOException
desc
- the descdsc_location
- the dsc_locationerrlog
- the errlogjava.io.IOException
- Signals that an I/O exception has occurred.public java.util.HashMap readRadarStations(java.lang.String stsXML_location) throws java.io.IOException
stsXML_location
- _more_java.io.IOException
- _more_public org.jdom2.Element readElements(org.jdom2.Element elem, java.lang.String eleName)
elem
- _more_eleName
- _more_public ucar.unidata.geoloc.LatLonRect readSelectRegion(org.jdom2.Element elem, org.jdom2.Namespace ns)
elem
- _more_ns
- _more_public java.util.List<java.lang.String> readSelectTime(org.jdom2.Element elem, org.jdom2.Namespace ns)
elem
- _more_ns
- _more_public java.util.List<Product> readSelectVariable(org.jdom2.Element elem, org.jdom2.Namespace ns)
elem
- _more_ns
- _more_protected void setTimeUnits()
protected void setStartDate()
setStartDate
in class ucar.nc2.dt.TypedDatasetImpl
protected void setEndDate()
setEndDate
in class ucar.nc2.dt.TypedDatasetImpl
protected void setBoundingBox()
setBoundingBox
in class ucar.nc2.dt.TypedDatasetImpl
public java.lang.String getTitle()
getTitle
in interface ucar.nc2.dt.TypedDataset
getTitle
in class ucar.nc2.dt.TypedDatasetImpl
public java.lang.String getLocation()
getLocation
in class ucar.nc2.dt.TypedDatasetImpl
public java.lang.String getDescription()
getDescription
in interface ucar.nc2.dt.TypedDataset
getDescription
in class ucar.nc2.dt.TypedDatasetImpl
public ucar.unidata.geoloc.LatLonRect getRadarsBoundingBox()
public java.util.List getRadarTimeSpan()
public java.util.List getRadarProducts()
public boolean checkStationProduct(java.lang.String sName, Product product)
checkStationProduct
in interface StationRadarCollection
checkStationProduct
in class StationRadarCollectionImpl
sName
- _more_product
- _more_public boolean checkStationProduct(Product product)
product
- _more_public int getStationProductCount(java.lang.String sName)
sName
- _more_public java.util.List<ucar.unidata.geoloc.Station> getStations() throws java.io.IOException
getStations
in interface StationRadarCollection
getStations
in class StationRadarCollectionImpl
java.io.IOException
- java io exceptionpublic java.util.List<ucar.unidata.geoloc.Station> getRadarStations()
public ucar.unidata.geoloc.Station getRadarStation(java.lang.String sName)
sName
- _more_public java.util.List<ucar.unidata.geoloc.Station> getStations(ucar.nc2.util.CancelTask cancel) throws java.io.IOException
getStations
in class StationRadarCollectionImpl
cancel
- cancel taskjava.io.IOException
- java io exceptionpublic java.util.List<ucar.unidata.geoloc.Station> getStations(ucar.unidata.geoloc.LatLonRect boundingBox) throws java.io.IOException
getStations
in class StationRadarCollectionImpl
boundingBox
- the bounding boxjava.io.IOException
- java io exceptionpublic java.util.List<ucar.unidata.geoloc.Station> getStations(ucar.unidata.geoloc.LatLonRect boundingBox, ucar.nc2.util.CancelTask cancel) throws java.io.IOException
getStations
in interface StationRadarCollection
getStations
in class StationRadarCollectionImpl
boundingBox
- the bounding boxcancel
- the cancel taskjava.io.IOException
- java io exceptionpublic ucar.nc2.dt.RadialDatasetSweep getRadarDataset(java.lang.String stnName, java.util.Date absTime) throws java.io.IOException
stnName
- radar station nameabsTime
- is absolute timejava.io.IOException
- java io exceptionpublic ucar.nc2.dt.RadialDatasetSweep getRadarDataset(java.lang.String stnName, java.lang.String productID, java.util.Date absTime) throws java.io.IOException
stnName
- radar station nameproductID
- _more_absTime
- is absolute timejava.io.IOException
- java io exceptionpublic java.net.URI getRadarDatasetURI(java.lang.String stnName, java.util.Date absTime) throws java.io.IOException
stnName
- radar station nameabsTime
- is absolute timejava.io.IOException
- java io exceptionpublic java.net.URI getQueryRadarStationURI(java.lang.String stnName, java.lang.String productID, java.util.Date start, java.util.Date end) throws java.io.IOException
stnName
- _more_productID
- _more_start
- _more_end
- _more_java.io.IOException
- _more_public java.net.URI getRadarDatasetURI(java.lang.String stnName, java.lang.String productID, java.util.Date absTime) throws java.io.IOException
stnName
- _more_productID
- _more_absTime
- _more_java.io.IOException
- _more_public java.util.List getRadarStationURIs(java.lang.String stnName, java.util.Date start, java.util.Date end) throws java.io.IOException
stnName
- radar station namestart
- of the timeend
- of the timejava.io.IOException
- java io exceptionpublic java.util.List getRadarStationDatasets(java.lang.String stnName, java.util.Date start, java.util.Date end) throws java.io.IOException
stnName
- radar station namestart
- of the timeend
- of the timejava.io.IOException
- java io exceptionpublic java.util.List<java.util.Date> getRadarStationTimes(java.lang.String stnName, java.util.Date start, java.util.Date end) throws java.io.IOException
stnName
- radar station namestart
- of the timeend
- of the timejava.io.IOException
- java io exceptionpublic java.util.List<java.util.Date> getRadarStationTimes(java.lang.String stnName, java.lang.String productID, java.util.Date start, java.util.Date end) throws java.io.IOException
stnName
- radar station nameproductID
- _more_start
- of the timeend
- of the timejava.io.IOException
- java io exceptionpublic ucar.nc2.dt.DataIterator getDataIterator(int bufferSize) throws java.io.IOException
bufferSize
- the buffer sizejava.io.IOException
- Signals that an I/O exception has occurred.public java.util.List getDataURIs(java.lang.String sName, DateSelection dateInfo) throws java.io.IOException
sName
- radar station namedateInfo
- the date selection informationjava.io.IOException
- Signals that an I/O exception has occurred.public java.util.List getData(java.lang.String sName, DateSelection dateInfo) throws java.io.IOException
sName
- radar station namedateInfo
- the date time selection informationjava.io.IOException
- Signals that an I/O exception has occurred.public java.util.List getData(java.lang.String sName, DateSelection dateSelect, ucar.nc2.util.CancelTask cancel) throws java.io.IOException
sName
- radar station namedateSelect
- the date time selection informationcancel
- the canceljava.io.IOException
- Signals that an I/O exception has occurred.public java.util.List<java.net.URI> getDataURIs(java.lang.String sName, DateSelection dateSelect, ucar.nc2.util.CancelTask cancel) throws java.io.IOException
sName
- station namedateSelect
- the date selectioncancel
- the cancel taskjava.io.IOException
- problem reading URIspublic static long roundTo(long roundTo, long seconds)
roundTo
- the round toseconds
- to be round topublic static void main(java.lang.String[] args) throws java.io.IOException
args
- the argsjava.io.IOException
- Signals that an I/O exception has occurred.