edu.wisc.ssec.mcidas
Class AreaDirectoryList
- java.lang.Object
-
- edu.wisc.ssec.mcidas.AreaDirectoryList
-
public class AreaDirectoryList extends java.lang.ObjectAreaDirectoryList interface for McIDAS 'area' file format image data. Provides access to a list of one or more AreaDirectoy objects.
-
-
Constructor Summary
Constructors Constructor and Description AreaDirectoryList(java.lang.String imageSource)creates an AreaDirectory object that allows reading of McIDAS 'area' file format image data.AreaDirectoryList(java.net.URL url)creates an AreaDirectory object that allows reading of the directory of McIDAS 'area' 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 images.AreaDirectory[][]getSortedDirs()returns the directory blocks for the requested images, sorted into an array of AreaDirectories by time and then bands as the second dimenison, if multiple directories with the same ADDE position number are returned.static voidmain(java.lang.String[] args)java.lang.StringtoString()Prints out a formatted listing of the directory info
-
-
-
Constructor Detail
-
AreaDirectoryList
public AreaDirectoryList(java.lang.String imageSource) throws AreaFileExceptioncreates an AreaDirectory object that allows reading of McIDAS 'area' file format image data. allows reading either from a disk file, or a server via ADDE.- Parameters:
imageSource- the file name or ADDE URL to read from- Throws:
AreaFileException- if file cannot be opened
-
AreaDirectoryList
public AreaDirectoryList(java.net.URL url) throws AreaFileExceptioncreates an AreaDirectory object that allows reading of the directory of McIDAS 'area' files from a URL- Parameters:
url- - the URL to go after- Throws:
AreaFileException- if file cannot be opened
-
-
Method Detail
-
getSortedDirs
public AreaDirectory[][] getSortedDirs() throws AreaFileException
returns the directory blocks for the requested images, sorted into an array of AreaDirectories by time and then bands as the second dimenison, if multiple directories with the same ADDE position number are returned.- Throws:
AreaFileException
-
getDirs
public java.util.ArrayList getDirs() throws AreaFileExceptionreturns the directory blocks for the requested images. see McIDAS Programmer's Manual for information on the parameters for each value.- Returns:
- a ArrayList of AreaDirectorys
- Throws:
AreaFileException- if there was a problem reading the directory
-
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