栅格数据集属性 (arcpy)
属性
| 属性 | 说明 | 数据类型 | 
| 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, 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
9/15/2013