ラスタ バンド プロパティ (arcpy)
サマリ
Describe 関数はラスタ バンドに対して次のプロパティを返します。テーブル プロパティおよびデータセット プロパティもサポートされます。
ラスタ バンドが返す dataType は RasterBand です。
特性
| プロパティ | 説明 | データ タイプ | 
| height (読み取り専用) | The number of rows | Integer | 
| isInteger (読み取り専用) | Indicates whether the raster band has integer type | Boolean | 
| meanCellHeight (読み取り専用) | The cell size in y direction | Double | 
| meanCellWidth (読み取り専用) | The cell size in x direction | Double | 
| noDataValue (読み取り専用) | The NoData value of the raster band | String | 
| pixelType (読み取り専用) | The pixel type 
 | String | 
| primaryField (読み取り専用) | The index of the field | Integer | 
| tableType (読み取り専用) | The class names of the table 
 | String | 
| width (読み取り専用) | The number of columns | Integer | 
コードのサンプル
Raster Band properties example (stand-alone script)
The following stand-alone script displays some properties for a raster band.
import arcpy
# Create a Describe object from the raster band
#
desc = arcpy.Describe("C:/data/preston.img/Band_1")
# Print some raster band properties
#
print "Height: %d" % desc.height
print "Width:  %d" % desc.width
print "Integer Raster: %s" % desc.isInteger
4/26/2014