|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectucar.nc2.dt.TypedDatasetImpl
ucar.nc2.dt.radial.StationRadarCollectionImpl
ucar.nc2.thredds.TDSRadarDatasetCollection
public class TDSRadarDatasetCollection
Client side for getting data from the TDS radar server.
Nested Class Summary | |
---|---|
class |
TDSRadarDatasetCollection.DatasetURIInfo
Class DatasetURIInfo _more_ |
class |
TDSRadarDatasetCollection.InvDatasetInfo
Class to hold an InvDataset and a Date |
class |
TDSRadarDatasetCollection.TDSRadarDatasetInfo
Class to hold some information about TDS Radar Datasets |
Field Summary | |
---|---|
protected static org.jdom.Namespace |
defNS
_more_ |
protected HashMap<String,Station> |
stationHMap
map of station name to station |
Fields inherited from class ucar.nc2.dt.radial.StationRadarCollectionImpl |
---|
absTimesList, relTimesList, stations, timeUnit |
Fields inherited from class ucar.nc2.dt.TypedDatasetImpl |
---|
boundingBox, dataVariables, desc, endDate, location, ncfile, parseInfo, startDate, title |
Method Summary | |
---|---|
boolean |
checkStationProduct(Product product)
check the exist of a product in this dataset collection |
boolean |
checkStationProduct(String sName,
Product product)
check the exist of a product in this dataset collection |
static TDSRadarDatasetCollection |
factory(InvDataset ds,
String dsc_location,
StringBuffer errlog)
tds radar dataset collection factory |
static TDSRadarDatasetCollection |
factory(String desc,
String dsc_location,
StringBuffer errlog)
tds radar dataset collection factory |
List |
getData(String sName,
DateSelection dateInfo)
Getting data for a single radar station, with time range. |
List |
getData(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. |
List |
getDataURIs(String sName,
DateSelection dateInfo)
Getting data URIs for a single radar station, with time range. |
List<URI> |
getDataURIs(String sName,
DateSelection dateSelect,
CancelTask cancel)
getting data uri list |
String |
getDescription()
get dataset collection description |
String |
getLocation()
get dataset collection URI |
RadialDatasetSweep |
getRadarDataset(String stnName,
Date absTime)
Getting dataset for a single radar station. |
RadialDatasetSweep |
getRadarDataset(String stnName,
String productID,
Date absTime)
Getting dataset for a single radar station. |
URI |
getRadarDatasetURI(String stnName,
Date absTime)
Getting URI for a single radar station. |
URI |
getRadarDatasetURI(String stnName,
String productID,
Date absTime)
_more_ |
List<Product> |
getRadarProducts()
get products of dataset collection |
LatLonRect |
getRadarsBoundingBox()
get bounding box of dataset collection |
Station |
getRadarStation(String sName)
get one radar station. |
List |
getRadarStationDatasets(String stnName,
Date start,
Date end)
Getting data Iterator for a single radar station. |
List<Station> |
getRadarStations()
get all radar station. |
List<Date> |
getRadarStationTimes(String stnName,
Date start,
Date end)
Getting data URI list for a single radar station. |
List<Date> |
getRadarStationTimes(String stnName,
String productID,
Date start,
Date end)
Getting data URI list for a single radar station. |
List |
getRadarStationURIs(String stnName,
Date start,
Date end)
Getting data for a single radar station. |
List<String> |
getRadarTimeSpan()
get start and end time of dataset collection |
int |
getStationProductCount(String sName)
get the number of products |
List<Station> |
getStations()
get all radar station. |
List<Station> |
getStations(CancelTask cancel)
get all radar station within box. |
List<Station> |
getStations(LatLonRect boundingBox)
get all radar station within box. |
List<Station> |
getStations(LatLonRect boundingBox,
CancelTask cancel)
get all radar station within box. |
String |
getTitle()
get title of dataset collection |
static void |
main(String[] args)
Test the program |
org.jdom.Element |
readElements(org.jdom.Element elem,
String eleName)
get named element from parent element |
HashMap<String,Station> |
readRadarStations(String stsXML_location)
retrieve all radar stations in this dataset collection |
LatLonRect |
readSelectRegion(org.jdom.Element elem,
org.jdom.Namespace ns)
get region from parent element |
List<String> |
readSelectTime(org.jdom.Element elem,
org.jdom.Namespace ns)
get start and end elemnt form parent element |
List<Product> |
readSelectVariable(org.jdom.Element elem,
org.jdom.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_ |
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, getLocationURI, getNetcdfFile, getStartDate, removeDataVariable, setDescription, setLocationURI, setTitle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected HashMap<String,Station> stationHMap
protected static final org.jdom.Namespace defNS
Method Detail |
---|
public static TDSRadarDatasetCollection factory(InvDataset ds, String dsc_location, StringBuffer errlog) throws IOException, URISyntaxException
ds
- _more_dsc_location
- _more_errlog
- _more_
IOException
- _more_
URISyntaxException
- _more_public static TDSRadarDatasetCollection factory(String desc, String dsc_location, StringBuffer errlog) throws IOException
desc
- _more_dsc_location
- _more_errlog
- _more_
IOException
- _more_public HashMap<String,Station> readRadarStations(String stsXML_location) throws IOException
stsXML_location
- _more_
IOException
- _more_public org.jdom.Element readElements(org.jdom.Element elem, String eleName)
elem
- _more_eleName
- _more_
public LatLonRect readSelectRegion(org.jdom.Element elem, org.jdom.Namespace ns)
elem
- _more_ns
- _more_
public List<String> readSelectTime(org.jdom.Element elem, org.jdom.Namespace ns)
elem
- _more_ns
- _more_
public List<Product> readSelectVariable(org.jdom.Element elem, org.jdom.Namespace ns)
elem
- _more_ns
- _more_
protected void setTimeUnits()
protected void setStartDate()
setStartDate
in class TypedDatasetImpl
protected void setEndDate()
setEndDate
in class TypedDatasetImpl
protected void setBoundingBox()
setBoundingBox
in class TypedDatasetImpl
public String getTitle()
getTitle
in interface TypedDataset
getTitle
in class TypedDatasetImpl
public String getLocation()
getLocation
in class TypedDatasetImpl
public String getDescription()
getDescription
in interface TypedDataset
getDescription
in class TypedDatasetImpl
public LatLonRect getRadarsBoundingBox()
public List<String> getRadarTimeSpan()
public List<Product> getRadarProducts()
public boolean checkStationProduct(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(String sName)
sName
- _more_
public List<Station> getStations() throws IOException
getStations
in interface StationRadarCollection
getStations
in class StationRadarCollectionImpl
IOException
- java io exceptionpublic List<Station> getRadarStations()
public Station getRadarStation(String sName)
sName
- _more_
public List<Station> getStations(CancelTask cancel) throws IOException
getStations
in class StationRadarCollectionImpl
cancel
- cancel task
IOException
- java io exceptionpublic List<Station> getStations(LatLonRect boundingBox) throws IOException
getStations
in class StationRadarCollectionImpl
boundingBox
- the bounding box
IOException
- java io exceptionpublic List<Station> getStations(LatLonRect boundingBox, CancelTask cancel) throws IOException
getStations
in interface StationRadarCollection
getStations
in class StationRadarCollectionImpl
boundingBox
- the bounding boxcancel
- the cancel task
IOException
- java io exceptionpublic RadialDatasetSweep getRadarDataset(String stnName, Date absTime) throws IOException
stnName
- radar station nameabsTime
- is absolute time
IOException
- java io exceptionpublic RadialDatasetSweep getRadarDataset(String stnName, String productID, Date absTime) throws IOException
stnName
- radar station nameproductID
- _more_absTime
- is absolute time
IOException
- java io exceptionpublic URI getRadarDatasetURI(String stnName, Date absTime) throws IOException
stnName
- radar station nameabsTime
- is absolute time
IOException
- java io exceptionpublic URI getRadarDatasetURI(String stnName, String productID, Date absTime) throws IOException
stnName
- _more_productID
- _more_absTime
- _more_
IOException
- _more_public List getRadarStationURIs(String stnName, Date start, Date end) throws IOException
stnName
- radar station namestart
- of the timeend
- of the time
IOException
- java io exceptionpublic List getRadarStationDatasets(String stnName, Date start, Date end) throws IOException
stnName
- radar station namestart
- of the timeend
- of the time
IOException
- java io exceptionpublic List<Date> getRadarStationTimes(String stnName, Date start, Date end) throws IOException
stnName
- radar station namestart
- of the timeend
- of the time
IOException
- java io exceptionpublic List<Date> getRadarStationTimes(String stnName, String productID, Date start, Date end) throws IOException
stnName
- radar station nameproductID
- _more_start
- of the timeend
- of the time
IOException
- java io exceptionpublic DataIterator getDataIterator(int bufferSize) throws IOException
bufferSize
-
IOException
- java io exceptionpublic List getDataURIs(String sName, DateSelection dateInfo) throws IOException
sName
- radar station namedateInfo
- the date selection information
IOException
- _more_public List getData(String sName, DateSelection dateInfo) throws IOException
sName
- radar station namedateInfo
- the date time selection information
IOException
- _more_public List getData(String sName, DateSelection dateSelect, CancelTask cancel) throws IOException
sName
- radar station namedateSelect
- the date time selection informationcancel
- _more_
IOException
- _more_public List<URI> getDataURIs(String sName, DateSelection dateSelect, CancelTask cancel) throws IOException
sName
- station namedateSelect
- the date selectioncancel
- the cancel task
IOException
- problem reading URIspublic static long roundTo(long roundTo, long seconds)
roundTo
- seconds
- to be round to
public static void main(String[] args) throws IOException
args
- the args
IOException
- _more_
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |