Raster Band properties |
|
|
Release 9.1
Last modified August 19, 2005 |
|
| Property | Returns |
| Height | The number of rows |
| IsInteger: Boolean | The Integer state: TRUE if the band has integer type |
| MeanCellHeight | The cell size in y direction |
| MeanCellWidth | The cell size in x direction |
| NoDataValue | The NoData value of the raster band |
| PixelType | The pixel type of the band:
|
| PrimaryField | The index of the field |
| TableType | -Value — values in the raster are used as values only, not for indexing
-Index — values in the raster are used as indexes in the raster table |
| Width | The number of columns |
from win32com.client import Dispatch
gp = Dispatch("esriGeoprocessing.GpDispatch.1")
gp.workspace = "C:\Data"
rasterbd = "Redlands.img\\Band_1"
print gp.describe(rasterbd).Height
print gp.describe(rasterbd).pixeltype