<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If big-endian signed integers ring a bell, I would be quite happy if<br>

you can take a quick look at this [1].<br>
[1] <a href="http://github.com/Sjors/srtm2postgis/tree/78c7d35c14b9c4f259248e80b3eaa59e25d0c8a2/test/test_read_data.py" target="_blank">http://github.com/Sjors/srtm2postgis/tree/78c7d35c14b9c4f259248e80b3eaa59e25d0c8a2/test/test_read_data.py</a><br>

(or <a href="http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk/test/test_read_data.py" target="_blank">http://svn.openstreetmap.org/applications/utils/srtm2postgis/trunk/test/test_read_data.py</a>)<br>
</blockquote></div><br><br>Can I point you to the Geospatial Abstraction Data Library (GDAL) (<a href="http://www.gdal.org">www.gdal.org</a>), which has solved these problems and comes with a Python binding and cooperates well with Python's numerical library (<a href="http://numpy.scipy.org/">http://numpy.scipy.org/</a>)? There are different ways how to read the files, but using the gdal_array interface has the big advantage of giving you instantaneously a two-dimensional array.<br>
<br>Reading in your SRTM file can then be as easy as this:<br><br>from osgeo import gdal, gdal_array<br><br>srtm = gdal.Open('N19E096.hgt')<br>data = gdal_array.DatasetReadAsArray(srtm)<br><br>print data<br><br>HTH<br>
Ludwig<br>