Get the datum at the specified index.
Get the datum at the specified index.
The index of the datum
The datum
Get the datum at the specified index.
Get the datum at the specified index.
The index of the datum
The datum as a double
Return ascii art of this raster.
Return ascii art of this raster.
Return ascii art of this raster.
Return ascii art of this raster. The single int parameter indicates the number of significant digits to be printed.
Return ascii art of a range from this raster.
Return ascii art of a range from this raster.
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function.
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function. For every (x, y) cell coordinate, get each of the Tiles' integer value, map them to a new value, and assign it to the output's (x, y) cell.
The other Tile
A function from (Int, Int) to Int
The result, an Tile
Combine two ArrayTiles' cells into new cells using the given integer function.
Combine two ArrayTiles' cells into new cells using the given integer function. For every (x, y) cell coordinate, get each of the ArrayTiles' integer values, map them to a new value, and assign it to the output's (x, y) cell.
The other ArrayTile
A function from (Int, Int) to Int
The result, an ArrayTile
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function.
Combine the cells of an ArrayTile and a Tile into a new Tile using the given function. For every (x, y) cell coordinate, get tiles' double values, map them to a new value, and assign it to the output's (x, y) cell.
The other Tile
A function from (Double, Double) to Double
The result, an Tile
Combine two ArrayTiles' cells into new cells using the given double function.
Combine two ArrayTiles' cells into new cells using the given double function. For every (x, y) cell coordinate, get each of the ArrayTiles' double values, map them to a new value, and assign it to the output's (x, y) cell.
The other ArrayTile
A function from (Double, Double) to Double
The result, an ArrayTile
Returns a Tile equivalent to this ArrayTile, except with cells of the given type.
Return a copy of the present BitArrayTile.
Return a copy of the present BitArrayTile.
The copy
Reduce the resolution of the present Tile to the given number of columns and rows.
Combine two Tiles together using one of two given functions.
Combine two Tiles together using one of two given functions. If the union of the types of the two cells is floating-point, then the floating function is used, otherwise the integer function is used.
The tile to combine with the present one
The integer function
The double function
Execute a function at each pixel of a Tile.
Map one of the two given functions across the Tile to produce a new one.
Conditionally map across the Tile with one of two functions, depending on whether the tile is an integer- or a floating-tile.
Check for equality between the present ArrayTile and any other object.
Return tuple of highest and lowest value in raster.
Return tuple of highest and lowest value in raster.
Currently does not support double valued raster data types (FloatConstantNoDataCellType, DoubleConstantNoDataCellType). Calling findMinMax on rasters of those types will give the integer min and max of the rounded values of their cells.
Return tuple of highest and lowest value in raster.
Return tuple of highest and lowest value in raster.
Execute a function on each cell of the ArrayTile.
Execute the given function 'f' at every location in the tile.
Execute the given function 'f' at every location in the tile. The function 'f' takes the column, row, and value and returns nothing (presumably for side-effects).
Execute a function on each cell of the ArrayTile.
Execute the given function 'f' at every location in the tile.
Execute the given function 'f' at every location in the tile. The function 'f' takes the column, row, and value, the last one as a double, and returns nothing (presumably for side-effects).
Execute an DoubleTileVisitor at each cell of the ArrayTile.
Execute an DoubleTileVisitor at each cell of the ArrayTile.
A DoubleTileVisitor
Execute an IntTileVisitor at each cell of the ArrayTile.
Execute an IntTileVisitor at each cell of the ArrayTile.
An IntTileVisitor
Fetch the datum at the given column and row of the ArrayTile.
Fetch the datum at the given column and row of the ArrayTile.
Changes the interpretation of the tile cells through changing NoData handling and optionally cell data type.
Changes the interpretation of the tile cells through changing NoData handling and optionally cell data type. If DataType portion of the CellType is unchanged the tile data is not duplicated through conversion. If cell DataType conversion is required it is done in a naive way, without considering NoData handling.
CellType to be used in interpreting existing cells
Map each cell in the given raster to a new one, using the given function.
Map each cell in the given raster to a new one, using the given function.
A function from Int to Int, executed at each point of the BitArrayTile
The result, a Tile
Map over the tiles using a function which accepts the column, row, and value at that position and returns an integer.
Map over the tiles using a function which accepts the column, row, and value at that position and returns an integer.
Map each cell in the given raster to a new one, using the given function.
Map each cell in the given raster to a new one, using the given function.
A function from Double to Double, executed at each point of the BitArrayTile
The result, a Tile
Map over the tiles using a function which accepts the column, row, and value at that position and returns a double.
Map over the tiles using a function which accepts the column, row, and value at that position and returns a double.
Map an DoubleTileMapper over the present tile.
Map an DoubleTileMapper over the present tile.
The mapper
The result, a Tile
Conditionally execute (or don't) the given function at each pixel of a Tile, depending on whether that pixel is NODATA or not.
Conditionally execute (or don't) the given function at each pixel of a Tile, depending on whether that pixel is NODATA or not.
Map an IntTileMapper over the present tile.
Map an IntTileMapper over the present tile.
The mapper
The result, a Tile
Create a mutable copy of this tile
Create a mutable copy of this tile
Normalizes the values of this raster, given the current min and max, to a new min and max.
Normalizes the values of this raster, given the current min and max, to a new min and max.
Old minimum value
Old maximum value
New minimum value
New maximum value
Normalizes the values of this raster, given the current min and max, to a new min and max.
Normalizes the values of this raster, given the current min and max, to a new min and max.
Old minimum value
Old maximum value
New minimum value
New maximum value
Rescale the values in this Tile so that they are between the two given values.
Rescale the values in this Tile so that they are between the two given values.
Set the value of the raster at the given column and row with the given value.
Set the value of the raster at the given column and row with the given value.
The column
The row
The value
Set the value of the raster at the given column and row with the given value.
Set the value of the raster at the given column and row with the given value.
The column
The row
The value
The size of the grid, e.g.
The size of the grid, e.g. cols * rows.
Return a copy of the underlying array of the present ArrayTile.
Return a copy of the underlying array of the present ArrayTile.
Return the ArrayTile equivalent of this ArrayTile.
Convert the present BitArrayTile to an array of bytes and return that array.
Convert the present BitArrayTile to an array of bytes and return that array.
An array of bytes
Return the underlying array of this ArrayTile as a list.
Return the under-laying array of this ArrayTile as a list.
Update the datum at the specified index.
Update the datum at the specified index.
The index of the datum
The datum
Paste the given Tile into the present one starting at the given column and row offsets.
Paste the given Tile into the present one starting at the given column and row offsets.
The column offset
The row offset
The source tile
Update the datum at the specified index.
Update the datum at the specified index.
The index of the datum
The datum
ArrayTile based on an Array[Byte] as a bitmask; values are 0 and 1. Thus, there are 8 boolean (0 / 1) values per byte in the array. For example, Array(11, 9) corresponds to (0 0 0 0 1 0 1 1), (0 0 0 0 1 0 0 1) which means that we have 5 cells set to 1 and 11 cells set to 0.
Note that unlike the other array-based raster data objects we need to be explicitly told our size, since length=7 and length=8 will both need to allocate an Array[Byte] with length=1.