|
||||||||||
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.core.Grid2DSquareCellDoubleFactory
public class Grid2DSquareCellDoubleFactory
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 |
---|
protected java.io.File directory
Constructor Detail |
---|
public Grid2DSquareCellDoubleFactory()
public Grid2DSquareCellDoubleFactory(java.io.File directory)
directory
- A "workspace directory" for storing temporary files and
caching Grid2DSquareCellDoubleAbstract data.Method Detail |
---|
public Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows, long ncols)
nrows
- the Grid2DSquareCellDouble nrows.ncols
- the Grid2DSquareCellDouble ncols.
Defaults:
chunkNrows to 64,
chunkNcols to 64.public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols)
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.public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols, double noDataValue)
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 ];public Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows, long ncols, java.math.BigDecimal[] dimensions)
nrows
- the Grid2DSquareCellDouble nrows.ncols
- the Grid2DSquareCellDouble ncols.dimensions
- Defaults:
chunkNrows and chunkNcols to 64
noDataValue = Double.MIN_VALUEpublic Grid2DSquareCellDouble createGrid2DSquareCellDouble(long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
nrows
- the Grid2DSquareCellDouble nrows.ncols
- the Grid2DSquareCellDouble ncols.dimensions
- noDataValue
- Defaults:
chunkNrows and chunkNcols to 64public Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions)
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_VALUEpublic Grid2DSquareCellDouble createGrid2DSquareCellDouble(int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
chunkNrows
- The Grid2DSquareCellDouble chunkNrows.chunkNcols
- The Grid2DSquareCellDouble chunkNcols.nrows
- the Grid2DSquareCellDouble nrows.ncols
- the Grid2DSquareCellDouble ncols.noDataValue
- Defaults:
directory to FileCreator.createNewFile( this.directory )public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
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
Grid2DSquareCellDoubleChunkArrayFactorypublic Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
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 GridStatistics1public Grid2DSquareCellDouble createGrid2DSquareCellDouble(GridStatisticsAbstract gridStatistics, java.io.File directory, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, int chunkNrows, int chunkNcols, long nrows, long ncols, java.math.BigDecimal[] dimensions, double noDataValue)
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: testpublic Grid2DSquareCellDouble createGrid2DSquareCellDouble(Grid2DSquareCellAbstract grid2DSquareCell)
grid2DSquareCell
- The Grid2DSquareCellAbstract from which grid
values are used.public Grid2DSquareCellDouble createGrid2DSquareCellDouble(Grid2DSquareCellAbstract grid2DSquareCell, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
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.public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, Grid2DSquareCellAbstract grid2DSquareCell, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex)
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()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)
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 GridStatistics1public 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)
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: testpublic Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File gridFile)
gridFile
- Either a directory, or a formatted File with a specific
extension containing the data and information about the
Grid2DSquareCellDouble to be returned.public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
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 Grid2DSquareCellDoubleChunkArrayFactorypublic Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, Grid2DSquareCellDoubleChunkAbstractFactory grid2DSquareCellDoubleChunkFactory, long startRowIndex, long startColIndex, long endRowIndex, long endColIndex, double noDataValue)
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 64public 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)
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 GridStatistics1public 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)
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.public Grid2DSquareCellDouble createGrid2DSquareCellDouble(java.io.File directory, java.io.File gridFile, java.io.ObjectInputStream ois)
directory
- gridFile
- ois
- public java.io.File getDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |