|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjecthydroScalingAPI.io.CRasToEsriASCII
public class CRasToEsriASCII
This class takes a CUENCAS raster and creates a ESRI GRID 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 | |
|---|---|
CRasToEsriASCII(java.io.File inputMetaFile,
java.io.File outputDir)
Creates a new instance of CRasToEsriASCII |
|
| Method Summary | |
|---|---|
void |
fileToExport(java.io.File file)
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 |
writeEsriFile()
Writes the data in Esri ASCII format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CRasToEsriASCII(java.io.File inputMetaFile,
java.io.File outputDir)
throws java.io.IOException
inputMetaFile - 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 file)
throws java.io.IOException
file - 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 writeEsriFile()
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.