edu.wisc.ssec.mcidas
Class GridDirectoryList
- java.lang.Object
-
- edu.wisc.ssec.mcidas.GridDirectoryList
-
public class GridDirectoryList extends java.lang.ObjectGridDirectoryList interface for McIDAS 'grids'. Provides access to a list of one or more GridDirectoy objects.
-
-
Constructor Summary
Constructors Constructor and Description GridDirectoryList(java.lang.String gridSource)Creates an GridDirectory object that allows reading of McIDAS 'grids' from an ADDE serverGridDirectoryList(java.net.URL url)creates an GridDirectory object that allows reading of the directory of McIDAS 'grid' files from a URL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.ArrayListgetDirs()returns the directory blocks for the requested grids.static voidmain(java.lang.String[] args)java.lang.StringtoString()Prints out a formatted listing of the directory info
-
-
-
Constructor Detail
-
GridDirectoryList
public GridDirectoryList(java.lang.String gridSource) throws McIDASExceptionCreates an GridDirectory object that allows reading of McIDAS 'grids' from an ADDE server- Parameters:
gridSource- ADDE URL to read from as a String- Throws:
McIDASException- if file cannot be opened
-
GridDirectoryList
public GridDirectoryList(java.net.URL url) throws McIDASExceptioncreates an GridDirectory object that allows reading of the directory of McIDAS 'grid' files from a URL- Parameters:
url- - the URL to go after- Throws:
McIDASException- if file cannot be opened
-
-
Method Detail
-
getDirs
public java.util.ArrayList getDirs() throws McIDASExceptionreturns the directory blocks for the requested grids. see McIDAS Programmer's Manual for information on the parameters for each value.- Returns:
- a ArrayList of GridDirectorys
- Throws:
AreaFileException- if there was a problem reading the directoryMcIDASException
-
toString
public java.lang.String toString()
Prints out a formatted listing of the directory info- Overrides:
toStringin classjava.lang.Object
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
-
DMelt 3.0 © DataMelt by jWork.ORG