ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Raster Band properties

  • Summary
  • Properties
  • Code sample

Summary

The Describe function returns the following properties for Raster Bands. Table Properties and Dataset Properties are also supported.

A Raster Band returns a dataType of "RasterBand".

Properties

PropertyExplanationData Type
height
(Read Only)

The number of rows

Integer
isInteger
(Read Only)

Indicates whether the raster band has integer type

Boolean
meanCellHeight
(Read Only)

The cell size in y direction

Double
meanCellWidth
(Read Only)

The cell size in x direction

Double
noDataValue
(Read Only)

The NoData value of the raster band

String
pixelType
(Read Only)

The pixel type

  • U1 —1 bit
  • U2 —2 bits
  • U4 —4 bits
  • U8 —Unsigned 8 bit integers
  • S8 —8 bit integers
  • U16 —Unsigned 16 bit integers
  • S16 —16 bit integers
  • U32 —Unsigned 32 bit integers
  • S32 —32 bit integers
  • F32 —Single precision floating point
  • F64 —Double precision floating point
String
primaryField
(Read Only)

The index of the field

Integer
tableType
(Read Only)

The class names of the table

  • Value —Values in the table are used for values only, not for indexing.
  • Index —Values in the table are used as indexes in the raster table.
  • Invalid —Values are invalid.
String
width
(Read Only)

The number of columns

Integer

Code sample

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

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal