hydroScalingAPI.io
Class GrassToCRas
java.lang.Object
hydroScalingAPI.io.GrassToCRas
public class GrassToCRas
- extends java.lang.Object
This class takes GRASS ASCII raster file and creates a CUENCAS raster, which can
be DEM or hydrometeorological fields. IMPORTANT: The Class assumes the
original GRASS file is in the LAT-LONG projection.
- Author:
- Ricardo Mantilla, Matt Luck
|
Constructor Summary |
GrassToCRas(java.io.File inputFile,
java.io.File outputDir,
int type)
Creates an instance of the GrassToCRas |
|
Method Summary |
static void |
main(java.lang.String[] args)
Test the class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrassToCRas
public GrassToCRas(java.io.File inputFile,
java.io.File outputDir,
int type)
throws java.io.IOException
- Creates an instance of the GrassToCRas
- Parameters:
type - 0: Import a DEM (creates a *.metaDEM and a *.dem file)
1: Import any other kind of field (creates a *.metaVHC and a *.vhc file)inputFile - The GRASS file to be importedoutputDir - The directory where the CUENCAS Raster will be placed
- Throws:
java.io.IOException - Captures errors during the reading and/or wrtining process
main
public static void main(java.lang.String[] args)
- Test the class
- Parameters:
args - the command line arguments
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.