|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.modules.networkExtraction.objects.NetworkExtractionModule
public class NetworkExtractionModule
This class controls the procedures associated to River Network Extraction from DEMs. It comunicates with the GUI and the methods needed to achieve this task
| Field Summary | |
|---|---|
float |
alfa
The alpha exponent in the Area-Slope based treshold |
boolean |
archPro
A flag that indicates if a ROM-based or RAM-based algorithm must be used to calculate the geomorphology |
boolean |
areaPend_cargar
Indicates if an existent Area-Slope analysis is to be loaded |
boolean |
areaPend_LA
Indicates if an Area-Slope analysis is to be created using blue lines |
boolean |
areaPend_nuevo
Indicates if a new Area-Slope analysis is to be created |
float[][] |
Areas
An array containing the upstream area for each pixel in the DEM |
float |
C
The C coefficient in the Area-Slope based treshold |
float |
cAltura
A treshold that indicates a cut in the DEM if more than cAltura meters have to be filled up. |
float |
cCorte
A treshold that indicates a cut in the DEM if the filled number of cells is larger than cCorte times the number of cells to cut |
boolean |
cleanShorts
A flag that indicates the cleanShortsRoutine will be called |
int |
colManual
The column number of the location of the sink that the user wants to modify |
int |
convergenceAlarmCounter
The number of times the algorithm fails to converge |
boolean |
convergenceAlarmType1
A boolean indicating if the algorithm fails to converge in an area of the DEM |
double[][] |
DEM
The DEM under analyisis |
double[][] |
DEMrep
An auxiliary matrix used by the RasterNetworkBlueLines
module. |
Stats |
DEMstats
Statstics associated to the DEM |
int[][] |
DIR
The direction matrix associated to the DEM under analysis |
double[] |
dx
An array containing the horizontal size of the pixels |
double |
dxm
The average horizontal size of the pixel |
double[] |
dxy
The diagonal size of the pixels |
double |
dy
The vertical size of the pixel |
int |
filaManual
The row number of the location of the sink that the user wants to modify |
java.io.File |
fileLAzules
The file that contains the blue lines |
GeomorphCell_1[][] |
GEO
A matrix of GeomorphCell_1 |
GeomorphCell_2[][] |
GEO2
A matrix of GeomorphCell_2 |
byte[][] |
LA
An array used by the RasterNetworkBlueLines
to mask the areas where there are blue lines |
boolean |
laplace
Indicates the laplace method is to be used to prune the network |
float |
latManual
The latitude of the location of the sink that the user wants to modify |
boolean |
lAzules
Indicates if a Blue Lines Map is to be used to Guide Network Extraction |
float |
lonManual
The longitude of the location of the sink that the user wants to modify |
int |
maxOrder
The maximum order of any stream in the DEM |
double[][] |
MaxPend
An array containing the maximum slope for each pixel in the DEM |
MetaRaster |
metaDEM
The MetaRaster associated with the DEM under analysis |
boolean |
montgomery
Indicates the montgomery method is to be used to prune the network |
WorkRectangle |
MT
The WorkRectangle
represents the area over which the network extraction algorithm is currently
working |
int |
nCeldasConv
The number of cells that need to converge in order to let a river start |
int |
npuntosAP
The number of pixels to use to determine the slope |
ExtractionOptions |
OpProc
The GUI used to query the user for tasks to be completed by the NetworkExtractionModule |
int |
ordenMax
The Horton order to use as threshold for pruning based on order |
ParentGUI |
parent
The main GIS interface |
float |
pixAP
A treshold for calculating the Area-Slope analysis |
float |
pixCManual
A threshold that indicates when the user wants to intervine in the sink correction algorithm based on the sink's basin size |
float |
pixManual
A threshold that indicates when the user wants to intervine in the sink correction algorithm based on the sink size |
float |
pixPodado
The area threshold for network pruning |
boolean |
printDebug
A boolean stating if the module runs in Debug mode. |
byte[][] |
RedRas
An array containing 0s and 1s for each pixel in the DEM. |
java.util.Vector |
Sink_t
A Vector contining a list of the sinks in the DEM |
int |
sinkOrder
The current sink under analysis |
boolean |
taskDIR
Indicates if the user wants to perform the Network extraction algorithm (determines direction matrix) |
boolean |
taskGEO
Indicates if the user wants to perform the Geomorphology algorithm |
boolean |
taskRED
Indicates if the user wants to perform the Network pruning algorithm |
boolean |
taskVECT
Indicates if the user wants to perform the Vectorial network algorithm |
boolean |
todoRed
Indicates if all the points should be considered as network |
boolean |
umbralAP
Indicates if an Area-Slope analysis is used as threshold |
int |
unColM
A flag that indicates if the sink location is given as a longitude or a column number |
int |
unFilaM
A flag that indicates if the sink location is given as a latitude or a row number |
int |
unPixAP
A flag that indicates if the Area-Slope threshold is given in km^2 or in number of pixels |
int |
unPixCM
A flag that indicates if the sink's basin area threshold is given in km^2 or in number of pixels |
int |
unPixM
A flag that indicates if the sink area threshold is given in km^2 or in number of pixels |
int |
unPixPod
A flag that indicates if the area threshold is given in km^2 or in number of pixels |
| Constructor Summary | |
|---|---|
NetworkExtractionModule(MetaRaster metaDEM1,
DataRaster dataDEM1)
Creates an instance of the NetworkExtractionModule that uses predetermined tasks to be performed |
|
NetworkExtractionModule(MetaRaster metaDEM1,
DataRaster dataDEM1,
java.lang.String[] moreArgs)
Creates an instance of the NetworkExtractionModule that uses the ExtractionOptions interface
to query for tasks to be performed |
|
NetworkExtractionModule(ParentGUI parent1,
MetaRaster metaDEM1,
DataRaster dataDEM1)
Creates an instance of the NetworkExtractionModule that uses the ExtractionOptions interface
to query for tasks to be performed |
|
| Method Summary | |
|---|---|
double |
calculaIncr(java.util.Vector F)
Calculates the increment to be applied when the DEM flat area is being filled |
void |
corrigeDEM()
The DEM correction algorithm |
void |
corrigeSink_t()
Loops through all the sinks in the DEM and fixes them |
void |
corrigeUniPitFullDEM()
Runs the uniPit algorithm for the entire DEM |
int |
get_nextPit()
Gets the next pit to be fixed |
void |
inicio(DataRaster dataDEM)
Initializes the algorithm parameters |
void |
leeDEM_DIR_AREA_PEND()
Reads the DEM, direction matrix and upstream area files |
void |
leeDEM()
Reads the original DEM |
void |
leeRED()
Reads the raster netowrk file |
static void |
main(java.lang.String[] Arguments)
Various tests for the class |
void |
run()
The run method |
void |
writeCorrDem(java.io.File arch)
Writes the .corrDEM file |
void |
writeGEO(java.io.File arch)
Writes the .redRas, .ltc, .lcp, .horton, .magn, .dtopo, .tcd, and .mcd files |
void |
writePREL(java.io.File arch)
Writes the .areas, .corrDEM, .slope, an .dir files |
void |
writeRED(java.io.File arch)
Writes the .redRas file |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public MetaRaster metaDEM
public double[][] DEM
public double[][] DEMrep
RasterNetworkBlueLines
module.
public int[][] DIR
public double dy
public double dxm
public double[] dx
public double[] dxy
public WorkRectangle MT
WorkRectangle
represents the area over which the network extraction algorithm is currently
working
public java.util.Vector Sink_t
public int sinkOrder
public int maxOrder
public ExtractionOptions OpProc
public ParentGUI parent
public float[][] Areas
public double[][] MaxPend
public byte[][] RedRas
public byte[][] LA
RasterNetworkBlueLines
to mask the areas where there are blue lines
public GeomorphCell_1[][] GEO
GeomorphCell_1
public GeomorphCell_2[][] GEO2
GeomorphCell_2
public boolean convergenceAlarmType1
public int convergenceAlarmCounter
public float cCorte
public float cAltura
public float pixManual
public float pixCManual
public float latManual
public float lonManual
public float pixPodado
public float alfa
public float C
public float pixAP
public int unPixM
public int unPixCM
public int unFilaM
public int unColM
public int filaManual
public int colManual
public int ordenMax
public int unPixPod
public int unPixAP
public int npuntosAP
public int nCeldasConv
public boolean cleanShorts
public boolean archPro
public boolean lAzules
public boolean areaPend_nuevo
public boolean areaPend_cargar
public boolean areaPend_LA
public boolean montgomery
public boolean laplace
public boolean todoRed
public boolean umbralAP
public boolean printDebug
public boolean taskDIR
public boolean taskRED
public boolean taskGEO
public boolean taskVECT
public java.io.File fileLAzules
public Stats DEMstats
| Constructor Detail |
|---|
public NetworkExtractionModule(MetaRaster metaDEM1,
DataRaster dataDEM1,
java.lang.String[] moreArgs)
ExtractionOptions interface
to query for tasks to be performed
metaDEM1 - The MetaRaster associated to the DEM to be processeddataDEM1 - The DataRaster associated to the datamoreArgs - A String[] of arguments that Matt Luck created
public NetworkExtractionModule(ParentGUI parent1,
MetaRaster metaDEM1,
DataRaster dataDEM1)
ExtractionOptions interface
to query for tasks to be performed
parent1 - The main GIS interfacemetaDEM1 - The MetaRaster associated to the DEM to be processeddataDEM1 - The DataRaster associated to the data
public NetworkExtractionModule(MetaRaster metaDEM1,
DataRaster dataDEM1)
metaDEM1 - The MetaRaster associated to the DEM to be processeddataDEM1 - The DataRaster associated to the data| Method Detail |
|---|
public void inicio(DataRaster dataDEM)
dataDEM - The DataRaster associated to the datapublic void corrigeDEM()
public void corrigeSink_t()
public int get_nextPit()
public void corrigeUniPitFullDEM()
public double calculaIncr(java.util.Vector F)
F - A Vector with the flat areas
public void writePREL(java.io.File arch)
arch - The path where the files will be storedpublic void writeCorrDem(java.io.File arch)
arch - The path where the files will be storedpublic void writeRED(java.io.File arch)
arch - The path where the files will be storedpublic void writeGEO(java.io.File arch)
arch - The path where the files will be storedpublic void leeDEM_DIR_AREA_PEND()
public void leeRED()
public void leeDEM()
public void run()
run in interface java.lang.Runnablepublic static void main(java.lang.String[] Arguments)
Arguments - 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.