|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.geomorphology.objects.Basin
public class Basin
Uses a recursive algorithm to find the locations in the DEM that drain through a given point in the landscape, and defines the boundary of these group of points. This class implements several methods for analysis of characteristics in the basin
| Constructor Summary | |
|---|---|
Basin(int x,
int y,
byte[][] fullDirMatrix,
MetaRaster mr)
Creates an instance of Basin |
|
| Method Summary | |
|---|---|
visad.Gridded2DSet |
getBasinDivide()
Creates visad.Gridded2DSet with the basin divide polygon |
byte[][] |
getBasinMask()
Returns and array of the same size of the DEM with 1s in the positions that belong to the basin |
float[] |
getDivideShapeFactor()
Uses the basin divide to determine a shape factor for the basin. |
float[] |
getElevations()
Reads the corrected DEM and returns the elevations of the points contained in the basin |
int[][] |
getEncapsulatedHillslopesMask(byte[][] matDir,
RSNDecomposition myRSNAnalysis,
int level)
Returns and array of the same size of the DEM with and ID in the positions that belong to the basin. |
byte[][] |
getEncapsulatedNetworkMask()
Returns and array of the same size of the DEM with 1s in the positions that are network and belong to the basin |
java.util.Hashtable |
getHypCurve()
Computes the hypsometric curve and some statistical parameters: area, mean, standard deviation, skewness, and kurtosis. |
float[][] |
getLonLatBasin()
Returns an array of floats float[2][numPointsInBasin] with the longitudes (float[0]) and latitudes (float[1]) for the points that belong to the basin |
float[][] |
getLonLatBasinDivide()
Returns an array of floats float[2][numPointsInDivide] with the longitudes (float[0]) and latitudes (float[1]) for the points that determine the divide |
int |
getMaxX()
The maximum column of a box encosing the basin |
int |
getMaxY()
The maximum row of a box encosing the basin |
float |
getMaxZ()
Returns the elevation of the highest point in the basin |
int |
getMinX()
The minimum column of a box encosing the basin |
int |
getMinY()
The minimum row of a box encosing the basin |
float |
getMinZ()
Returns the elevation of the lowest point in the basin |
int |
getOutletID()
Returns the ID of the basin outlet |
visad.RealTuple |
getOutletTuple()
Returns an visad object that describes the basin outlet |
float |
getRelief()
Returns the difference between the highest and the lowest points in the basin |
int[][] |
getXYBasin()
Returns an array of integers int[2][numPointsInBasin] with the column number (int[0]) and the row number (int[1]) for the points that belong to the basin |
int[][] |
getXYBasinDivide()
Returns an array of integers int[2][numPointsInDivide] with the column number (int[0]) and the row number (int[1]) for the points that determine the divide |
static void |
main(java.lang.String[] args)
Tests for the class |
void |
setXYBasin(int[][] newXY)
Returns an array of integers int[2][numPointsInBasin] with the column number (int[0]) and the row number (int[1]) for the points that belong to the basin |
java.lang.String |
toString()
Prints a description of the Basin with respect to its location in the DEM |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Basin(int x,
int y,
byte[][] fullDirMatrix,
MetaRaster mr)
x - The column number of the basin outlety - The row number of the basin outletfullDirMatrix - The direction matrix associated to the DEM where the basin is ebeddedmr - The MetaRaster that describes the DEM| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic float[][] getLonLatBasin()
public int[][] getXYBasin()
public void setXYBasin(int[][] newXY)
public visad.Gridded2DSet getBasinDivide()
throws visad.VisADException
visad.VisADException - Captures errors while creating the visad objectpublic float[] getDivideShapeFactor()
public int[][] getXYBasinDivide()
public float[][] getLonLatBasinDivide()
public visad.RealTuple getOutletTuple()
throws visad.VisADException,
java.rmi.RemoteException
java.rmi.RemoteException - Captures errors while assigning values to VisAD data objects
visad.VisADException - Captures errors while creating VisAD objectspublic int getMinX()
public int getMaxX()
public int getMinY()
public int getMaxY()
public float[] getElevations()
throws java.io.IOException
java.io.IOException - Captures errors while reading from the DEM
public float getRelief()
throws java.io.IOException
java.io.IOException - Captures errors while reading from the DEM
public float getMaxZ()
throws java.io.IOException
java.io.IOException - Captures errors while reading from the DEM
public float getMinZ()
throws java.io.IOException
java.io.IOException - Captures errors while reading from the DEMpublic int getOutletID()
public byte[][] getBasinMask()
public byte[][] getEncapsulatedNetworkMask()
public int[][] getEncapsulatedHillslopesMask(byte[][] matDir,
RSNDecomposition myRSNAnalysis,
int level)
myRSNAnalysis - level -
public java.util.Hashtable getHypCurve()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
args - The command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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.