<html><head></head><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_ym19_1_1475755398051_227155">I'm trying to open an HDF5 file, specific bands, but GDAL is giving an error message: </div><div id="yui_3_16_0_ym19_1_1475755398051_227156"><br id="yui_3_16_0_ym19_1_1475755398051_227157"></div><div id="yui_3_16_0_ym19_1_1475755398051_227158">> "'HDF5:C:\pathToFile\pathToFile/filename.h5://ImageData/B4' does not</div><div id="yui_3_16_0_ym19_1_1475755398051_227159">> exist in the file system and is not recognized as a supported data set</div><div id="yui_3_16_0_ym19_1_1475755398051_227160">> name"</div><div id="yui_3_16_0_ym19_1_1475755398051_227161"><br id="yui_3_16_0_ym19_1_1475755398051_227162"></div><div id="yui_3_16_0_ym19_1_1475755398051_227163">I got the error message after the GDALOpenInternal call using CPLGetLastErrorMsg().  I can't step into GDALOpenInternal (with Visual Studio) because we don't have GDAL source cpp file; just h file that came with the package, unless I'm searching for the wrong file name.</div><div id="yui_3_16_0_ym19_1_1475755398051_227164"><br id="yui_3_16_0_ym19_1_1475755398051_227165"></div><div id="yui_3_16_0_ym19_1_1475755398051_227166">The string for the ConnectionString parameter for GDALOpenInternal is shown in the quotes above.  </div><div id="yui_3_16_0_ym19_1_1475755398051_227167"><br id="yui_3_16_0_ym19_1_1475755398051_227168"></div><div id="yui_3_16_0_ym19_1_1475755398051_227169" dir="ltr">I found [<a href="http://gis.stackexchange.com/questions/112584/qgis-polygonize-error-4-file-does-not-exist-in-the-file-system" style="background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1475755398051_227229">qgis polygonize error 4 "file does not exist in the file system"</a>], but they said it was because of using non-ascii characters in file path string.  I didn't see any other pertinent info on this error message.</div><div id="yui_3_16_0_ym19_1_1475755398051_227170"><br id="yui_3_16_0_ym19_1_1475755398051_227171"></div><div id="yui_3_16_0_ym19_1_1475755398051_227172">We need to access the specific band of the HDF5 file.  I noticed that our slashes in the path are showing in different directions, but I'm not sure that would be the issue here.  We have both windows and linux OS's.  This error was seen on windows os.</div><div id="yui_3_16_0_ym19_1_1475755398051_227173"><br id="yui_3_16_0_ym19_1_1475755398051_227174"></div><div id="yui_3_16_0_ym19_1_1475755398051_227175">We used (gdalinfo.exe filename.h5) and do see that the B4 exists there.</div><div id="yui_3_16_0_ym19_1_1475755398051_227176"><br id="yui_3_16_0_ym19_1_1475755398051_227177"></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1475755398051_229824"><span style="color: rgb(36, 39, 41);" id="yui_3_16_0_ym19_1_1475755398051_229607"><font id="yui_3_16_0_ym19_1_1475755398051_229724">Using the string, HDF5:"C:\pathToFile\filename.h5"://ImageData/B2, didn't work for openInternal with GDAL.</font></span><br></font></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><span style="color: rgb(36, 39, 41);"><font size="3"><br></font></span></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font id="yui_3_16_0_ym19_1_1475755398051_229755" size="3"><span style="color: rgb(36, 39, 41);" id="yui_3_16_0_ym19_1_1475755398051_229720">I saw  (</span><a href="http://gdal.org/gdal_tutorial.html" rel="nofollow" style="border: 0px; color: rgb(0, 89, 153); text-decoration: none; cursor: pointer; background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1475755398051_229721">gdal.org/gdal_tutorial.html</a><span style="color: rgb(36, 39, 41);" id="yui_3_16_0_ym19_1_1475755398051_229722">), which gives an example to open a band after a GDALOpen, but it seems that it's supposed to work with GDALOpenInternal also according to my co-workers. We just don't have a good example of the connection string to get it working with GDALOpenInternal since we don't have access to that part of the code that does it. They want me to focus on using GDALOpenInternal.</span></font><span style="color: rgb(36, 39, 41); font-size: 13px;"><font face="lucida console, sans-serif"><br></font></span></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><span style="color: rgb(36, 39, 41); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 13px;"><br></span></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1475755398051_230034"><span style="color: rgb(36, 39, 41);" id="yui_3_16_0_ym19_1_1475755398051_230006">I'm seeing </span><a href="https://lists.alioth.debian.org/pipermail/pkg-grass-devel/2012-November/013971.html" rel="nofollow" style="border: 0px; color: rgb(0, 89, 153); text-decoration: none; cursor: pointer; background-color: rgb(255, 255, 255);" id="yui_3_16_0_ym19_1_1475755398051_230007">lists.alioth.debian.org/pipermail/pkg-grass-devel/2012-Novem‌​ber/…</a><span style="color: rgb(36, 39, 41);" id="yui_3_16_0_ym19_1_1475755398051_230008">, which gives me hope, but doesn't have a good example. I saw this which could be an example, although it isn't using a path, but I'm not sure: gdalwarp HDF4_SDS:ASTER_L1B:"pg-PR1B0000-2002031402_100_001":2 pg-PR1B0000-2002031402_100_001_2.tif</span></font><span style="color: rgb(36, 39, 41); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 13px;"><br></span></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3"><span style="color: rgb(36, 39, 41);"><br></span></font></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3" id="yui_3_16_0_ym19_1_1475755398051_230103"><span style="color: rgb(36, 39, 41);" id="yui_3_16_0_ym19_1_1475755398051_230102">My question is, what format for the connection string do I need to use GDALOpenInternal, if it's not what I show for the two things I tried above?  </span></font></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3"><span style="color: rgb(36, 39, 41);"><br></span></font></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3"><span style="color: rgb(36, 39, 41);">Thanks,</span></font></div><div id="yui_3_16_0_ym19_1_1475755398051_227178" dir="ltr"><font size="3"><span style="color: rgb(36, 39, 41);">Mich</span></font></div><div id="yui_3_16_0_ym19_1_1475755398051_227225"><br></div><div id="yui_3_16_0_ym19_1_1475755398051_227295"><br></div></div></body></html>