uk.ac.leeds.ccg.andyt.grids.core
Class Grid2DSquareCellDoubleFactory

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.grids.core.Grid2DSquareCellDoubleFactory

public class Grid2DSquareCellDoubleFactory
extends java.lang.Object

TODO: Abstraction and extension as for Grid2DSquareCellIntFactory. Add more control for prefered type of Grid2DSquareCellDoubleChunkFactory


Field Summary
protected  java.io.File directory
          A directory for caching.
 
Constructor Summary
Grid2DSquareCellDoubleFactory()
          Defaults directory to a new one in System.getProperties( "java.io.tmpdir" );
Grid2DSquareCellDoubleFactory(java.io.File directory)
           
 
Method Summary
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File gridFile)
          Returns a new Grid2DSquareCellDouble with values obtained from gridFile.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
          Returns a new Grid2DSquareCellDouble with values obtained from gridFile.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
          Returns a new Grid2DSquareCellDouble with values obtained from gridFile.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
          Returns a new Grid2DSquareCellDouble with values obtained from gridFile.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, java.io.ObjectInputStream ois)
           
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
          Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
          Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
          Returns a new Grid2DSquareCellDouble grid with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
          Returns a new Grid2DSquareCellDouble grid with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(Grid2DSquareCellAbstract grid2DSquareCell)
          Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(Grid2DSquareCellAbstract grid2DSquareCell, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
          Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics, java.io.File directory, java.io.File gridFile, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
          Returns a new Grid2DSquareCellDouble with values obtained from gridFile.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics, java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
          Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics, java.io.File directory, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
          Returns a new Grid2DSquareCellDouble grid with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols)
          Returns an Grid2DSquareCellDouble with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions)
          Returns an Grid2DSquareCellDouble with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
          Returns an Grid2DSquareCellDouble with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols, double noDataValue)
          Returns an Grid2DSquareCellDouble with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows, long ncols)
          Returns an Grid2DSquareCellDouble with all values as noDataValues.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows, long ncols, java.math.BigDecimal[] dimensions)
          Returns an Grid2DSquareCellDouble with all cell vallue equal to noDataValue.
 Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
          Returns an Grid2DSquareCellDouble with all cell vallue equal to noDataValue.
 java.io.File getDirectory()
          Returns directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

directory

protected java.io.File directory
A directory for caching.

Constructor Detail

Grid2DSquareCellDoubleFactory

public Grid2DSquareCellDoubleFactory()
Defaults directory to a new one in System.getProperties( "java.io.tmpdir" );


Grid2DSquareCellDoubleFactory

public Grid2DSquareCellDoubleFactory(java.io.File directory)
Parameters:
directory - A "workspace directory" for storing temporary files and caching Grid2DSquareCellDoubleAbstract data.
Method Detail

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows,
                                                           long ncols)
Returns an Grid2DSquareCellDouble with all values as noDataValues.

Parameters:
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols. Defaults: chunkNrows to 64, chunkNcols to 64.

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols)
Returns an Grid2DSquareCellDouble with all values as noDataValues.

Parameters:
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols. Defaults: dimensions = [ cellsize = 1.0d, xmin = 0.0d, ymin = 0.0d, xmax = ncols * cellsize, ymax = nrows * cellsize ]; noDataValue = Double.MIN_VALUE.

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols,
                                                           double noDataValue)
Returns an Grid2DSquareCellDouble with all values as noDataValues.

Parameters:
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols.
noDataValue - The grid = Doubleeger.MIN_VALUE; Defaults: dimensions = [ cellsize = 1.0d, xmin = 0.0d, ymin = 0.0d, xmax = ncols * cellsize, ymax = nrows * cellsize ];

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions)
Returns an Grid2DSquareCellDouble with all cell vallue equal to noDataValue.

Parameters:
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols.
dimensions - Defaults: chunkNrows and chunkNcols to 64 noDataValue = Double.MIN_VALUE

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions,
                                                           double noDataValue)
