Serialized Form


Package uk.ac.leeds.ccg.andyt.grids.core

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellAbstract extends ErrorHandler implements Serializable

serialVersionUID: 1L

Serialized Fields

directory

java.io.File directory
Local directory used for caching.


grid2DSquareCellChunks

java.util.HashMap<K,V> grid2DSquareCellChunks
The chunks that make up this instance. HashMap is prefered to an array or an array of arrays due to garbage collection caching advantages. TODO: 1. Would it be better to use a; ReferenceMap, ReferenceIdentityMap, IdentityHashMap, or Hashtable in place of this HashMap? 2. Should this be transient?


gridStatistics

GridStatisticsAbstract gridStatistics
A reference to the grid Statistics Object.


nChunkRows

int nChunkRows
For storing the number of chunk rows.


nChunkCols

int nChunkCols
For storing the number of chunk columns.


chunkNrows

int chunkNrows
For storing the (usual) number of cells in a chunk row. This may be different for chunks in the final row of chunks (final as in row major order)


chunkNcols

int chunkNcols
For storing the (usual) number of cells in a chunk column. This may be different for chunks in the final row of chunks (final as in row major order)


nrows

long nrows
For storing the number of rows in the grid.


ncols

long ncols
For storing the number of columns in the grid.


name

java.lang.String name
For storing the name of the grid.


dimensions

java.math.BigDecimal[] dimensions
For storing cellsize, minx, miny, maxx, maxy Although maxx and maxy could be easily calculated if required, for convenience they are calculated by default during grid construction.


dimensionsScale

int dimensionsScale
For storing the minimum number of decimal places needed to store the dimensions.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellAbstract.CellID extends java.lang.Object implements Serializable

Serialized Fields

cellRowIndex

long cellRowIndex
For storing the row in which the cell is positioned


cellColIndex

long cellColIndex
For storing the column in which the cell is positioned


hashCode

int hashCode
For storing a hashCode for the cell. NB. When the number of cells in a grid is more than the maximum int value care should be taken that hashCodes are distributed in a relatively even way. Operations will slow down greatly if a large number of cells have a CellID with the same hashCode.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellAbstract.ChunkID extends java.lang.Object implements Serializable

Serialized Fields

chunkRowIndex

int chunkRowIndex
For storing the chunk row index


chunkColIndex

int chunkColIndex
For storing the chunk column index


hashCode

int hashCode
For storing a hashCode for this ChunkID. NB. When the number of cells in a chunk is more than the maximum int value care should be taken to distributed hashcodes in a relatively even way. Operations may slow down greatly if a large number of chunks have ChunkIDs with the same hashCode.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract extends java.lang.Object implements Serializable

serialVersionUID: 1L

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellChunkAbstract.ChunkCellID extends java.lang.Object implements Serializable

Serialized Fields

chunkCellRowIndex

int chunkCellRowIndex
For storing the row in which the cell is positioned


chunkCellColIndex

int chunkCellColIndex
For storing the column in which the cell is positioned


hashCode

int hashCode
For storing a hashCode for the cell. NB. When the number of cells in a grid is more than the maximum int value care should be taken to distributed hashcodes in a relatively even way. Operations will slow down greatly if a large number of cells have a ChunkCellID with the same hashCode.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDouble extends Grid2DSquareCellAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

noDataValue

double noDataValue
For storing the NODATA value of the grid, which by default is Double.NEGATIVE_INFINITY. N.B. Double.NaN should not be used. N.B. Care should be taken so that noDataValue is not a data value.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunk64CellMap extends Grid2DSquareCellDoubleChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

data

gnu.trove.TDoubleLongHashMap data
For storing values mapped to a binary encoded long. The long is a key which indicates if the value is that at a given location. Both keys and values are unique.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkAbstract extends Grid2DSquareCellChunkAbstract implements Serializable

serialVersionUID: 1L

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkArray extends Grid2DSquareCellDoubleChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

data

double[][] data
For storing values arranged in rows and columns.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkJAI extends Grid2DSquareCellDoubleChunkAbstract implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream ois)

writeObject

private void writeObject(java.io.ObjectOutputStream oos)

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkMap extends Grid2DSquareCellDoubleChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

defaultValue

double defaultValue
A value initialised with grid that can be used to optimise storage. Storage is optimised with the defaultValue set to the most common value. By default the defaultValue is set to this.grid2DSquareCell.getNoDataValue().


data

gnu.trove.TDoubleObjectHashMap data
For storing values mapped to a ChunkCellID HashSet or an individual ChunkCellID.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleChunkRAF extends Grid2DSquareCellDoubleChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

file

java.io.File file
The File used to store the data.


randomAccessFile

java.io.RandomAccessFile randomAccessFile
The RandomAccessFile for accessing file.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellInt extends Grid2DSquareCellAbstract implements Serializable

serialVersionUID: 1L

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunk64CellMap extends Grid2DSquareCellIntChunkAbstract implements Serializable

Serialized Fields

data

gnu.trove.TIntLongHashMap data
For storing values mapped to a binary encoded long. The long is a key which indicates if the value is that at a given location. Both keys and values are unique.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkAbstract extends Grid2DSquareCellChunkAbstract implements Serializable

serialVersionUID: 1L

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkArray extends Grid2DSquareCellIntChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

