GDAL's HDF4 driver is built on top of NCSA HDF library.<br><br><div class="gmail_quote">On Sat, Mar 5, 2011 at 12:20 AM, Nikolaos Hatzopoulos <span dir="ltr"><<a href="mailto:nhatzop@gmail.com">nhatzop@gmail.com</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;">what extra libraries requires hdf4? i think only requires szip zlib and jpeg<div><div></div>
<div class="h5"><br><br><br><div class="gmail_quote">On Fri, Mar 4, 2011 at 10:03 AM, Chaitanya kumar CH <span dir="ltr"><<a href="http://chaitanya.ch" target="_blank">chaitanya.ch</a>@<a href="http://gmail.com" target="_blank">gmail.com</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;">Matt,<br><br>If there is a work around it's better to avoid building. HDF4 requires some extra libraries. They are probably missing.<div>
<div></div><div><br><br><div class="gmail_quote">On Fri, Mar 4, 2011 at 11:01 PM, Matt Funk <span dir="ltr"><<a href="mailto:mafunk@nmsu.edu" target="_blank">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 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/" target="_blank">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><font color="#888888">
matt</font><div><div></div><div><br>
<br>
On 3/3/2011 9:30 PM, Chaitanya kumar CH wrote:
<blockquote 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 href="http://www.gdal.org/frmt_hdf4.html" target="_blank">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 href="mailto:mafunk@nmsu.edu" target="_blank">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 href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a 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>
</div></div></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a 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>
</div></div><br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br>
</div></div></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>