<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Luisa,<br>
    <br>
    &nbsp; That sounds like a bug.&nbsp; A possible work-around might be to set
    your current working directory to D and don't put the drive letter
    in the filepath: <br>
    <br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; cd D:<br>
    &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; gdalinfo \data\GL.hdf<br>
    <br>
    But this may not work with your desire to use a GRASS script...<br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <br>
    On 8/10/2011 2:55 AM, Luisa Pe&ntilde;a wrote:
    <blockquote
cite="mid:CAH+a18-wHrQ-aJ-pDwKauGSfJaHUHHoV+gnbJuc5ogN0M8yRkQ@mail.gmail.com"
      type="cite">
      <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>&nbsp;</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>
        &nbsp; HDFEOSVersion=HDFEOS_V2.12<br>
        Subdatasets:<br>
        &nbsp;
        SUBDATASET_1_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_1<br>
        &nbsp; SUBDATASET_1_DESC=[1800x1800] MEAN_1 POSTEL (16-bit integer)</div>
      <div>&nbsp;SUBDATASET_2_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_2<br>
        &nbsp; SUBDATASET_2_DESC=[1800x1800] MEAN_2 POSTEL (16-bit integer)<br>
        &nbsp;
        SUBDATASET_3_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_3<br>
        &nbsp; SUBDATASET_3_DESC=[1800x1800] MEAN_3 POSTEL (16-bit integer)<br>
        &nbsp;
        SUBDATASET_4_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_4<br>
        &nbsp; SUBDATASET_4_DESC=[1800x1800] MEAN_4 POSTEL (16-bit integer)<br>
        &nbsp;
        SUBDATASET_5_NAME=HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_5</div>
      <div>(...)</div>
      <div>&nbsp;</div>
      <div>then:</div>
      <div>gdalinfo HDF4_EOS:EOS_GRID:"c:\data\GL.hdf":POSTEL:MEAN_1</div>
      <div>&nbsp;</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>&nbsp;</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>&nbsp;</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>
        &nbsp;</div>
      <div class="gmail_quote">2011/8/9 Brent Fraser <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a>&gt;</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>
            &nbsp; 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 class="h5"><br>
                On 8/9/2011 8:24 AM, Luisa Pe&ntilde;a wrote: </div>
            </div>
            <blockquote type="cite">
              <div>
                <div class="h5">Greetings
                  <div><br>
                  </div>
                  <div>This seems odd but it does not work with&nbsp;</div>
                  <div>HDF4_EOS:EOS_GRID:C:/filepath</div>
                  <div>only&nbsp;</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 moz-do-not-send="true" href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>
<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></pre>
            </blockquote>
          </div>
        </blockquote>
      </div>
      <br>
    </blockquote>
  </body>
</html>