fmeobjects.FMEBand
|
Appends |
|
Enables/disables caching for this band. |
|
Tells whether two bands are identical. |
Removes any cached data and releases cache resources. |
|
Returns ID of the last band cache. |
|
Returns maximum value of the band. |
|
Returns minimum value of the band. |
|
Returns nodataValue of the band. |
|
Returns the number of palettes in a band. |
|
|
Returns a palette from the band based on its numbered order in the band. |
Returns band properties of this band. |
|
Returns raster properties of the raster where this band is appended. |
|
|
Populates a tile of data in the interpretation of the band starting at the values of row and col and encapsulating the number of columns defined in the tile. |
Returns whether the band has been modified from its baseline state. |
|
Returns whether the band's data has been modified from its baseline state. |
|
Tells whether the band knows its max value. |
|
Tells whether the band knows its min value. |
|
Tells whether the band is selected for operations. |
|
|
Removes and returns a palette from the band. |
|
Identifies the data that will be eligible for caching through |
|
Sets delete flag, identifying whether the band should delete its source data file when destroyed. |
|
Sets the max value of the band. |
|
Sets the min value of the band. |
|
Sets whether band has been modified from baseline state. |
|
Changes the size of the source data. |
|
Set the raster properties. |
|
Selects/ Deselects band for operations. |
|
Swaps the band's populator with the passed in populator. |
- class FMEBand
FME Band Class
Create an instance of a
FMEBand
object.init(populator, rasterProperties, bandProperties, nodataValue)
Creates a Band instance using given arguments.
- Parameters:
populator (FMEBandTilePopulator) – BandTilePopulator object.
rasterProperties (FMERasterProperties) – RasterProperties object.
bandProperties (FMEBandProperties) – BandProperties object.
nodataValue (FMETile) – (Optional) The value that represents unknown or invalid data.
- Return type:
- Returns:
An instance of a
FMEBand
object.
init(band)
Create a copy of the passed in band object.
- Parameters:
band (FMEBand) – The band object to create a copy of.
- Return type:
- Returns:
An instance of a
FMEBand
object.
- __init__(*args, **kwargs)
- appendPalette(palette)
Appends
FMEPalette
to the band.- Parameters:
palette (FMEPalette) – Palette to append.
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred.
- enableBandCache(enableCache)
Enables/disables caching for this band.
- equals(band)
Tells whether two bands are identical.
- flushCache()
Removes any cached data and releases cache resources.
- Return type:
None
- getBandCacheID()
Returns ID of the last band cache.
- Return type:
- Returns:
ID of the last band cache.
- getMaxValue()
Returns maximum value of the band.
- Return type:
Concrete type of
FMETile
- Returns:
Maximum value of the band.
- Raises:
FMEException – An exception is raised if an error occurred.
- getMinValue()
Returns minimum value of the band.
- Return type:
Concrete type of
FMETile
- Returns:
Minimum value of the band.
- Raises:
FMEException – An exception is raised if an error occurred.
- getNodataValue()
Returns nodataValue of the band.
This value represents unknown or invalid data. Often the value is at one of the extremes of the data type range.
If the band does not have a nodata value,
None
will be returned.- Return type:
- Returns:
NodataValue of the band.
- Raises:
FMEException – An exception is raised if an error occurred.
- getNumPalettes()
Returns the number of palettes in a band.
- Return type:
- Returns:
Number of palettes in a band.
- getPalette(paletteIndex)
Returns a palette from the band based on its numbered order in the band.
- Parameters:
paletteIndex (int) – Index number of the palette.
- Return type:
- Returns:
A palette from the band.
- Raises:
FMEException – An exception is raised if an error occurred.
- getProperties()
Returns band properties of this band.
- Return type:
- Returns:
Band Properties of this band.
- Raises:
FMEException – An exception is raised if an error occurred.
- getRasterProperties()
Returns raster properties of the raster where this band is appended.
- Return type:
- Returns:
Raster Properties of the raster.
- Raises:
FMEException – An exception is raised if an error occurred.
- getTile(row, col, tile)
Populates a tile of data in the interpretation of the band starting at the values of row and col and encapsulating the number of columns defined in the tile.
- Parameters:
- Return type:
Concrete class of
FMETile
type- Returns:
Tile after populating a tile of data.
- Raises:
FMEException – An exception is raised if an error occurred.
- hasBeenModified()
Returns whether the band has been modified from its baseline state.
- hasDataBeenModifiedSinceCache()
Returns whether the band’s data has been modified from its baseline state.
- hasKnownMaxValue()
Tells whether the band knows its max value.
- hasKnownMinValue()
Tells whether the band knows its min value.
- isSelected()
Tells whether the band is selected for operations.
- removePalette(paletteIndex)
Removes and returns a palette from the band.
- Parameters:
paletteIndex (int) – Index number of the palette.
- Return type:
- Returns:
Removed palette.
- Raises:
FMEException – An exception is raised if an error occurred.
- setCacheWindow(startRow, numRows, startCol, numCols, tileNumRows, tileNumCols)
Identifies the data that will be eligible for caching through
getTile()
call.Call should be made before requesting tiles to improve caching efficiency.
- Parameters:
startRow (int) – Starting row number.
numRows (int) – Number of rows that will be included in cache window.
startCol (int) – Starting column number.
numCols (int) – Number of columns that will be included in cache window.
tileNumRows (int) – Number of tiles per row.
tileNumCols (int) – Number of tiles per column.
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred.
- setDeleteSourceOnDestroy(deleteFlag)
Sets delete flag, identifying whether the band should delete its source data file when destroyed.
- Parameters:
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred.
- setMaxValue(tile)
Sets the max value of the band.
- Parameters:
tile (FMETile) – Max value to be set.
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred.
- setMinValue(tile)
Sets the min value of the band.
- Parameters:
tile (FMETile) – Min value to be set.
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred.
- setModified(modified)
Sets whether band has been modified from baseline state.
Note that
hasBeenModified
is initially set toFalse
.
- setOutputSize(rows, cols)
Changes the size of the source data.
- Parameters:
- Return type:
- Returns:
New number of rows and columns after resampling the raster.
- Raises:
FMEException – An exception is raised if an error occurred.
- setRasterProperties(rasterProperties)
Set the raster properties.
- Parameters:
rasterProperties (FMERasterProperties) – Raster properties object to assign.
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred.
- setSelected(selected)
Selects/ Deselects band for operations.
- swapPopulator(populator)
Swaps the band’s populator with the passed in populator.
The new populator must match the band properties (e.g. have the same number of rows/cols, and the same interpretation).
- Parameters:
populator (FMEBandTilePopulator) – FMEBandTilePopulator object.
- Return type:
None
- Raises:
FMEException – An exception is raised if an error occurred. The populator will be left unchanged if this is an unsupported operation.