org.gcube.dataanalysis.geo.utils
Class AscRasterReader
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AscRasterReader
public AscRasterReader()
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.