Returns an Grid2DSquareCellDouble with all cell vallue equal to noDataValue.

Parameters:
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols.
dimensions -
noDataValue - Defaults: chunkNrows and chunkNcols to 64

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions)
Returns an Grid2DSquareCellDouble with all values as noDataValues.

Parameters:
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols. Defaults: directory to FileCreator.createNewFile( this.directory ) noDataValue = Double.MIN_VALUE

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions,
                                                           double noDataValue)
Returns an Grid2DSquareCellDouble with all values as noDataValues.

Parameters:
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - the Grid2DSquareCellDouble nrows.
ncols - the Grid2DSquareCellDouble ncols.
noDataValue - Defaults: directory to FileCreator.createNewFile( this.directory )

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble grid with all values as noDataValues.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - The Grid2DSquareCellDouble nrows.
ncols - The Grid2DSquareCellDouble ncols.
dimensions -
noDataValue - the no data value to be used. Default: Grid2DSquareCellDoubleChunkAbstractFactory to Grid2DSquareCellDoubleChunkArrayFactory

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble grid with all values as noDataValues.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - The Grid2DSquareCellDouble nrows.
ncols - The Grid2DSquareCellDouble ncols.
dimensions -
noDataValue - the no data value to be used. Default: GridStatisticsAbstract to GridStatistics1

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics,
                                                           java.io.File directory,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long nrows,
                                                           long ncols,
                                                           java.math.BigDecimal[] dimensions,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble grid with all values as noDataValues.

Parameters:
gridStatistics - The GridStatisticsAbstract to accompany the returned grid.
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
nrows - The Grid2DSquareCellDouble nrows.
ncols - The Grid2DSquareCellDouble ncols.
dimensions -
noDataValue - the no data value to be used. TODO: test

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(Grid2DSquareCellAbstract grid2DSquareCell)
Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.

Parameters:
grid2DSquareCell - The Grid2DSquareCellAbstract from which grid values are used.

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(Grid2DSquareCellAbstract grid2DSquareCell,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex)
Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.

Parameters:
grid2DSquareCell - The Grid2DSquareCellAbstract from which grid values are used.
startRowIndex - The topmost row index of grid2DSquareCell.
startColIndex - The leftmost column index of grid2DSquareCell.
endRowIndex - The bottom row index of grid2DSquareCell.
endColIndex - The rightmost column index of grid2DSquareCell.

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           Grid2DSquareCellAbstract grid2DSquareCell,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex)
Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
grid2DSquareCell - The Grid2DSquareCellAbstract from which grid values are used.
startRowIndex - The topmost row index of grid2DSquareCell.
startColIndex - The leftmost column index of grid2DSquareCell.
endRowIndex - The bottom row index of grid2DSquareCell.
endColIndex - The rightmost column index of grid2DSquareCell. Default: Grid2DSquareCellDoubleChunkAbstractFactory to Grid2DSquareCellDoubleChunkArrayFactory chunkNrows, chunkNcols to 64 noDataValue to grid2DSquareCell.getNoDataValueBigDecimal() ).doubleValue()

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           Grid2DSquareCellAbstract grid2DSquareCell,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
grid2DSquareCell - The Grid2DSquareCellAbstract from which grid values are used.
startRowIndex - The topmost row index of grid2DSquareCell.
startColIndex - The leftmost column index of grid2DSquareCell.
endRowIndex - The bottom row index of grid2DSquareCell.
endColIndex - The rightmost column index of grid2DSquareCell.
noDataValue - the no data value to be used. Default: GridStatisticsAbstract to GridStatistics1

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics,
                                                           java.io.File directory,
                                                           Grid2DSquareCellAbstract grid2DSquareCell,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble with all values taken from grid2DSquareCell.

