Class OpendapQueryAgent

java.lang.Object
noaa.coastwatch.net.CatalogQueryAgent
noaa.coastwatch.net.OpendapQueryAgent

public class OpendapQueryAgent extends CatalogQueryAgent
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
  • Constructor Details

    • OpendapQueryAgent

      public OpendapQueryAgent(URL url)
      Creates a new catalog agent that uses the specified URL for performing OPeNDAP queries.
      Parameters:
      url - the query url.
  • Method Details

    • getEntries

      public List getEntries() throws IOException
      Gets the catalog data entries whose temporal and spatial properties match those currently set in the query agent.
      Specified by:
      getEntries in class CatalogQueryAgent
      Returns:
      the list of catalog Entry objects.
      Throws:
      IOException - if an error occurred performing the query.
    • main

      public static void main(String[] argv) throws Exception
      Tests this class.
      Parameters:
      argv - the array of command line parameters.
      Throws:
      Exception