public class OpendapQueryAgent extends CatalogQueryAgent
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.
CatalogQueryAgent.Entry
coverage, endDate, MSEC_PER_DAY, region, searchByCoverage, searchByTime, startDate, url
Constructor and Description |
---|
OpendapQueryAgent(java.net.URL url)
Creates a new catalog agent that uses the specified URL for
performing OPeNDAP queries.
|
Modifier and Type | Method and Description |
---|---|
java.util.List |
getEntries()
Gets the catalog data entries whose temporal and spatial
properties match those currently set in the query agent.
|
static void |
main(java.lang.String[] argv)
Tests this class.
|
getAllEntries, setCoverageByRegion, setSearchByCoverage, setSearchByTime, setTimeByAge, setTimeByDate
public OpendapQueryAgent(java.net.URL url)
url
- the query url.public java.util.List getEntries() throws java.io.IOException
getEntries
in class CatalogQueryAgent
Entry
objects.java.io.IOException
- if an error occurred performing the
query.public static void main(java.lang.String[] argv) throws java.lang.Exception
argv
- the array of command line parameters.java.lang.Exception