ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

栅格波段属性

  • 描述
  • 属性
  • 代码示例

描述

Describe 函数可返回栅格波段的以下属性。还支持表属性和数据集属性。

栅格波段将返回 “RasterBand” 的 dataType。

属性

属性说明数据类型
height
(只读)

行数

Integer
isInteger
(只读)

表明栅格波段是否具有整型

Boolean
meanCellHeight
(只读)

y 方向上的像元大小

Double
meanCellWidth
(只读)

x 方向上的像元大小

Double
noDataValue
(只读)

栅格波段的 NoData 值

String
pixelType
(只读)

像素类型

  • U1 —1 位
  • U2 —2 位
  • U4 —4 位
  • U8 —8 位无符号整型
  • S8 —8 位整型
  • U16 —16 位无符号整型
  • S16 —16 位整型
  • U32 —32 位无符号整型
  • S32 —32 位整型
  • F32 —单精度浮点型
  • F64 —双精度浮点型
String
primaryField
(只读)

字段索引

Integer
tableType
(只读)

表的类名称

  • Value —表中的值仅用作值,而不用于索引。
  • Index —表中的值用作栅格表中的索引。
  • Invalid —值无效。
String
width
(只读)

列数

Integer

代码示例

栅格波段属性示例(独立脚本)

以下独立脚本显示栅格波段的一些属性。

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

  • 主页
  • 文档
  • 支持

ArcGIS

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

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2021 Esri. | 隐私政策 | 法律声明