|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler uk.ac.leeds.ccg.andyt.grids.exchange.ESRIAsciiGridImporter
public class ESRIAsciiGridImporter
Class for importing ESRI Asciigrid.
Field Summary |
---|
Fields inherited from class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler |
---|
handleOutOfMemoryErrorFalse, handleOutOfMemoryErrorTrue, memoryReserve |
Constructor Summary | |
---|---|
ESRIAsciiGridImporter()
Creates a new instance of ESRIAsciiGridImporter |
|
ESRIAsciiGridImporter(java.io.File file)
Creates a new instance of ESRIAsciiGridImporter |
Method Summary | |
---|---|
void |
close()
For closing this.bufferedReader. |
Grid2DSquareCellDouble |
constructGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics,
java.io.File outputDirectory,
Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
int chunkNrows,
int chunkNcols)
Returns a Grid2DSquareCellDouble loaded from this.file |
Grid2DSquareCellInt |
constructGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics,
java.io.File outputDirectory,
Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory,
int chunkNrows,
int chunkNcols)
Returns a Grid2DSquareCellInt loaded from this.file |
java.lang.String |
getFilenamePrefix()
Returns the prefix (before "." part of filename of this.file. |
double |
readDouble()
Returns the next value as a double or Double.NEGATIVE_INFINITY |
double[] |
readHeaderDouble()
Reads the header of the file and returns a double[] where; [0] = (double) ncols; [1] = (double) nrows; [2] = xllcorner; [3] = yllcorner; [4] = cellsize; [5] = noDataValue if it exists or Double.NEGATIVE_INFINITY otherwise |
java.lang.Object[] |
readHeaderObject()
Reads the header of the file and returns a Object[] where; [0] = Long( ncols ); [1] = (double) nrows; [2] = xllcorner; [3] = yllcorner; [4] = cellsize; [5] = noDataValue if it exists or Double.NEGATIVE_INFINITY otherwise |
int |
readInt()
Returns the next value as a int or Integer.MIN_VALUE |
Methods inherited from class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler |
---|
clearMemoryReserve, initMemoryReserve, initMemoryReserve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ESRIAsciiGridImporter()
public ESRIAsciiGridImporter(java.io.File file)
Method Detail |
---|
public Grid2DSquareCellInt constructGrid2DSquareCellInt(GridStatisticsAbstract gridStatistics, java.io.File outputDirectory, Grid2DSquareCellIntChunkAbstractFactory grid2DSquareCellIntChunkFactory, int chunkNrows, int chunkNcols)
public Grid2DSquareCellDouble constructGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics, java.io.File outputDirectory, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols)
public double[] readHeaderDouble()
public java.lang.Object[] readHeaderObject()
public double readDouble()
public int readInt()
public void close()
public java.lang.String getFilenamePrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |