Package noaa.coastwatch.net
Class OpendapQueryAgent
java.lang.Object
noaa.coastwatch.net.CatalogQueryAgent
noaa.coastwatch.net.OpendapQueryAgent
A
OpendapQueryAgent
uses OPeNDAP to query a
network server for catalog entries. The query uses OPeNDAP
sequence data and constraint expressions to select the entries
of interest. The OPeNDAP DDS is as follows:
Dataset { Sequence { String date; String time; String sat; String sensor; Float64 epoch; String sceneTime; String dapUrl; String dataUrl; String previewUrl; Int16 cover_??; } catalogRecords; } catalog.dat;Since only one region can be searched at once, only one cover_?? key value will appear in the entry.
- Since:
- 3.2.1
- Author:
- Peter Hollemans
-
Nested Class Summary
Nested classes/interfaces inherited from class noaa.coastwatch.net.CatalogQueryAgent
CatalogQueryAgent.Entry
-
Field Summary
Fields inherited from class noaa.coastwatch.net.CatalogQueryAgent
coverage, endDate, MSEC_PER_DAY, region, searchByCoverage, searchByTime, startDate, url
-
Constructor Summary
ConstructorDescriptionOpendapQueryAgent
(URL url) Creates a new catalog agent that uses the specified URL for performing OPeNDAP queries. -
Method Summary
Modifier and TypeMethodDescriptionGets the catalog data entries whose temporal and spatial properties match those currently set in the query agent.static void
Tests this class.Methods inherited from class noaa.coastwatch.net.CatalogQueryAgent
getAllEntries, setCoverageByRegion, setSearchByCoverage, setSearchByTime, setTimeByAge, setTimeByDate
-
Constructor Details
-
OpendapQueryAgent
Creates a new catalog agent that uses the specified URL for performing OPeNDAP queries.- Parameters:
url
- the query url.
-
-
Method Details
-
getEntries
Gets the catalog data entries whose temporal and spatial properties match those currently set in the query agent.- Specified by:
getEntries
in classCatalogQueryAgent
- Returns:
- the list of catalog
Entry
objects. - Throws:
IOException
- if an error occurred performing the query.
-
main
Tests this class.- Parameters:
argv
- the array of command line parameters.- Throws:
Exception
-