サマリー
The Describe function returns the following properties for Raster Datasets. Dataset Properties are also supported. Single-band raster datasets also support Raster Band Properties.
A Raster Dataset returns a dataType of "RasterDataset".
プロパティ
プロパティ | 説明 | データ タイプ |
bandCount (読み取り専用) | The number of bands in the raster dataset. | Integer |
compressionType (読み取り専用) | The compression type
| String |
format (読み取り専用) | The raster format
| String |
permanent (読み取り専用) | Indicates the permanent state of the raster: False if the raster is temporary and True if the raster is permanent. | Boolean |
sensorType (読み取り専用) | The sensor type used to capture the image. | String |
コードのサンプル
Raster Dataset properties example (stand-alone script)
The following stand-alone script displays some properties for a raster dataset.
import arcpy
# Create a Describe object from the raster dataset
#
desc = arcpy.Describe("C:/data/preston.img")
# Print some raster dataset properties
#
print "Band Count: %d" % desc.bandCount
print "Compression Type: %s" % desc.compressionType
print "Raster Format: %s" % desc.format