李旭分享 http://blog.sciencenet.cn/u/lixujeremy 代码与散打爱好者!

博文

Python+GDAL:文件格式的转换

已有 6656 次阅读 2014-10-7 14:16 |个人分类:Python|系统分类:科研笔记| GDAL

空间数据的格式千变万化,常见的有ENVI StandardGEOTIFFErads Image等等栅格文件列表矢量文件列表,以下应用GDAL工具转换文件的格式,省时高效。

举个栗子,ENVI Standard转换为GEOTIFF,参考How to call gdal_translate from Python code? Answered by Max附上代码和测试数据(Practice.rar)。

NOTE:

os.system(command): Execute the command (a string) in a subshell. This is implemented by calling the Standard C function system(). On Windows, the return value is that returned by the system shell after running command. 实际上,示例是Python调用C+GDAL的代码。





https://blog.sciencenet.cn/blog-1148346-833634.html

上一篇:NASA:NASA Earth Exchange
下一篇:Python+GDAL:Reprojection
收藏 IP: 202.112.90.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

全部作者的精选博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-19 06:14

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部