|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.modules.networkExtraction.objects.Pit
public class Pit
This class represent a DEM PIT. A very important feature of the terrain associated to the Network Extraction Process. In escence a Pit is a region of terrain to which part of the DEM drains into. This regions are usually artifacts of the data. The network extraction algorithm assumes that there are not interal Pits in the DEM, thus all pits are resolved by filling or cutting the DEM such that they flow to another region of the DEM or to the DEM borders. Notice that "actual" pits can exist on the terrain, such as lakes. These features must be properly identified (by -9999 values) in order to stop the algoritm from trying to solve it.
| Field Summary | |
|---|---|
boolean |
corregido
A boolean flag indicating whether the Pit has been resolved |
double |
cota
The elevation of the Pit. |
int |
grupo
An identifier for assigned to cells that belong (drain into) the Pit. |
WorkRectangle |
Mc
A WorkRectangle object
describing the rectangular region that encloses the Pit's basin (set of cells
that drain into the Pit) |
WorkRectangle |
Mp
A WorkRectangle object
describing the rectangular region that encloses the Pit |
int |
orden
An index identifying the priority of the Pit with respect to all the other Pits in the DEM. |
boolean |
salida
A boolean flag indicating whether an outlet has been assigned for the Pit |
| Constructor Summary | |
|---|---|
Pit(int ggrupo,
double ccota,
WorkRectangle MMp)
Creates an instance of the Pit element |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object p1)
The comparison method for the Pit |
void |
corrigePit(NetworkExtractionModule Proc)
This algorithm fixes the Pit by finding a way out for the cells iside and draining to the pit |
boolean |
equals(java.lang.Object p1)
The equal method for the Pit |
int |
getCantCPit(int[][] MD)
Returns the size (number of pixels) in the Pit's basin |
int |
getCantPit(int[][] MD)
Returns the size (number of pixels) in the Pit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int grupo
public int orden
public boolean salida
public WorkRectangle Mp
WorkRectangle object
describing the rectangular region that encloses the Pit
public WorkRectangle Mc
WorkRectangle object
describing the rectangular region that encloses the Pit's basin (set of cells
that drain into the Pit)
public double cota
public boolean corregido
| Constructor Detail |
|---|
public Pit(int ggrupo,
double ccota,
WorkRectangle MMp)
ggrupo - The Pit group IDccota - The Pit elevationMMp - A WorkRectangle object
describing the rectangular region that encloses the Pit| Method Detail |
|---|
public int compareTo(java.lang.Object p1)
compareTo in interface java.lang.Comparablep1 - The Pit be compared against
public boolean equals(java.lang.Object p1)
equals in class java.lang.Objectp1 - The Pit be compared against
public void corrigePit(NetworkExtractionModule Proc)
Proc - The parent NetworkExtractionModulepublic int getCantPit(int[][] MD)
MD - A direction matrix in which cells belonging to a Pit are labeled by the Pit
group ID
public int getCantCPit(int[][] MD)
MD - A direction matrix in which cells belonging to a Pit are labeled by the Pit
group ID
|
||||||||||
| 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.