Parameters:
gridStatistics - The GridStatisticsAbstract to accompany the returned grid.
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
grid2DSquareCell - The Grid2DSquareCellAbstract from which grid values are used.
startRowIndex - The topmost row index of grid2DSquareCell.
startColIndex - The leftmost column index of grid2DSquareCell.
endRowIndex - The bottom row index of grid2DSquareCell.
endColIndex - The rightmost column index of grid2DSquareCell.
noDataValue - the no data value to be used. TODO: test

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File gridFile)
Returns a new Grid2DSquareCellDouble with values obtained from gridFile. If gridFile is a directory it is assumed it will contain a file called Cache which can be opened into an object input stream and initailised as an instance of a class extending Grid2DSquareCellAbstract.

Parameters:
gridFile - Either a directory, or a formatted File with a specific extension containing the data and information about the Grid2DSquareCellDouble to be returned.

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           java.io.File gridFile,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble with values obtained from gridFile.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
gridFile - Either a directory, or a formatted File with a specific extension containing the data and information about the Grid2DSquareCellDouble to be returned.
startRowIndex - The topmost row index of the grid stored as gridFile.
startColIndex - The leftmost column index of the grid stored as gridFile.
endRowIndex - The bottom row index of the grid stored as gridFile.
endColIndex - The rightmost column index of the grid stored as gridFile.
noDataValue - the no data value to be used. Default: Grid2DSquareCellDoubleChunkAbstractFactory to Grid2DSquareCellDoubleChunkArrayFactory

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           java.io.File gridFile,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble with values obtained from gridFile.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
gridFile - Either a directory, or a formatted File with a specific extension containing the data and information about the Grid2DSquareCellDouble to be returned.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
startRowIndex - The topmost row index of the grid stored as gridFile.
startColIndex - The leftmost column index of the grid stored as gridFile.
endRowIndex - The bottom row index of the grid stored as gridFile.
endColIndex - The rightmost column index of the grid stored as gridFile.
noDataValue - the no data value to be used. Defaults: chunkNrows and chunkNcols to 64

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           java.io.File gridFile,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble with values obtained from gridFile.

Parameters:
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
gridFile - Either a directory, or a formatted File with a specific extension containing the data and information about the Grid2DSquareCellDouble to be returned.
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
startRowIndex - The topmost row index of the grid stored as gridFile.
startColIndex - The leftmost column index of the grid stored as gridFile.
endRowIndex - The bottom row index of the grid stored as gridFile.
endColIndex - The rightmost column index of the grid stored as gridFile.
noDataValue - the no data value to be used. Default: GridStatisticsAbstract to GridStatistics1

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics,
                                                           java.io.File directory,
                                                           java.io.File gridFile,
                                                           Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory,
                                                           int chunkNrows,
                                                           int chunkNcols,
                                                           long startRowIndex,
                                                           long startColIndex,
                                                           long endRowIndex,
                                                           long endColIndex,
                                                           double noDataValue)
Returns a new Grid2DSquareCellDouble with values obtained from gridFile.

Parameters:
gridStatistics - The GridStatisticsAbstract to accompany the returned grid.
directory - The directory to be used for storing cached Grid2DSquareCellDouble information.
gridFile - Either a directory, or a formatted File with a specific extension containing the data and information about the Grid2DSquareCellDouble to be returned.
chunkNrows - The Grid2DSquareCellDouble chunkNrows.
chunkNcols - The Grid2DSquareCellDouble chunkNcols.
grid2DSquareCellDoubleChunkFactory - The prefered Grid2DSquareCellDoubleChunkAbstractFactory for creating chunks that the constructed Grid2DSquareCellDouble is to be made of.
startRowIndex - The topmost row index of the grid stored as gridFile.
startColIndex - The leftmost column index of the grid stored as gridFile.
endRowIndex - The bottom row index of the grid stored as gridFile.
endColIndex - The rightmost column index of the grid stored as gridFile.
noDataValue - the no data value to be used.

createGrid2DSquareCellDouble

public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory,
                                                           java.io.File gridFile,
                                                           java.io.ObjectInputStream ois)
Parameters:
directory -
gridFile -
ois -

getDirectory

public java.io.File getDirectory()
Returns directory.