hydroScalingAPI.util.randomSelfSimilarNetworks
Class RsnTile

java.lang.Object
  extended by hydroScalingAPI.util.randomSelfSimilarNetworks.RsnTile

public class RsnTile
extends java.lang.Object

This is the analogous of the HillSlope object for a river network.

Author:
Ricardo Mantilla

Constructor Summary
RsnTile(int xT, int yT, int xH, int yH, byte[][] fullDirMatrix, byte[][] order, MetaRaster mr, int tileScale)
          Creates new hillSlope
 
Method Summary
 float[][] getLonLatRsnTile()
          Returns the longitudes and latitudes of the points contained inside the pseudo-hillslope
 visad.Gridded2DSet getRsnTileDivide()
          Returns a visad.Gridded2DSet appropriate to be added into a visad.Display showing the polygon that sorrounds the pseudo-hillslope
 int[][] getXYRsnTile()
          Returns the i,j of the points contained inside the pseudo-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

RsnTile

public RsnTile(int xT,
               int yT,
               int xH,
               int yH,
               byte[][] fullDirMatrix,
               byte[][] order,
               MetaRaster mr,
               int tileScale)
Creates new hillSlope

Parameters:
xT - The x position where the pseudo-hillslope starts
yT - The y position where the pseudo-hillslope starts
xH - The x position where the pseudo-hillslope ends
yH - The y position where the pseudo-hillslope ends
fullDirMatrix - The direction matrix associated to the river network
order - A matrix that contains the horton order associated to all the pixels in the matrix associated to the network
mr - The MetaRaster associated to the map where the network exists
tileScale - The pseudo-hillslope scale
Method Detail

getLonLatRsnTile

public float[][] getLonLatRsnTile()
Returns the longitudes and latitudes of the points contained inside the pseudo-hillslope

Returns:
A float[2][numPoints] array where numPoints is the number of points in the pseudo-hillslope

getXYRsnTile

public int[][] getXYRsnTile()
Returns the i,j of the points contained inside the pseudo-hillslope

Returns:
An int[2][numPoints] array where numPoints is the number of points in the pseudo-hillslope

getRsnTileDivide

public visad.Gridded2DSet getRsnTileDivide()
                                    throws visad.VisADException
Returns a visad.Gridded2DSet appropriate to be added into a visad.Display showing the polygon that sorrounds the pseudo-hillslope

Returns:
A visad.Gridded2DSet
Throws:
visad.VisADException - Captures errors while creating the visad objects

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.