我的目标是使用Python从CropScape读入DBF,并绘制DBF以创建一个图,如示例所示。我需要帮助读取和绘制DBF
数据:我从https://nassgeodata.gmu.edu/CropScape/下载了CropScape-Crodpland DBF。我将我感兴趣的领域定义为爱荷华州
然后我下载2020
、corn
和soybean
年的定义的感兴趣区域数据,以及投影Degrees Lat/Lon, WGS84 Datum
到目前为止,我所拥有的:
filename = 'CDL_2020_clip_20210826173123_1609691609.tif.vat.dbf'
dbf = gpd.read_file(filename)
可能有用的其他信息包括:
dbf.head() =
VALUE RED GREEN BLUE CLASS_NAME OPACITY geometry
0 0 0.0 0.000 0.000 Background 0.0 None
1 1 1.0 0.827 0.000 Corn 1.0 None
2 2 1.0 0.149 0.149 Cotton 1.0 None
3 3 0.0 0.659 0.894 Rice 1.0 None
4 4 1.0 0.620 0.043 Sorghum 1.0 None
len(dbf) = 256
ArgGIS
中的GeoTIFF
下载的。.dbf
文件中没有形状或地理位置数据李>'CDL_2020_clip_20210826173123_1609691609.tif.vat.dbf'
不是形状文件;文件中没有地理位置数据李>geopandas
直接实现,这似乎是问题的目标李>.tif
文件ArcGIS_coloro_table_readme.docx
内容相关问题 更多 >
编程相关推荐