|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.modules.rainfallRunoffModel.objects.StormManager
public class StormManager
This class handles the precipitation over a basin. It takes in a group of raster files that represent snapshots of the rainfall fields and projects those fields over the hillslope map to obtain hillslope-based rainfall time series.
| Constructor Summary | |
|---|---|
StormManager(java.io.File locFile,
Basin myCuenca,
LinksAnalysis linksStructure,
MetaRaster metaDatos,
byte[][] matDir,
int[][] magnitudes)
Creates a new instance of StormManager (with spatially and temporally variable rainfall rates over the basin) based in a set of raster maps of rainfall intensities |
|
StormManager(LinksAnalysis linksStructure,
float rainIntensity,
float rainDuration)
Creates a new instance of StormManager (with constant rainfall rate over the basin during a given period of time) |
|
| Method Summary | |
|---|---|
java.util.Date[] |
getFilesDates()
Returns a group of Date indicating the date associated to the files |
float |
getMaxPrecOnHillslope(int HillNumber)
Returns the maximum value of precipitation recorded for a given hillslope |
float |
getMeanPrecOnHillslope(int HillNumber)
Returns the maximum value of precipitation recorded for a given hillslope |
int |
getNumberOfFilesRead()
Returns the number of files that were read |
float |
getPrecOnHillslope(int HillNumber,
java.util.Calendar dateRequested)
Returns the value of rainfall rate in mm/h for a given moment of time |
float |
getTotalHillSlopeBasedPrec(int HillNumber)
The total rainfall over a given hillslope |
float |
getTotalPixelBasedPrec(int i,
int j)
The total rainfall over a given pixel of the original raster fields |
boolean |
isCompleted()
A boolean flag indicating if the precipitation files were fully read |
static void |
main(java.lang.String[] args)
|
double |
stormFinalTimeInMinutes()
The final storm time as a double in milliseconds obtained from the method getTimeInMillis() of the Calendar object |
java.util.Calendar |
stormInitialTime()
The initial storm time as a Calendar object |
double |
stormInitialTimeInMinutes()
The initial storm time as a double in milliseconds obtained from the method getTimeInMillis() of the Calendar object |
java.lang.String |
stormName()
Returns the name of this storm event |
float |
stormRecordResolution()
The storm temporal resolution in milliseconds |
double |
stormRecordResolutionInMinutes()
The storm record time resolution in minutes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StormManager(LinksAnalysis linksStructure,
float rainIntensity,
float rainDuration)
linksStructure - The topologic structure of the river networkrainIntensity - The uniform intensity to be applied over the basinbrainDuration - The duration of the event with the given intensity
public StormManager(java.io.File locFile,
Basin myCuenca,
LinksAnalysis linksStructure,
MetaRaster metaDatos,
byte[][] matDir,
int[][] magnitudes)
locFile - The path to the raster filesmyCuenca - The Basin object describing the
basin under considerationlinksStructure - The topologic structure of the river networkmetaDatos - A MetaRaster describing the rainfall intensity mapsmatDir - The directions matrix of the DEM that contains the basinmagnitudes - The magnitudes matrix of the DEM that contains the basin| Method Detail |
|---|
public float getPrecOnHillslope(int HillNumber,
java.util.Calendar dateRequested)
HillNumber - The index of the desired hillslopedateRequested - The time for which the rain is desired
public float getMaxPrecOnHillslope(int HillNumber)
HillNumber - The index of the desired hillslope
public float getMeanPrecOnHillslope(int HillNumber)
HillNumber - The index of the desired hillslope
public boolean isCompleted()
public java.lang.String stormName()
public float stormRecordResolution()
public java.util.Calendar stormInitialTime()
Calendar object
Calendar object indicating when the first drop of water fell
on the basinpublic double stormInitialTimeInMinutes()
Calendar object
public double stormFinalTimeInMinutes()
Calendar object
public double stormRecordResolutionInMinutes()
public float getTotalPixelBasedPrec(int i,
int j)
i - The row number of the desired locationj - The column number of the desired location
public float getTotalHillSlopeBasedPrec(int HillNumber)
HillNumber - The index of the desired hillslope
public int getNumberOfFilesRead()
public java.util.Date[] getFilesDates()
Date indicating the date associated to the files
Datespublic 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.