|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.io.DataRaster
public class DataRaster
Uses the information on a MetaRaster to read one of
the binary files associated to it. Methods contained in this class return data
in different formats (Byte, Integer, Float or Double) and in different
arrangements (matrix or vector).
| Constructor Summary | |
|---|---|
DataRaster(MetaRaster metaInfo)
Creates a DataRaster object that will read files associated with the metaRaster file given as a parameter. |
|
| Method Summary | |
|---|---|
byte[][] |
getByte()
Casts data into Byte Format and returns a Matrix. |
double[][] |
getDouble()
Casts data into Double Format and returns a Matrix. |
double |
getDouble(int i,
int j)
Reads one value from the File. |
float |
getEqualized(float f)
Maps a number into the [0,1] according to the cumulative distribution function. |
float[][] |
getFloat()
Casts data into Float Format and returns a Matrix. |
float[][] |
getFloatEqualized()
Casts data into Float Format and returns a matrix (Array[n][m]). |
float[][] |
getFloatLine()
Casts data into Float Format and returns a single column Vector. |
float[][] |
getFloatLineEqualized()
Casts data into Float Format and returns a single column Vector. |
float[][] |
getFloatLineEqualized(float[] CDF)
Casts data into Float Format and returns a matrix (Array[n][m]). |
float[][] |
getFloatLineEqualizedResampled(int factor)
Casts data into Float Format and returns a single column Vector. |
float[][] |
getFloatLineResampled(int factor)
Casts data into Float Format and returns a matrix (Array[n][m]). |
float[][] |
getFloatResampled(int factor)
Casts data into Float Format and returns a Matrix. |
int[][] |
getInt()
Casts data into Integer Format and returns a Matrix. |
static void |
main(java.lang.String[] args)
A few tests of this class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataRaster(MetaRaster metaInfo)
throws java.io.IOException
metaInfo - The MetaRaster with information about the binary file
to be read.
java.io.IOException - Captures problems while reading the binary file| Method Detail |
|---|
public byte[][] getByte()
public int[][] getInt()
public float[][] getFloat()
public float[][] getFloatResampled(int factor)
public float[][] getFloatLine()
public float[][] getFloatLineEqualized()
public float[][] getFloatLineResampled(int factor)
public float[][] getFloatLineEqualizedResampled(int factor)
public float[][] getFloatEqualized()
public float getEqualized(float f)
f - The value to be transformed
public float[][] getFloatLineEqualized(float[] CDF)
CDF - The Cumulative Distristribution Function to be used.
public double[][] getDouble()
public double getDouble(int i,
int j)
public static void main(java.lang.String[] args)
args - Arguments are ignored.
|
||||||||||
| 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.