edu.wisc.ssec.mcidas.adde
Class AddeGridReader

java.lang.Object
  extended by edu.wisc.ssec.mcidas.adde.AddeGridReader

public class AddeGridReader
extends java.lang.Object

GridDirList interface for McIDAS ADDE grid data sets. Simulates a McIDAS GRDLIST request using an ADDE URL.

 URLs must all have the following format   
   adde://host/griddirectory?keyword_1=value_1&keyword_2=value_2

 there can be any valid combination of the following supported keywords:

   group - ADDE group name   
   type  - ADDE data type.  Must be one of the following:
               image, point, grid, text, nav
           the default is the image type.

 the following keywords are required:

   group

 an example URL might look like:
   adde://viper/griddirectory?group=gvar&type=image
 


Constructor Summary
AddeGridReader()
          allows reading of McIDAS grid headers and data
 
Method Summary
 java.util.ArrayList getFileHeaders()
           
 java.util.ArrayList getGridData(java.lang.String request)
          creates an ArrayList of arrays of data, plus an ArrayList of grid headers (McIDASGridDirectories) which are then available using the getGridHeaders() method.
 java.util.ArrayList getGridDirectory(java.lang.String request)
          creates an ArrayList of McIDASGridDirectories
 java.util.ArrayList getGridHeaders()
           
static void main(java.lang.String[] args)
          test by running 'java edu.wisc.ssec.mcidas.adde.AddeGridReader'
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddeGridReader

public AddeGridReader()
allows reading of McIDAS grid headers and data

Method Detail

getGridDirectory

public java.util.ArrayList getGridDirectory(java.lang.String request)
                                     throws AddeURLException
creates an ArrayList of McIDASGridDirectories

Parameters:
request - ADDE URL to read from. See class javadoc.
 an example URL might look like:
   adde://viper/griddirectory?group=gvar&type=image
 
Throws:
AddeURLException - if there are no datasets of the particular type or there is an error reading data

getGridHeaders

public java.util.ArrayList getGridHeaders()

getFileHeaders

public java.util.ArrayList getFileHeaders()

getGridData

public java.util.ArrayList getGridData(java.lang.String request)
                                throws AddeURLException
creates an ArrayList of arrays of data, plus an ArrayList of grid headers (McIDASGridDirectories) which are then available using the getGridHeaders() method.

Parameters:
request - ADDE URL to read from. See class javadoc.
 an example URL might look like:
   adde://viper/grid?group=abom&type=grid&parm=T&lev=500&
 
Throws:
AddeURLException - if there are no datasets of the particular type or there is an error reading data

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
test by running 'java edu.wisc.ssec.mcidas.adde.AddeGridReader'

Throws:
java.lang.Exception