<html><head></head><body><div class="ydp993898a5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi Kimberly,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">  You may want to try using GDAL to convert the file to a different format before opening it into QGIS. You can try it from the command line, or from within QGIS using Raster: Conversion: Translate (Convert Format).</div><div dir="ltr" data-setdir="false">  Note that the QGIS tool lists the GDAL command that it uses, so if you start there you at least can use the GUI to get the file names, etc. right, before moving to the command line to tinker.</div><div dir="ltr" data-setdir="false">  It may not work as GDAL is likely what QGIS is using to open the file, but maybe Q is set up with GDAL switches that won't open the file correctly. </div><div dir="ltr" data-setdir="false">  To check if GDAL can at least read your file you may want to start from the command line using Terminal (after you type in gdalinfo you should be able to drag and drop your file into the Terminal, and it will fill in the file path): </div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">gdalinfo path/to/your_file.hdf</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">If it complains that: "<span>-bash: gdalinfo: command not found"</span>  you will have to track down where your gdal binaries are installed. One place to look is inside of QGIS.app: so in Finder go to Applications and right click on QGIS.app and Show Package Contents, then navigate through the folders: <span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">/Contents/MacOS/bin, you can drag and drop the gdalinfo or any of the other binaries into terminal, to get the path and then write your command after that:</span></span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"> <span>/Applications/QGIS3.12.app/Contents/MacOS/bin/gdalinfo <span><span style="color: rgb(0, 0, 0); font-family: Helvetica Neue, Helvetica, Arial, sans-serif;">path/to/your_file.hdf</span></span></span><br></div><div dir="ltr" data-setdir="false"> <span>/Applications/QGIS3.12.app/Contents/MacOS/bin/gdal_translate [paste command here]</span><br></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span>If you get tired of doing all that you can do a web search for how to make an alias in your .<span>bash_profile</span>.</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false">See this GIS Stack Exchange answer, about using GDAL to convert a single band at a time from hdf to tif:</div><div dir="ltr" data-setdir="false"><a href="https://gis.stackexchange.com/questions/220281/how-to-use-gdal-to-convert-hdf-multi-band-file-to-a-single-geotiff-file#220291" rel="nofollow" target="_blank" class="">https://gis.stackexchange.com/questions/220281/how-to-use-gdal-to-convert-hdf-multi-band-file-to-a-single-geotiff-file#220291</a><br></div><div><br></div><div dir="ltr" data-setdir="false">-Thayer</div><div><br></div><div><br></div><div><br></div><div>================================================</div></div><div id="ydpf0c3b685yahoo_quoted_9066363357" class="ydpf0c3b685yahoo_quoted"><div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;"><div><div dir="ltr"><br></div><div dir="ltr">Message: 1<br></div><div dir="ltr">Date: Fri, 1 May 2020 20:38:39 -0500<br></div><div dir="ltr">From: KIMBERLY CRISTINA NAVARRO VELEZ<br></div><div dir="ltr">    <<a href="mailto:kimberly.navarro@correounivalle.edu.co" rel="nofollow" target="_blank">kimberly.navarro@correounivalle.edu.co</a>><br></div><div dir="ltr">To: <a href="mailto:qgis-user@lists.osgeo.org" rel="nofollow" target="_blank">qgis-user@lists.osgeo.org</a><br></div><div dir="ltr">Subject: [Qgis-user] Error at opening .hdf MODIS layer in QGIS 3.12<br></div><div dir="ltr">Message-ID:<br></div><div dir="ltr">    <<a href="mailto:A4327FEE-7C2C-4BF9-881D-80DF63CC2213@correounivalle.edu.co" rel="nofollow" target="_blank">A4327FEE-7C2C-4BF9-881D-80DF63CC2213@correounivalle.edu.co</a>><br></div><div dir="ltr">Content-Type: text/plain; charset="utf-8"<br></div><div dir="ltr"><br></div><div dir="ltr">Hello,<br></div><div dir="ltr"><br></div><div dir="ltr">I am new using QGIS. I´ve been trying to open a raster layer downloaded from USGS Earth explorer. The file have an .hdf extension. It open in other computers in different QGIS versions, but it does not in my computer, neither in two of my friends computers.<br></div><div dir="ltr"><br></div><div dir="ltr">I am using QGIS 3.12, But I also tried QGIS 3.10.<br></div><div dir="ltr"><br></div><div dir="ltr">I need to be able to open the file so I can extract some data from it.<br></div><div dir="ltr"><br></div><div dir="ltr">I tried using the Python console, following some advices from youtube and GitHub, but it did not work.<br></div><div dir="ltr">I also try to open the layer by using the function Clip Raster from Mask Layer. It also, did not work.<br></div><div dir="ltr"><br></div><div dir="ltr">Every time I tried a red flag happened and this phrase appears: Invalid Layer: Raster Layer Provider is not valid (provider: gdal, URI:users/download/MYD11A2.A2012.12313.123.hdf) (I am adding a screenshot)<br></div><div dir="ltr"><br></div><div dir="ltr">I have a MacBook Pro 2017, my IOS version is Mojave 10.14.6<br></div><div dir="ltr"><br></div><div dir="ltr">I installed the program from your webpage, MacOs version.<br></div><div dir="ltr"><br></div><div dir="ltr">I would really appreciate your help…. I have look everywhere and Can’t find a solution.<br></div><div dir="ltr"><br></div><div dir="ltr">Thanks, Kimberly.<br></div><div dir="ltr"><br></div></div>
            </div>
        </div></body></html>