[gdal-dev] gdal_merge error on linux debian. It dont find gdal_array.
Andrea Peri
aperi2007 at gmail.com
Thu Jul 23 06:16:06 PDT 2015
Hi
I'm trying to use the gdal_merge.py. More explixitly I try this call:
gdal_merge.py -separate /path-to-raster/LC81920292015189LGN00_rgb_hpf.tif \
/path-to-raster/LC81930292015196LGN00_rgb_hpf.tif \
-o result_image.tif
(the tiff are float32.)
The gdal_merge.py gives this error:
0Traceback (most recent call last):
File "/usr/local/bin/gdal_merge.py", line 523, in <module>
sys.exit(main())
File "/usr/local/bin/gdal_merge.py", line 512, in main
fi.copy_into( t_fh, band, t_band, nodata )
File "/usr/local/bin/gdal_merge.py", line 253, in copy_into
nodata_arg )
File "/usr/local/bin/gdal_merge.py", line 71, in raster_copy
m_band )
File "/usr/local/bin/gdal_merge.py", line 107, in raster_copy_with_mask
t_xsize, t_ysize )
File "/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg/osgeo/gdal.py",
line 1295, in ReadAsArray
import gdalnumeric
File "/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg/osgeo/gdalnumeric.py",
line 1, in <module>
from osgeo.gdal_array import *
File "/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg/osgeo/gdal_array.py",
line 25, in <module>
_gdal_array = swig_import_helper()
File "/usr/local/lib/python2.7/dist-packages/GDAL-2.0.0-py2.7-linux-x86_64.egg/osgeo/gdal_array.py",
line 17, in swig_import_helper
import _gdal_array
ImportError: No module named _gdal_array
Reading the error seem it is not finding the gdal_array module.
The gdal is the 2.0.0 version and is compiled from source on a Debian 64 bit.
I'm not sure if is a lack of configuration.
Any hint is welcome.
Thx,
Andrea.
--
-----------------
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-----------------
More information about the gdal-dev
mailing list