data

int[][] data
For storing values arranged in rows and columns.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkJAI extends Grid2DSquareCellIntChunkAbstract implements Serializable

serialVersionUID: 1L

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream ois)

writeObject

private void writeObject(java.io.ObjectOutputStream oos)

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkMap extends Grid2DSquareCellIntChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

defaultValue

int defaultValue
A value initialised with grid that can be used to optimise storage. Storage is optimised with the defaultValue set to the most common value. By default the defaultValue is set to this.grid2DSquareCell.getNoDataValue().


data

gnu.trove.TIntObjectHashMap data
For storing values mapped to a ChunkCellID HashSet or an individual ChunkCellID.

Class uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellIntChunkRAF extends Grid2DSquareCellIntChunkAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

file

java.io.File file
The File used to store the data.


randomAccessFile

java.io.RandomAccessFile randomAccessFile
The RandomAccessFile for accessing file.

Class uk.ac.leeds.ccg.andyt.grids.core.GridStatistics0 extends GridStatisticsAbstract implements Serializable

serialVersionUID: 1L

Class uk.ac.leeds.ccg.andyt.grids.core.GridStatistics1 extends GridStatisticsAbstract implements Serializable

serialVersionUID: 1L

Serialized Fields

isUpToDate

boolean isUpToDate
Is true iff fields are upToDate else is false.

Class uk.ac.leeds.ccg.andyt.grids.core.GridStatisticsAbstract extends ErrorHandler implements Serializable

serialVersionUID: 1L

Serialized Fields

grid2DSquareCell

Grid2DSquareCellAbstract grid2DSquareCell
A reference to the Grid2DSquareCellAbstract this is for.


nonNoDataValueCountBigInteger

java.math.BigInteger nonNoDataValueCountBigInteger
For storing the number of cells with non noDataValues.


sumBigDecimal

java.math.BigDecimal sumBigDecimal
For storing the sum of all non noDataValues as a BigDecimal.


minBigDecimal

java.math.BigDecimal minBigDecimal
For storing the minimum of all non noDataValues as a BigDecimal.


minCountBigInteger

java.math.BigInteger minCountBigInteger
For storing the number of min values as a BigInteger.


maxBigDecimal

java.math.BigDecimal maxBigDecimal
For storing the maximum of all non noDataValues as a BigDecimal.


maxCountBigInteger

java.math.BigInteger maxCountBigInteger
For storing the number of max values as a BigInteger.


Package uk.ac.leeds.ccg.andyt.grids.examples

Class uk.ac.leeds.ccg.andyt.grids.examples.ExporterRuns extends Run implements Serializable

Class uk.ac.leeds.ccg.andyt.grids.examples.GenerateTestData extends Run implements Serializable

Serialized Fields

testDataDirectory

java.io.File testDataDirectory

time0

long time0

Class uk.ac.leeds.ccg.andyt.grids.examples.Run extends ErrorHandler implements Serializable

Serialized Fields

grid2DSquareCellDoubleProcessor

Grid2DSquareCellProcessor grid2DSquareCellDoubleProcessor

Class uk.ac.leeds.ccg.andyt.grids.examples.UtilitiesRuns extends Run implements Serializable

Serialized Fields

time

long time

Package uk.ac.leeds.ccg.andyt.grids.exchange

Class uk.ac.leeds.ccg.andyt.grids.exchange.ESRIAsciiGridExporter extends ErrorHandler implements Serializable

serialVersionUID: 1L

Class uk.ac.leeds.ccg.andyt.grids.exchange.ESRIAsciiGridImporter extends ErrorHandler implements Serializable

Serialized Fields

file

java.io.File file
For storing ESRIAsciigrid File


bufferedReader

java.io.BufferedReader bufferedReader
For storing ESRIAsciigrid BufferedReader


streamTokenizer

java.io.StreamTokenizer streamTokenizer
For storing ESRIAsciigrid StreamTokenizer

Class uk.ac.leeds.ccg.andyt.grids.exchange.ImageExporter extends ErrorHandler implements Serializable

serialVersionUID: 1L


Package uk.ac.leeds.ccg.andyt.grids.process

Class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessor extends ErrorHandler implements Serializable

Serialized Fields

startTime

long startTime
For storing the start time of the processing.


log

java.io.PrintWriter log
The log for recording progress and information about the processing.


logIndentation

int logIndentation
The log indentation (how many spaces before a log message line is output).


workspace

java.io.File workspace
The workspace directory for the processing.


grid2DSquareCells

java.util.HashSet<E> grid2DSquareCells
A collection of the Grid2dSquareCellAbstracts being processed

Class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessorDEM extends Grid2DSquareCellProcessor implements Serializable

Serialized Fields

cellIDs

java.util.HashSet<E> cellIDs

Class uk.ac.leeds.ccg.andyt.grids.process.Grid2DSquareCellProcessorGWS extends Grid2DSquareCellProcessor implements Serializable


Package uk.ac.leeds.ccg.andyt.grids.utilities

Class uk.ac.leeds.ccg.andyt.grids.utilities.ErrorHandler extends java.lang.Object implements Serializable

serialVersionUID: 1L

Serialized Fields

memoryReserve

int[] memoryReserve
Reserve memory to be cleared when dealing with java.lang.OutOfMemoryErrors.