Raster Dataset properties

サマリー

The Describe function returns the following properties for raster datasets. The Dataset property group is also supported. Single-band raster datasets also support the Raster Band property group.

For a raster dataset, the Describe dataType property returns a value of "RasterDataset".

プロパティ

プロパティ説明データ タイプ
bandCount
(読み取り専用)

The number of bands in the raster dataset.

Integer
compressionType
(読み取り専用)

The compression type.

  • CCITT Group 3
  • CCITT Group 4
  • CCITT (1D)
  • DEFLATE
  • Deflate/Inflate
  • JPEG
  • JPEG2000
  • LZW
  • LZ77
  • None
  • PACKBITS
  • RLE
  • VECTOR QUANTIZATION
  • Wavelet (MG2)
  • Wavelet (MG4)
  • YCbCr JPEG
String
format
(読み取り専用)

The raster format.

  • AAIGrid
  • BAG
  • BIL
  • BMP
  • BSQ
  • DTED Level 1
  • DTED Level 2
  • FGDBR
  • FLT
  • GIF
  • GRID
  • GRID Stack 7.x
  • HDF5Image
  • IMAGINE Image
  • JFIF
  • JP2
  • MrSID
  • NITF
  • PNG
  • RPF
  • SDR
  • TIFF
  • TIL
  • USGSDEM
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

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(r"C:\temp\FGDB.gdb\RD")

# Print some raster dataset properties
# 
print("Band Count:       %d" % desc.bandCount)
print("Compression Type: %s" % desc.compressionType)
print("Raster Format:    %s" % desc.format)
print("Permanent:        %s" % desc.permanent)
print("Sensor Type:      %s" % desc.sensorType)