Skip To Content

Raster Dataset properties

Resumen

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".

Propiedades

PropiedadExplicaciónTipo de datos
bandCount
(Sólo lectura)

The number of bands in the raster dataset.

Integer
compressionType
(Sólo lectura)

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
(Sólo lectura)

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
(Sólo lectura)

Indicates the permanent state of the raster: False if the raster is temporary and True if the raster is permanent.

Boolean
sensorType
(Sólo lectura)

The sensor type used to capture the image.

String

Muestra de código

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("\\cacheqa1\Datasets\temp\FGDB.gdb\hrrr1")

# Print some raster dataset properties
# 
print "Band Count:       %d" % desc.bandCount
print "Compression Type: %s" % desc.compressionType
print "Raster Format:    %s" % desc.format
print("Processing Templates: %s" % desc.processingTemplates)
print("Default Processing Templates: %s" % desc.defaultprocessingTemplates)
print("DimensionNames: %s" % desc.dimensionNames)
print("DimensionValues: %d" % desc.Values)
print("MultidimensionalInfo: %s" % desc.multidimensionalInfo)