<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Chaitanya,<br>
no, i didn't build it myself. I simply downloaded the
self-installing package for gdal found at: <a
href="http://www.lfd.uci.edu/%7Egohlke/pythonlibs/">http://www.lfd.uci.edu/~gohlke/pythonlibs/</a><br>
I am a little unfamiliar still with building stuff on windows, so i
am not sure whether it's worth trying to build gdal and the python
bindings from scratch or simply use h4toh5 called from the script.<br>
<br>
thanks<br>
matt<br>
<br>
On 3/3/2011 9:30 PM, Chaitanya kumar CH wrote:
<blockquote
cite="mid:AANLkTin2HmMuet0711wjQfy7=uNr0S3-3Cc0+OtuY8XL@mail.gmail.com"
type="cite">Matt,<br>
<br>
Did you build GDAL yourself? HDF4 format is not compiled by
default. You can check if this by running the command "gdalinfo
--formats". See if HDF4 is in the output.<br>
<a moz-do-not-send="true"
href="http://www.gdal.org/frmt_hdf4.html">http://www.gdal.org/frmt_hdf4.html</a><br>
<br>
<div class="gmail_quote">On Fri, Mar 4, 2011 at 6:03 AM, Matt Funk
<span dir="ltr"><<a moz-do-not-send="true"
href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000"> Hi,<br>
i am using python/gdal. I am trying to open a MODIS
satellite file <span style="border-collapse: separate;
color: rgb(0, 0, 0); font-family: 'Times New Roman';
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
text-indent: 0px; text-transform: none; white-space:
normal; word-spacing: 0px; font-size: medium;">from the
Terra satellite (which is hdf4-eos format). Doing:<br>
ds = gdal.Open(file)<br>
drivertype=ds.GetDriver().LongName<br>
<br>
returns<br>
ERROR 4:
`C:/tmp/SrcData/2010Data/MODISData/MOD03/MOD03.A2010002.1810.005.2010258062733.hdf'
not recognised as a supported file format.<br>
<br>
Is this file format not supported?<br>
<br>
thanks<br>
matt<br>
</span> </div>
<br>
_______________________________________________<br>
gdal-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/gdal-dev"
target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
Best regards,<br>
Chaitanya kumar CH.<br>
/tʃaɪθənjə/ /kʊmɑr/ <br>
+91-9494447584<br>
17.2416N 80.1426E<br>
</blockquote>
<br>
</body>
</html>