hydroScalingAPI.util.geomorphology.objects
Class HillSlope

java.lang.Object
  extended by hydroScalingAPI.util.geomorphology.objects.HillSlope

public class HillSlope
extends java.lang.Object

Uses a recursive algorithm to find the locations in the DEM that drain to a network link, and defines the boundary of these group of points.

Author:
Ricardo Mantilla

Constructor Summary
HillSlope(int x, int y, byte[][] fullDirMatrix, int[][] magnitudes, MetaRaster mr)
          Creates an instance of HillSlope
 
Method Summary
 float[][] getLonLatHillSlope()
          Returns an array of floats float[2][numPointsInHillslope] with the longitudes (float[0]) and latitudes (float[1]) for the points that belong to the hillslope
 int[][] getXYHillSlope()
          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 hillslope
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

HillSlope

public HillSlope(int x,
                 int y,
                 byte[][] fullDirMatrix,
                 int[][] magnitudes,
                 MetaRaster mr)
Creates an instance of HillSlope

Parameters:
x - The column number of the link contact
y - The row number of the link contact
fullDirMatrix - The direction matrix associated to the DEM where the basin is ebedded
magnitudes - The magnitudes matrix associated to the DEM where the basin is ebedded
mr - The MetaRaster that describes the DEM
Method Detail

getLonLatHillSlope

public float[][] getLonLatHillSlope()
Returns an array of floats float[2][numPointsInHillslope] with the longitudes (float[0]) and latitudes (float[1]) for the points that belong to the hillslope

Returns:
An array with the coordinates of the points in the landscape that belong to the hillslope

getXYHillSlope

public int[][] getXYHillSlope()
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 hillslope

Returns:
An array of i,j position of points that belong to the hillslope

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.