hydroScalingAPI.modules.tRIBS_io.objects
Class BasinTIN

java.lang.Object
  extended by hydroScalingAPI.modules.tRIBS_io.objects.BasinTIN

public class BasinTIN
extends java.lang.Object

Author:
Ricardo Mantilla

Field Summary
 double minX
           
 double minY
           
 LinksAnalysis myLinksStructure
           
 RSNDecomposition myRSNAnalysis
           
 boolean TIN_Hemisphere
           
 byte TIN_Zone
           
 
Constructor Summary
BasinTIN(int xO, int yO, byte[][] direcc, byte[][] order, MetaRaster md)
          Creates a new instance of BasinTIN
BasinTIN(ParentGUI mainFrame, java.io.File pathToTriang, java.lang.String baseName)
          Creates a new instance of BasinTIN
 
Method Summary
 void filterPoints(int ridges, float Zr, int netLevel)
           
 double[] getAspect()
           
 int getBasinOrder()
           
 double getMaxZr()
           
 int getNumPoints()
           
 int getNumVoi()
           
 int getOutletNode()
           
 visad.FlatField getPointsFlatField()
           
 visad.Gridded2DSet getPolygon()
           
 visad.UnionSet getPolygonsUnionSet()
           
 visad.RealTuple getPositionTuple(int index)
          Creates a RealTuple to be plotted in a Display
 visad.Tuple getTextTuple(int index)
           
 visad.UnionSet getTrianglesUnionSet()
           
 visad.FlatField getValuesFlatField()
           
 java.lang.String GridMD5()
           
 void initializeNetworkPoints(int netLevel, int pathDensity, int bufferType)
           
 float[] valuesToVoroValues(float[] theValues)
           
 void writePoints(java.io.File outputLocation)
           
 void writeTriangulation(java.io.File outputLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myLinksStructure

public LinksAnalysis myLinksStructure

myRSNAnalysis

public RSNDecomposition myRSNAnalysis

minX

public double minX

minY

public double minY

TIN_Zone

public byte TIN_Zone

TIN_Hemisphere

public boolean TIN_Hemisphere
Constructor Detail

BasinTIN

public BasinTIN(int xO,
                int yO,
                byte[][] direcc,
                byte[][] order,
                MetaRaster md)
         throws java.rmi.RemoteException,
                visad.VisADException,
                java.io.IOException
Creates a new instance of BasinTIN

Throws:
java.rmi.RemoteException
visad.VisADException
java.io.IOException

BasinTIN

public BasinTIN(ParentGUI mainFrame,
                java.io.File pathToTriang,
                java.lang.String baseName)
         throws java.rmi.RemoteException,
                visad.VisADException,
                java.io.IOException
Creates a new instance of BasinTIN

Throws:
java.rmi.RemoteException
visad.VisADException
java.io.IOException
Method Detail

initializeNetworkPoints

public void initializeNetworkPoints(int netLevel,
                                    int pathDensity,
                                    int bufferType)
                             throws java.rmi.RemoteException,
                                    visad.VisADException,
                                    java.io.IOException
Throws:
java.rmi.RemoteException
visad.VisADException
java.io.IOException

getPolygon

public visad.Gridded2DSet getPolygon()
                              throws visad.VisADException
Throws:
visad.VisADException

getOutletNode

public int getOutletNode()

getNumPoints

public int getNumPoints()

getAspect

public double[] getAspect()

filterPoints

public void filterPoints(int ridges,
                         float Zr,
                         int netLevel)
                  throws java.rmi.RemoteException,
                         visad.VisADException
Throws:
java.rmi.RemoteException
visad.VisADException

getPositionTuple

public visad.RealTuple getPositionTuple(int index)
                                 throws visad.VisADException,
                                        java.rmi.RemoteException
Creates a RealTuple to be plotted in a Display

Returns:
The RealTuple
Throws:
visad.VisADException - Captures errors while creating the RealTuple
java.rmi.RemoteException - Captures errors while creating the RealTuple

getTextTuple

public visad.Tuple getTextTuple(int index)
                         throws visad.VisADException,
                                java.rmi.RemoteException
Throws:
visad.VisADException
java.rmi.RemoteException

getMaxZr

public double getMaxZr()

getPointsFlatField

public visad.FlatField getPointsFlatField()

getValuesFlatField

public visad.FlatField getValuesFlatField()

getTrianglesUnionSet

public visad.UnionSet getTrianglesUnionSet()

getPolygonsUnionSet

public visad.UnionSet getPolygonsUnionSet()

getBasinOrder

public int getBasinOrder()

writeTriangulation

public void writeTriangulation(java.io.File outputLocation)
                        throws java.io.IOException
Throws:
java.io.IOException

writePoints

public void writePoints(java.io.File outputLocation)
                 throws java.io.IOException
Throws:
java.io.IOException

getNumVoi

public int getNumVoi()

valuesToVoroValues

public float[] valuesToVoroValues(float[] theValues)

GridMD5

public java.lang.String GridMD5()


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.