<div>Hey Brent</div>
<div>I'm using ESA's GLOBCOVER data.In this case I'm trying to set a GRASS script to run gdal directly.</div>
<div>I do:</div>
<div>gdalinfo C:\data\GL.hdf and I retrieve all basic information plus HDF's layers</div>
<div> </div>
<div>Driver: HDF4/Hierarchical Data Format Release 4<br>Files: c:\data\GL.hdf<br>Size is 512, 512<br>Coordinate System is `'<br>Metadata:<br> HDFEOSVersion=HDFEOS_V2.12<br>Subdatasets:<br> SUBDATASET_1_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_1<br>
SUBDATASET_1_DESC=[1800x1800] MEAN_1 POSTEL (16-bit integer)</div>
<div> SUBDATASET_2_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_2<br> SUBDATASET_2_DESC=[1800x1800] MEAN_2 POSTEL (16-bit integer)<br> SUBDATASET_3_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_3<br>
SUBDATASET_3_DESC=[1800x1800] MEAN_3 POSTEL (16-bit integer)<br> SUBDATASET_4_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_4<br> SUBDATASET_4_DESC=[1800x1800] MEAN_4 POSTEL (16-bit integer)<br> SUBDATASET_5_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_5</div>
<div>(...)</div>
<div> </div>
<div>then:</div>
<div>gdalinfo HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_1</div>
<div> </div>
<div>I get:</div>
<div>ERROR 4: 'HDF4_EOS:EOS_GRID:c:\data\GL.hdf:POSTEL:MEAN_1'</div>
<div>does not exist in fyle system, and is not recognised as a supported dataset name.</div>
<div>gdalinfo failed- unable to open 'HDF4_EOS:EOS_GRID:c:\data\GL.hdf:POSTEL:MEAN_1''</div>
<div>open GDAL Datasets:</div>
<div>1 N DriverIsNULL 512x512x0</div>
<div> </div>
<div>But if I do:</div>
<div>
<div>gdalinfo HDF4_EOS:EOS_GRID:":\data\GL.hdf":POSTEL:MEAN_1</div>
<div>it works (without the C from the driver)</div>
<div> </div>
<div>The problem is that if I'm trying to to use data in D it does not work.</div>
<div>Any suggestions?</div></div>
<div><br><br> </div>
<div class="gmail_quote">2011/8/9 Brent Fraser <span dir="ltr"><<a href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>></span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div text="#000000" bgcolor="#FFFFFF">Luisa,<br><br> I use GDAL to access MODIS data in HDF4 on Windows like this:<br><br>gdalinfo HDF4_EOS:EOS_SWATH:"G:\Projects\temp\image3\MOD02HKM.A2011186.1640.005.NRT.hdf":MODIS_SWATH_Type_L1B:EV_500_RefSB<br>
<br>So I'd suggest using double quotes around your path.<br><pre cols="72">Best Regards,
Brent Fraser</pre>
<div>
<div></div>
<div class="h5"><br>On 8/9/2011 8:24 AM, Luisa Peña wrote: </div></div>
<blockquote type="cite">
<div>
<div></div>
<div class="h5">Greetings
<div><br></div>
<div>This seems odd but it does not work with </div>
<div>HDF4_EOS:EOS_GRID:C:/filepath</div>
<div>only </div>
<div>HDF4_EOS:EOS_GRID:filepath</div>
<div><br></div>
<div>And if my MERIS data is not placed in my main hard disk (C:) it does not work.</div>
<div>Anyone with some experience on this in WINDOWS?</div>
<div><br></div>
<div>Thanks</div>
<div>Luisa</div><br>
<fieldset></fieldset> <br></div></div><pre>_______________________________________________
gdal-dev mailing list
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a></pre></blockquote></div></blockquote></div><br>