【发布时间】:2013-01-25 15:45:56
【问题描述】:
我有一些 MODIS hdf 文件并尝试使用 Python 中的 GDAL 模块将投影从正弦曲线更改为兰伯特保形圆锥曲线。这是我的 python 代码,它返回错误消息:
import os,sys
import gdal
import numpy
os.sys('gdalwarp test.hdf outfile.hdf -t_srs "+proj=lcc"')
File "projection_cmd.py", line 5, in ?
os.sys('gdalwarp test.hdf outfile.hdf -t_srs "+proj=lcc"')
TypeError: 'module' object is not callable
当我使用命令行运行时:
gdalwarp test.hdf outfile.hdf -t_srs "+proj=lcc"
ERROR 1: Unable to compute a transformation between pixel/line
and georeferenced coordinates for test.hdf.
There is no affine transformation and no GCPs.
我该如何解决?谢谢!
【问题讨论】:
-
GIS.se 欺骗:gis.stackexchange.com/questions/6669/…
标签: python projection hdf5 gdal