|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.util.geomorphology.objects.HortonAnalysis
public class HortonAnalysis
This class organizes network related information in the context of the Horton-Strahler order scheme
| Field Summary | |
|---|---|
int[][] |
contactsArray
An array conaining the pixel ID before the stream merges with another stream for streams of different order. |
int[][] |
headsArray
An array conaining the pixel ID where the stream begins for streams of different order. |
int[][] |
tailsArray
An array conaining the pixel ID where the stream merges with another stream (junction) for streams of different order. |
| Constructor Summary | |
|---|---|
HortonAnalysis(Basin bas,
MetaRaster metar,
byte[][] DM)
Creates new HortonAnalysis |
|
| Method Summary | |
|---|---|
float[] |
ajustesRO(float[] datos,
int minOrderToInclude,
int maxOrderToInclude,
boolean takeLogs)
Calculates the regression parameters of a Horton plot |
int |
getBasinOrder()
The network order |
float[] |
getBranchingPerOrder()
This method retunrns the numbers of branches of order omega |
float[] |
getBranchingRatio(int minOrderToInclude,
int maxOrderToInclude)
Calculates the branching ratio |
float[] |
getBranchingRatio(int minOrderToInclude,
int maxOrderToInclude,
float[] cuentaOrdenes)
Calculates the branching ratio |
float[][] |
getLengthDistributionPerOrder(int metric)
Calculates an array with the values of stream lengths for complete Horton streams. |
float[] |
getLengthPerOrder(float[][] lengthArray)
Calculates an array with the average values of channel lengths for complete Horton streams. |
float[] |
getLengthPerOrder(int metric)
Calculates an array with the average values of channel lengths for complete Horton streams. |
float[] |
getLengthRatio(int minOrderToInclude,
int maxOrderToInclude,
float[][] lengthArray)
Calculates the length ratio given by an array |
float[] |
getLengthRatio(int minOrderToInclude,
int maxOrderToInclude,
int metric)
Calculates the geometric or topologic length ratio |
float[][] |
getQuantityDistributionPerOrder(int varToGet)
Calculates an array with the values of a quantity for complete Horton streams. |
float[] |
getQuantityPerOrder(float[][] quantityArray)
Calculates an array with the average values of a quantity for complete Horton streams given as an array. |
float[] |
getQuantityPerOrder(int varToGet)
Calculates an array with the average values of a quantity for complete Horton streams. |
float[] |
getQuantityRatio(int minOrderToInclude,
int maxOrderToInclude,
float[][] quantityArray)
Calculates the Horton ratio for the designated quantity given by an array. |
float[] |
getQuantityRatio(int minOrderToInclude,
int maxOrderToInclude,
int varToGet)
Calculates the Horton ratio for the designated quantity. |
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 |
| Field Detail |
|---|
public int[][] headsArray
public int[][] contactsArray
public int[][] tailsArray
| Constructor Detail |
|---|
public HortonAnalysis(Basin bas,
MetaRaster metar,
byte[][] DM)
throws java.io.IOException
bas - The Basin on which the analysis is performedmetar - The MetaRaster describing the DEM that contains the basinDM - The direction matrix
java.io.IOException - Captures errors while readin the vectorial network files| Method Detail |
|---|
public float[] getBranchingRatio(int minOrderToInclude,
int maxOrderToInclude,
float[] cuentaOrdenes)
minOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regressioncuentaOrdenes - An array with the number of brances of different orders
public float[] getBranchingRatio(int minOrderToInclude,
int maxOrderToInclude)
minOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regression
public float[] getBranchingPerOrder()
public float[] getQuantityRatio(int minOrderToInclude,
int maxOrderToInclude,
int varToGet)
throws java.io.IOException
0: Upstream Areas
1: Magnitudes
2: Longest channel length
3: Topologic diameter
4: Total channels lenght
5: Link's outlet slope
6: Total channel drop
7: Maximum channel drop
8: Channel elevation
varToGet - The variable to getminOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regression
java.io.IOException - Captures errors while reading the values
public float[] getQuantityRatio(int minOrderToInclude,
int maxOrderToInclude,
float[][] quantityArray)
throws java.io.IOException
quantityArray - The array containing the variable valuesminOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regression
java.io.IOException - Captures errors while reading the values
public float[] getQuantityPerOrder(int varToGet)
throws java.io.IOException
0: Upstream Areas
1: Magnitudes
2: Longest channel length
3: Topologic diameter
4: Total channels lenght
5: Link's outlet slope
6: Total channel drop
7: Maximum channel drop
8: Channel elevation
varToGet - The variable to get
java.io.IOException - Captures errors while reading the values
public float[] getQuantityPerOrder(float[][] quantityArray)
throws java.io.IOException
quantityArray - The array containing the variable values
java.io.IOException - Captures errors while reading the values
public float[][] getQuantityDistributionPerOrder(int varToGet)
throws java.io.IOException
0: Upstream Areas
1: Magnitudes
2: Longest channel length
3: Topologic diameter
4: Total channels lenght
5: Link's outlet slope
6: Total channel drop
7: Maximum channel drop
8: Channel elevation
9: Geometric Channel Length/p>
10: Topologic Channel Length
varToGet - The variable to get
java.io.IOException - Captures errors while reading the values
public float[] getLengthRatio(int minOrderToInclude,
int maxOrderToInclude,
int metric)
throws java.io.IOException
minOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regressionmetric - The metric to use 0: geometric, 1: Topologic.
java.io.IOException - Captures errors while reading the values
public float[] getLengthRatio(int minOrderToInclude,
int maxOrderToInclude,
float[][] lengthArray)
throws java.io.IOException
minOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regressionlengthArray - The array with lengths
java.io.IOException - Captures errors while reading the values
public float[] getLengthPerOrder(int metric)
throws java.io.IOException
metric - The metric to use 0: geometric, 1: Topologic.
java.io.IOException - Captures errors while reading the values
public float[] getLengthPerOrder(float[][] lengthArray)
throws java.io.IOException
lengthArray - The array containing the lengths
java.io.IOException - Captures errors while reading the valuespublic float[][] getLengthDistributionPerOrder(int metric)
metric - The metric to use 0: geometric, 1: Topologic.
public float[] ajustesRO(float[] datos,
int minOrderToInclude,
int maxOrderToInclude,
boolean takeLogs)
datos - The data to analyzeminOrderToInclude - The minimum order to include in the regressionmaxOrderToInclude - The maximum order to include in the regressiontakeLogs - A boolean flag indicating if logs of the variable need to be taken
public int getBasinOrder()
public 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.