hydroScalingAPI.io
Class MetaDLG

java.lang.Object
  extended by hydroScalingAPI.io.MetaDLG

public class MetaDLG
extends java.lang.Object

This class reads DLG files downloaded from the EROS website at http://edc.usgs.gov/geodata/.

Author:
Ricardo Mantilla

Constructor Summary
MetaDLG(java.lang.String fileName, java.awt.geom.Rectangle2D desiredRegion)
          Creates a new instance of MetaDLG
 
Method Summary
 visad.UnionSet getUnionSet()
          Returns a UnionSet ready to be used inside a Display
static void main(java.lang.String[] args)
          Tests for the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDLG

public MetaDLG(java.lang.String fileName,
               java.awt.geom.Rectangle2D desiredRegion)
        throws java.io.IOException,
               visad.VisADException
Creates a new instance of MetaDLG

Parameters:
fileName - The file where the DLG resides
desiredRegion - The limts of the region of interest given as a Rectangle2D.
Throws:
java.io.IOException - Captures errors while reading the file.
visad.VisADException - Captures errors while creating the Gridded2DSet used to visualize the vector.
Method Detail

getUnionSet

public visad.UnionSet getUnionSet()
                           throws visad.VisADException
Returns a UnionSet ready to be used inside a Display

Returns:
The UnionSet
Throws:
visad.VisADException - Captures errors while creating the UnionSet

main

public static void main(java.lang.String[] args)
Tests for the class

Parameters:
args - the command line arguments


CUENCAS was initially developed by Ricardo Mantilla at the University of Colorado under the supervision of Dr. Vijay K. Gupta. We wish to recognize the support from the National Science Fundation.