Class

geotrellis.raster

UShortUserDefinedNoDataArrayTile

Related Doc: package raster

Permalink

class UShortUserDefinedNoDataArrayTile extends UShortArrayTile with UserDefinedShortNoDataConversions

UShortUserDefinedNoDataArrayTile derived from UShortArrayTile.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. UShortUserDefinedNoDataArrayTile
  2. UserDefinedShortNoDataConversions
  3. UShortArrayTile
  4. MutableArrayTile
  5. ArrayTile
  6. Tile
  7. LazyLogging
  8. MappableTile
  9. MacroMappableTile
  10. IterableTile
  11. MacroIterableTile
  12. CellGrid
  13. Grid
  14. Serializable
  15. Serializable
  16. AnyRef
  17. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new UShortUserDefinedNoDataArrayTile(arr: Array[Short], cols: Int, rows: Int, cellType: UShortUserDefinedNoDataCellType)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def apply(i: Int): Int

    Permalink

    Fetch the datum at the given index in the array.

    Fetch the datum at the given index in the array.

    i

    The index

    returns

    The datum found at the index

    Definition Classes
    UShortUserDefinedNoDataArrayTileArrayTile
  5. def applyDouble(i: Int): Double

    Permalink

    Fetch the datum at the given index in the array.

    Fetch the datum at the given index in the array.

    i

    The index

    returns

    The datum found at the index

    Definition Classes
    UShortUserDefinedNoDataArrayTileArrayTile
  6. val array: Array[Short]

    Permalink
    Definition Classes
    UShortArrayTile
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def asciiDraw(): String

    Permalink

    Return ascii art of this raster.

    Return ascii art of this raster.

    Definition Classes
    Tile
  9. def asciiDrawDouble(significantDigits: Int = Int.MaxValue): String

    Permalink

    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.

    Definition Classes
    Tile
  10. def asciiDrawRange(colMin: Int, colMax: Int, rowMin: Int, rowMax: Int): String

    Permalink

    Return ascii art of a range from this raster.

    Return ascii art of a range from this raster.

    Definition Classes
    Tile
  11. def b2uds(n: Byte): Short

    Permalink
  12. val cellType: UShortUserDefinedNoDataCellType

    Permalink
  13. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  14. val cols: Int

    Permalink
    Definition Classes
    UShortUserDefinedNoDataArrayTileGrid
  15. def combine(other: Tile)(f: (Int, Int) ⇒ Int): Tile

    Permalink

    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.

    other

    The other Tile

    f

    A function from (Int, Int) to Int

    returns

    The result, an Tile

    Definition Classes
    ArrayTileTile
  16. def combine(other: ArrayTile)(f: (Int, Int) ⇒ Int): ArrayTile

    Permalink

    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.

    other

    The other ArrayTile

    f

    A function from (Int, Int) to Int

    returns

    The result, an ArrayTile

    Definition Classes
    ArrayTile
  17. def combineDouble(other: Tile)(f: (Double, Double) ⇒ Double): Tile

    Permalink

    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.

    other

    The other Tile

    f

    A function from (Double, Double) to Double

    returns

    The result, an Tile

    Definition Classes
    ArrayTileTile
  18. def combineDouble(other: ArrayTile)(f: (Double, Double) ⇒ Double): ArrayTile

    Permalink

    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.

    other

    The other ArrayTile

    f

    A function from (Double, Double) to Double

    returns

    The result, an ArrayTile

    Definition Classes
    ArrayTile
  19. def convert(targetCellType: CellType): ArrayTile

    Permalink

    Returns a Tile equivalent to this ArrayTile, except with cells of the given type.

    Returns a Tile equivalent to this ArrayTile, except with cells of the given type.

    targetCellType

    The type of cells that the result should have

    returns

    The new Tile

    Definition Classes
    ArrayTileTile
  20. def copy: UShortArrayTile

    Permalink

    Return a copy of the present UShortArrayTile.

    Return a copy of the present UShortArrayTile.

    returns

    The copy

    Definition Classes
    UShortArrayTileArrayTile
  21. def d2uds(n: Double): Short

    Permalink
  22. def dimensions: (Int, Int)

    Permalink
    Definition Classes
    Grid
  23. def downsample(newCols: Int, newRows: Int)(f: (CellSet) ⇒ Int): Tile

    Permalink

    Reduce the resolution of the present Tile to the given number of columns and rows.

    Reduce the resolution of the present Tile to the given number of columns and rows. A new Tile is returned.

    newCols

    The number of columns in the new Tile

    newRows

    The number of rows in the new Tile

    Definition Classes
    Tile
  24. def dualCombine(r2: Tile)(f: (Int, Int) ⇒ Int)(g: (Double, Double) ⇒ Double): Tile

    Permalink

    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.

    r2

    The tile to combine with the present one

    f

    The integer function

    g

    The double function

    Definition Classes
    Tile
  25. def dualForeach(f: (Int) ⇒ Unit)(g: (Double) ⇒ Unit): Unit

    Permalink

    Execute a function at each pixel of a Tile.

    Execute a function at each pixel of a Tile. Two functions are given: an integer version which is used if the tile is an integer-tile, and the other in the case of a floating-tile.

    f

    A function from Int to Unit

    g

    A function from Double to Unit

    Definition Classes
    Tile
  26. def dualMap(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Permalink

    Map one of the two given functions across the Tile to produce a new one.

    Map one of the two given functions across the Tile to produce a new one. One of the functions is from Int to Int, and the other from Double to Double.

    f

    A function from Int to Int

    g

    A function from Double to Double

    Definition Classes
    Tile
  27. def dualMapIfSet(f: (Int) ⇒ Int)(g: (Double) ⇒ Double): Tile

    Permalink

    Conditionally map across the Tile with one of two functions, depending on whether the tile is an integer- or a floating-tile.

    Conditionally map across the Tile with one of two functions, depending on whether the tile is an integer- or a floating-tile. A pixel is mapped only if it is set.

    f

    A function from Int to Int

    g

    A function from Double to Double

    Definition Classes
    Tile
  28. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. def equals(other: Any): Boolean

    Permalink

    Check for equality between the present ArrayTile and any other object.

    Check for equality between the present ArrayTile and any other object.

    other

    The other object

    returns

    A boolean

    Definition Classes
    ArrayTile → AnyRef → Any
  30. def f2uds(n: Float): Short

    Permalink
  31. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  32. def findMinMax: (Int, Int)

    Permalink

    Return tuple of highest and lowest value in raster.

    Return tuple of highest and lowest value in raster.

    Definition Classes
    Tile
    Note

    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.

  33. def findMinMaxDouble: (Double, Double)

    Permalink

    Return tuple of highest and lowest value in raster.

    Return tuple of highest and lowest value in raster.

    Definition Classes
    Tile
  34. def foreach(f: (Int) ⇒ Unit): Unit

    Permalink

    Execute a function on each cell of the ArrayTile.

    Execute a function on each cell of the ArrayTile.

    f

    A function from Int to Unit. Presumably, the function is executed for side-effects.

    Definition Classes
    ArrayTileTile
  35. macro def foreach(f: (Int, Int, Int) ⇒ Unit): Unit

    Permalink

    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).

    Definition Classes
    IterableTile
  36. def foreachDouble(f: (Double) ⇒ Unit): Unit

    Permalink

    Execute a function on each cell of the ArrayTile.

    Execute a function on each cell of the ArrayTile.

    f

    A function from Double to Unit. Presumably, the function is executed for side-effects.

    Definition Classes
    ArrayTileTile
  37. macro def foreachDouble(f: (Int, Int, Double) ⇒ Unit): Unit

    Permalink

    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).

    Definition Classes
    IterableTile
  38. def foreachDoubleVisitor(visitor: DoubleTileVisitor): Unit

    Permalink

    Execute an DoubleTileVisitor at each cell of the ArrayTile.

    Execute an DoubleTileVisitor at each cell of the ArrayTile.

    visitor

    A DoubleTileVisitor

    Definition Classes
    ArrayTileMacroIterableTile
  39. def foreachIntVisitor(visitor: IntTileVisitor): Unit

    Permalink

    Execute an IntTileVisitor at each cell of the ArrayTile.

    Execute an IntTileVisitor at each cell of the ArrayTile.

    visitor

    An IntTileVisitor

    Definition Classes
    ArrayTileMacroIterableTile
  40. def get(col: Int, row: Int): Int

    Permalink

    Fetch the datum at the given column and row of the ArrayTile.

    Fetch the datum at the given column and row of the ArrayTile.

    col

    The column

    row

    The row

    returns

    The Int datum found at the given location

    Definition Classes
    ArrayTileTile
  41. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  42. def getDouble(col: Int, row: Int): Double

    Permalink

    Fetch the datum at the given column and row of the ArrayTile.

    Fetch the datum at the given column and row of the ArrayTile.

    col

    The column

    row

    The row

    returns

    The Double datum found at the given location

    Definition Classes
    ArrayTileTile
  43. def gridBounds: GridBounds

    Permalink
    Definition Classes
    Grid
  44. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  45. def i2uds(n: Int): Short

    Permalink
  46. def interpretAs(newCellType: CellType): Tile

    Permalink

    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.

    newCellType

    CellType to be used in interpreting existing cells

    Definition Classes
    UShortArrayTileArrayTileTile
  47. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  48. def isNoDataTile: Boolean

    Permalink
    Definition Classes
    Tile
  49. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  50. def map(f: (Int) ⇒ Int): Tile

    Permalink

    Map each cell in the given tile to a new one, using the given function.

    Map each cell in the given tile to a new one, using the given function.

    f

    A function from Int to Int, executed at each point of the tile

    returns

    The result, a Tile

    Definition Classes
    ArrayTileTile
  51. macro def map(f: (Int, Int, Int) ⇒ Int): Tile

    Permalink

    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.

    Definition Classes
    MappableTile
  52. def mapDouble(f: (Double) ⇒ Double): Tile

    Permalink

    Map each cell in the given tile to a new one, using the given function.

    Map each cell in the given tile to a new one, using the given function.

    f

    A function from Double to Double, executed at each point of the tile

    returns

    The result, a Tile

    Definition Classes
    ArrayTileTile
  53. macro def mapDouble(f: (Int, Int, Double) ⇒ Double): Tile

    Permalink

    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.

    Definition Classes
    MappableTile
  54. def mapDoubleMapper(mapper: DoubleTileMapper): Tile

    Permalink

    Map an DoubleTileMapper over the present tile.

    Map an DoubleTileMapper over the present tile.

    mapper

    The mapper

    returns

    The result, a Tile

    Definition Classes
    ArrayTileMacroMappableTile
  55. def mapIfSet(f: (Int) ⇒ Int): Tile

    Permalink

    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. The result of the mapping is returned as a tile.

    f

    A function from Int to Int

    Definition Classes
    Tile
  56. def mapIfSetDouble(f: (Double) ⇒ Double): Tile

    Permalink

    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. The result of the mapping is returned as a tile.

    f

    A function from Double to Double

    Definition Classes
    Tile
  57. def mapIntMapper(mapper: IntTileMapper): Tile

    Permalink

    Map an IntTileMapper over the present tile.

    Map an IntTileMapper over the present tile.

    mapper

    The mapper

    returns

    The result, a Tile

    Definition Classes
    ArrayTileMacroMappableTile
  58. def mutable: MutableArrayTile

    Permalink

    Create a mutable copy of this tile

    Create a mutable copy of this tile

    Definition Classes
    MutableArrayTileTile
  59. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  60. def normalize(oldMin: Double, oldMax: Double, newMin: Double, newMax: Double): Tile

    Permalink

    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.

    oldMin

    Old minimum value

    oldMax

    Old maximum value

    newMin

    New minimum value

    newMax

    New maximum value

    Definition Classes
    Tile
  61. def normalize(oldMin: Int, oldMax: Int, newMin: Int, newMax: Int): Tile

    Permalink

    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.

    oldMin

    Old minimum value

    oldMax

    Old maximum value

    newMin

    New minimum value

    newMax

    New maximum value

    Definition Classes
    Tile
  62. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  63. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  64. def rescale(newMin: Double, newMax: Double): Tile

    Permalink

    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.

    Definition Classes
    Tile
  65. def rescale(newMin: Int, newMax: Int): Tile

    Permalink

    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.

    Definition Classes
    Tile
  66. val rows: Int

    Permalink
    Definition Classes
    UShortUserDefinedNoDataArrayTileGrid
  67. def s2uds(n: Short): Short

    Permalink
  68. def set(col: Int, row: Int, value: Int): Unit

    Permalink

    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.

    col

    The column

    row

    The row

    value

    The value

    Definition Classes
    MutableArrayTile
  69. def setDouble(col: Int, row: Int, value: Double): Unit

    Permalink

    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.

    col

    The column

    row

    The row

    value

    The value

    Definition Classes
    MutableArrayTile
  70. def size: Int

    Permalink

    The size of the grid, e.g.

    The size of the grid, e.g. cols * rows.

    Definition Classes
    Grid
  71. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  72. def toArray(): Array[Int]

    Permalink

    Return a copy of the underlying array of the present ArrayTile.

    Return a copy of the underlying array of the present ArrayTile.

    returns

    The copy as an Array[Int]

    Definition Classes
    ArrayTileTile
  73. def toArrayDouble(): Array[Double]

    Permalink

    Return a copy of the underlying array of the present ArrayTile.

    Return a copy of the underlying array of the present ArrayTile.

    returns

    The copy as an Array[Double]

    Definition Classes
    ArrayTileTile
  74. def toArrayTile(): ArrayTile

    Permalink

    Return the ArrayTile equivalent of this ArrayTile.

    Return the ArrayTile equivalent of this ArrayTile.

    returns

    The object on which the method was invoked

    Definition Classes
    ArrayTileTile
  75. def toBytes(): Array[Byte]

    Permalink

    Return an array of bytes representing the data behind this UShortArrayTile.

    Return an array of bytes representing the data behind this UShortArrayTile.

    Definition Classes
    UShortArrayTileTile
  76. def toList: List[Int]

    Permalink

    Return the underlying array of this ArrayTile as a list.

    Return the underlying array of this ArrayTile as a list.

    returns

    The list

    Definition Classes
    ArrayTile
  77. def toListDouble: List[Double]

    Permalink

    Return the under-laying array of this ArrayTile as a list.

    Return the under-laying array of this ArrayTile as a list.

    returns

    The list

    Definition Classes
    ArrayTile
  78. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  79. def ub2uds(n: Byte): Short

    Permalink
  80. def uds2b(n: Short): Byte

    Permalink
  81. def uds2d(n: Short): Double

    Permalink
  82. def uds2f(n: Short): Float

    Permalink
  83. def uds2i(n: Short): Int

    Permalink
  84. def uds2s(n: Short): Short

    Permalink
  85. def uds2ub(n: Short): Byte

    Permalink
  86. def uds2us(n: Short): Short

    Permalink
  87. def udus2d(n: Short): Double

    Permalink
  88. def udus2f(n: Short): Float

    Permalink
  89. def udus2i(n: Short): Int

    Permalink
  90. def update(i: Int, z: Int): Unit

    Permalink

    Update the datum at the given index in the array.

    Update the datum at the given index in the array.

    i

    The index

    z

    The value to place at that index

    Definition Classes
    UShortUserDefinedNoDataArrayTileMutableArrayTile
  91. def update(colOffset: Int, rowOffset: Int, update: Tile): Unit

    Permalink

    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.

    colOffset

    The column offset

    rowOffset

    The row offset

    update

    The source tile

    Definition Classes
    MutableArrayTile
  92. def updateDouble(i: Int, z: Double): Unit

    Permalink

    Update the datum at the given index in the array.

    Update the datum at the given index in the array.

    i

    The index

    z

    The value to place at that index

    Definition Classes
    UShortUserDefinedNoDataArrayTileMutableArrayTile
  93. def us2uds(n: Short): Short

    Permalink
  94. val userDefinedShortNoDataValue: Short

    Permalink
  95. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  96. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  97. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  98. def withNoData(noDataValue: Option[Double]): Tile

    Permalink
    Definition Classes
    UShortArrayTileArrayTileTile

Inherited from UShortArrayTile

Inherited from MutableArrayTile

Inherited from ArrayTile

Inherited from Tile

Inherited from LazyLogging

Inherited from MappableTile[Tile]

Inherited from MacroMappableTile[Tile]

Inherited from IterableTile

Inherited from MacroIterableTile

Inherited from CellGrid

Inherited from Grid

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped