org.gcube.dataanalysis.geo.utils
Class AscRasterReader

java.lang.Object
  extended by org.gcube.dataanalysis.geo.utils.AscRasterReader

public class AscRasterReader
extends Object

A class which reads an ESRI ASCII raster file into a Raster

Author:
dmrust

Constructor Summary
AscRasterReader()
           
 
Method Summary
static void main(String[] args)
           
 AscRaster readRaster(String filename)
          The most useful method - reads a raster file, and returns a Raster object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AscRasterReader

public AscRasterReader()
Method Detail

main

public static void main(String[] args)
                 throws IOException
Throws:
IOException

readRaster

public AscRaster readRaster(String filename)
                     throws IOException,
                            RuntimeException
The most useful method - reads a raster file, and returns a Raster object. Throws standard IOExceptions associated with opening and reading files, and RuntimeExceptions if there are problems with the file format

Parameters:
filename -
Returns:
the Raster object read in from the file
Throws:
IOException
RuntimeException


Copyright © 2013. All Rights Reserved.