|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.io.CRasToGrass
public class CRasToGrass
This class takes a CUENCAS raster and creates a GRASS ascii raster inputFile, which can be a DEM or a hydrometeorological field. IMPORTANT: The Class will write the GRID inputFile using a gloabal LAT-LONG WGS-84 projection.
| Constructor Summary | |
|---|---|
CRasToGrass(java.io.File inputFile,
java.io.File outputDir)
Creates a new instance of CRasToGrass |
|
| Method Summary | |
|---|---|
void |
fileToExport(java.io.File inputFile)
Provides the class with the path to the binary file to be exported using the data from the MetaRaster provided in the constructor |
void |
fileToExport(MetaRaster thisMetaInfo)
Takes in a new MetaRaster to use as template for the data to be exported |
static void |
main(java.lang.String[] args)
Tests for the class |
void |
writeGrassFile()
Writes the data in GRASS ascii format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRasToGrass(java.io.File inputFile,
java.io.File outputDir)
throws java.io.IOException
inputFile - The MetaRaster for the file to be exportedoutputDir - The destination directory
java.io.IOException - Captures error in the read/write process| Method Detail |
|---|
public void fileToExport(java.io.File inputFile)
throws java.io.IOException
inputFile - Path to the binary file
java.io.IOException - Captures errors reading and/or writing
public void fileToExport(MetaRaster thisMetaInfo)
throws java.io.IOException
thisMetaInfo - The MetaRaster that will be used to retrive binary data
java.io.IOException - Errors reading the data
public void writeGrassFile()
throws java.io.IOException
java.io.IOException - Captures errors while writing the ascii filepublic 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.