由于为了拼接图像(大于几个G的),简单研究了一下遥感图像库GDAL的python版。
首先是安装,
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable sudo apt update sudo apt upgrade sudo apt install gdal-bin python-gdal python3-gdal其次是使用教程,参考:http://www.osgeo.cn/python_gdal_utah_tutorial/ch01.html
拼图步骤:
一、创建Driver的Name类型
二、创建一个Driver
三、读取Band
四、写入writeArray数据
五、保留缓存,写入硬盘
六、清理申请的Driver
分割代码:
https://github.com/ClearLee1018/gdal_read_images/blob/master/convertTM2Tiff.py
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。